4.104.114.84.95
Rev | Line | |
---|
[ac7d5ef0] | 1 | /* |
---|
| 2 | * leds.c -- control the led's on a Motorola mc68ec0x0 board. |
---|
| 3 | * Written by rob@cygnus.com (Rob Savoye) |
---|
| 4 | */ |
---|
| 5 | |
---|
| 6 | #ifndef __LEDS_H__ |
---|
| 7 | #define __LEDS_H__ |
---|
| 8 | |
---|
| 9 | #define LED_ADDR 0xd00003 |
---|
| 10 | #define LED_0 ~0x1 |
---|
| 11 | #define LED_1 ~0x2 |
---|
| 12 | #define LED_2 ~0x4 |
---|
| 13 | #define LED_3 ~0x8 |
---|
| 14 | #define LED_4 ~0x10 |
---|
| 15 | #define LED_5 ~0x20 |
---|
| 16 | #define LED_6 ~0x40 |
---|
| 17 | #define LED_7 ~0x80 |
---|
| 18 | #define LEDS_OFF 0xff |
---|
| 19 | #define LEDS_ON 0x0 |
---|
| 20 | |
---|
| 21 | #define FUDGE(x) ((x >= 0xa && x <= 0xf) ? (x + 'a') & 0x7f : (x + '0') & 0x7f) |
---|
| 22 | |
---|
| 23 | extern void led_putnum( char ); |
---|
| 24 | |
---|
| 25 | #endif /* __LEDS_H__ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.