NetBurner 3.5.6
PDF Version
MOD5441X/include/bsp_devboard.h
1
#ifndef __NB_BSP_H
2
#define __NB_BSP_H
3
/*NB_REVISION*/
4
5
/*NB_COPYRIGHT*/
6
12
#include <pins.h>
13
14
#define PinGpioOutputFn PIN_GPIO
15
#define PinGpioInputFn PIN_GPIO
16
17
#define LED_COUNT 8
18
19
#define PIN_LED1 15
20
#define PIN_LED2 16
21
#define PIN_LED3 31
22
#define PIN_LED4 23
23
#define PIN_LED5 37
24
#define PIN_LED6 19
25
#define PIN_LED7 20
26
#define PIN_LED8 24
27
28
#define LED1 J2[PIN_LED1]
29
#define LED2 J2[PIN_LED2]
30
#define LED3 J2[PIN_LED3]
31
#define LED4 J2[PIN_LED4]
32
#define LED5 J2[PIN_LED5]
33
#define LED6 J2[PIN_LED6]
34
#define LED7 J2[PIN_LED7]
35
#define LED8 J2[PIN_LED8]
36
37
class
LEDArray
38
{
39
public
:
40
PinIO
operator[](
int
n)
41
{
42
switch
(n)
43
{
44
case
1:
return
J2[PIN_LED1];
45
case
2:
return
J2[PIN_LED2];
46
case
3:
return
J2[PIN_LED3];
47
case
4:
return
J2[PIN_LED4];
48
case
5:
return
J2[PIN_LED5];
49
case
6:
return
J2[PIN_LED6];
50
case
7:
return
J2[PIN_LED7];
51
case
8:
return
J2[PIN_LED8];
52
default
:
return
J2[PIN_LED1];
53
}
54
}
55
};
56
57
static
LEDArray LEDs;
58
59
#endif
PinIO
GPIO Pin Class.
Definition
coldfire/cpu/MCF5441X/include/cpu_pins.h:15