aa

Dependencies:   mbed TrapezoidControl QEI

Committer:
t_yamamoto
Date:
Sat Sep 08 06:05:22 2018 +0000
Revision:
0:669ef71cba68
Child:
16:3f2c2d89372b
???????

Who changed what in which revision?

UserRevisionLine numberNew contents of line
t_yamamoto 0:669ef71cba68 1 #ifndef LED_H_
t_yamamoto 0:669ef71cba68 2 #define LED_H_
t_yamamoto 0:669ef71cba68 3
t_yamamoto 0:669ef71cba68 4 #include "mbed.h"
t_yamamoto 0:669ef71cba68 5 #include <stdint.h>
t_yamamoto 0:669ef71cba68 6
t_yamamoto 0:669ef71cba68 7 namespace LED {
t_yamamoto 0:669ef71cba68 8 extern DigitalOut boardLED[];
t_yamamoto 0:669ef71cba68 9
t_yamamoto 0:669ef71cba68 10 #define LED_ON 0
t_yamamoto 0:669ef71cba68 11 #define LED_OFF 1
t_yamamoto 0:669ef71cba68 12
t_yamamoto 0:669ef71cba68 13 #define LED_DEBUG0_PIN PC_11
t_yamamoto 0:669ef71cba68 14 #define LED_DEBUG1_PIN PC_10
t_yamamoto 0:669ef71cba68 15 #define LED_DEBUG2_PIN PC_12
t_yamamoto 0:669ef71cba68 16 #define LED_MU_PIN PC_13
t_yamamoto 0:669ef71cba68 17
t_yamamoto 0:669ef71cba68 18 #define LED_DEBUG0 LED::boardLED[0]
t_yamamoto 0:669ef71cba68 19 #define LED_DEBUG1 LED::boardLED[1]
t_yamamoto 0:669ef71cba68 20 #define LED_DEBUG2 LED::boardLED[2]
t_yamamoto 0:669ef71cba68 21 #define LED_MU LED::boardLED[3]
t_yamamoto 0:669ef71cba68 22
t_yamamoto 0:669ef71cba68 23 class LED {
t_yamamoto 0:669ef71cba68 24 public:
t_yamamoto 0:669ef71cba68 25 static void Initialize();
t_yamamoto 0:669ef71cba68 26 };
t_yamamoto 0:669ef71cba68 27 }
t_yamamoto 0:669ef71cba68 28
t_yamamoto 0:669ef71cba68 29 #endif