summaryrefslogtreecommitdiff
path: root/firmware/drivers/led.h
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2002-04-26 09:05:36 +0000
committerBjörn Stenberg <bjorn@haxx.se>2002-04-26 09:05:36 +0000
commit9b113d5ac310ff1353318723bbc6150699c42209 (patch)
tree88937e8f770e60da571d180aeb09daa42c8ec5b5 /firmware/drivers/led.h
parent31c271ff63fd0f27ce9950b7feff3d1825eaf8a3 (diff)
downloadrockbox-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.h27
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 */ 25extern void led( bool on );
27
28static inline void led_turn_off (void)
29{
30 clear_bit (LEDB,PBDR+1);
31 clear_bit (2,TSTR_ADDR);
32}
33
34static inline void led_turn_on (void)
35{
36 set_bit (LEDB,PBDR+1);
37 set_bit (2,TSTR_ADDR);
38}
39
40static inline void led_toggle (void)
41{
42 toggle_bit (LEDB,PBDR+1);
43}
44
45extern void led_set_volume (unsigned short volume);
46extern void led_setup (void);
47 26
48#endif 27#endif
49
50