source: rtems/c/src/lib/libbsp/m68k/idp/include/leds.h @ c62d36f

4.104.114.84.95
Last change on this file since c62d36f was ac7d5ef0, checked in by Joel Sherrill <joel.sherrill@…>, on May 11, 1995 at 5:39:37 PM

Initial revision

  • Property mode set to 100644
File size: 606 bytes
Line 
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
23extern void led_putnum( char );
24
25#endif          /* __LEDS_H__ */
Note: See TracBrowser for help on using the repository browser.