1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28 #define LED_PWR 0xc02200d0
29 #define LED_PR 0xc02200d4
30 #define LED_ORANGE 0xc0220130
31 #define LED_GREEN 0xc0220134
32 #define LED_YELLOW 0xc0220138
33 #define LED_AF 0xC0223030
34
35 #define DELAY 3000000
36
37 void blink_it(volatile long *p);
38
39 #define blink_(LED) \
40 void __attribute__((noinline)) blink_##LED(); \
41 void __attribute__((noinline)) LED##_ON(); \
42 void __attribute__((noinline)) LED##_OFF();
43
44
45
46
47 blink_(LED_PWR)
48 blink_(LED_GREEN)
49 blink_(LED_YELLOW)
50 blink_(LED_ORANGE)
51 blink_(LED_AF)
52 blink_(LED_PR)
53 #undef blink_
54