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

4.115
Last change on this file since 6b1ee025 was 6b1ee025, checked in by Szkocsovszki Zsolt <zsoltisharkboy@…>, on Jan 3, 2014 at 2:14:49 PM

idp: Add doxygen headers.

  • Property mode set to 100644
File size: 737 bytes
Line 
1/**
2 *  @file
3 *
4 *  @ingroup m68k_leds
5 *
6 *  @brief Led Control
7 */
8
9/*
10 * Written by rob@cygnus.com (Rob Savoye)
11 */
12
13#ifndef __LEDS_H__
14#define __LEDS_H__
15
16#define LED_ADDR        0xd00003
17#define LED_0           ~0x1
18#define LED_1           ~0x2
19#define LED_2           ~0x4
20#define LED_3           ~0x8
21#define LED_4           ~0x10
22#define LED_5           ~0x20
23#define LED_6           ~0x40
24#define LED_7           ~0x80
25#define LEDS_OFF        0xff
26#define LEDS_ON         0x0
27
28/**
29 *  @defgroup m68k_leds Led Control
30 *
31 *  @ingroup m68k_idp
32 *
33 *  @brief control the led's on a Motorola mc68ec0x0 board
34 */
35
36#define FUDGE(x) ((x >= 0xa && x <= 0xf) ? (x + 'a') & 0x7f : (x + '0') & 0x7f)
37
38extern void led_putnum( char );
39
40#endif          /* __LEDS_H__ */
Note: See TracBrowser for help on using the repository browser.