diff options
author | Björn Stenberg <bjorn@haxx.se> | 2002-04-26 09:05:36 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2002-04-26 09:05:36 +0000 |
commit | 9b113d5ac310ff1353318723bbc6150699c42209 (patch) | |
tree | 88937e8f770e60da571d180aeb09daa42c8ec5b5 /firmware/drivers/led.h | |
parent | 31c271ff63fd0f27ce9950b7feff3d1825eaf8a3 (diff) | |
download | rockbox-9b113d5ac310ff1353318723bbc6150699c42209.tar.gz rockbox-9b113d5ac310ff1353318723bbc6150699c42209.zip |
Simpler API and remove interrupt code
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@250 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/led.h')
-rw-r--r-- | firmware/drivers/led.h | 27 |
1 files changed, 2 insertions, 25 deletions
diff --git a/firmware/drivers/led.h b/firmware/drivers/led.h index 955c59aa81..aeaa1cc476 100644 --- a/firmware/drivers/led.h +++ b/firmware/drivers/led.h | |||
@@ -20,31 +20,8 @@ | |||
20 | #ifndef __LED_H__ | 20 | #ifndef __LED_H__ |
21 | #define __LED_H__ | 21 | #define __LED_H__ |
22 | 22 | ||
23 | #include <sh7034.h> | 23 | #include "types.h" |
24 | #include <system.h> | ||
25 | 24 | ||
26 | #define LEDB 6 /* PB6 : red LED */ | 25 | extern void led( bool on ); |
27 | |||
28 | static inline void led_turn_off (void) | ||
29 | { | ||
30 | clear_bit (LEDB,PBDR+1); | ||
31 | clear_bit (2,TSTR_ADDR); | ||
32 | } | ||
33 | |||
34 | static inline void led_turn_on (void) | ||
35 | { | ||
36 | set_bit (LEDB,PBDR+1); | ||
37 | set_bit (2,TSTR_ADDR); | ||
38 | } | ||
39 | |||
40 | static inline void led_toggle (void) | ||
41 | { | ||
42 | toggle_bit (LEDB,PBDR+1); | ||
43 | } | ||
44 | |||
45 | extern void led_set_volume (unsigned short volume); | ||
46 | extern void led_setup (void); | ||
47 | 26 | ||
48 | #endif | 27 | #endif |
49 | |||
50 | |||