diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2016-05-30 14:57:10 +0900 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2016-05-30 14:57:10 +0900 |
commit | 9f16e5e051c2cf11465d00a2ee0265039e448b06 (patch) | |
tree | fb3a664b095446e632a135c38ee139a85db48066 /example-cdc/sample.c | |
parent | b90e58f763bd277b7a5285601a34818f44f2b01c (diff) |
consolidate mcu-chip specific code
Diffstat (limited to 'example-cdc/sample.c')
-rw-r--r-- | example-cdc/sample.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/example-cdc/sample.c b/example-cdc/sample.c index cb6c5ae..db23133 100644 --- a/example-cdc/sample.c +++ b/example-cdc/sample.c @@ -3,10 +3,17 @@ #include <string.h> #include <chopstx.h> -#include "sys.h" /* for set_led */ #include "usb_lld.h" #include "tty.h" +/* For set_led */ +#include "board.h" +#ifdef MCU_KINETIS_L +#include "mcu/sys-mkl27z.h" +#else +#include "mcu/sys-stm32f103.h" +#endif + static chopstx_mutex_t mtx; static chopstx_cond_t cnd0; static chopstx_cond_t cnd1; |