comparison code_part1/OSTC_code_asm_part1/io.asm @ 0:96a35aeda5f2

Initial setup
author heinrichsweikamp
date Tue, 12 Jan 2010 15:05:59 +0100
parents
children 73014f788032
comparison
equal deleted inserted replaced
-1:000000000000 0:96a35aeda5f2
1 ; OSTC - diving computer code
2 ; Copyright (C) 2009 HeinrichsWeikamp GbR
3 ; This program is free software: you can redistribute it and/or modify
4 ; it under the terms of the GNU General Public License as published by
5 ; the Free Software Foundation, either version 3 of the License, or
6 ; (at your option) any later version.
7 ; This program is distributed in the hope that it will be useful,
8 ; but WITHOUT ANY WARRANTY; without even the implied warranty of
9 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 ; GNU General Public License for more details.
11 ; You should have received a copy of the GNU General Public License
12 ; along with this program. If not, see <http://www.gnu.org/licenses/>.
13
14
15 ; low-level routines for i/O
16 ; written by: Matthias Heinrichs, info@heinrichsweikamp.com
17 ; written: 090801
18 ; last updated: 090801
19 ; known bugs:
20 ; ToDo:
21
22 set_LEDy: ; Yellow LED
23 bsf LED_red
24 return
25 clear_LEDy ; Yellow LED
26 bcf LED_red
27 return
28
29 set_LEDr: ; Red LED
30 bsf LED_red
31 return
32 clear_LEDr ; Red LED
33 bcf LED_red
34 return
35 toggle_LEDr ; Red LED
36 btg LED_red
37 return
38
39
40 set_LEDg: ; Green LED
41 bsf LED_red
42 return
43 clear_LEDg ; Green LED
44 bcf LED_red
45 return
46
47 set_LEDusb: ; USB LED
48 bsf LED_blue
49 return
50 clear_LEDusb; USB LED
51 bcf LED_blue
52 return
53
54 set_LEDnofly: ; nofly LED
55 bsf LED_blue
56 return
57 clear_LEDnofly; nofly LED
58 bcf LED_blue
59 return
60 toggle_LEDnofly ; nofly LED
61 btg LED_blue
62 return
63
64