From 8afabfa3018f24e365f7f00dcbda7a6621e3510b Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Thu, 18 Apr 2019 19:14:08 +0900 Subject: [PATCH] Fix entry.c for STM32L4. Now, USB works. --- entry.c | 2 ++ example-cdc/usb-cdc.c | 1 + 2 files changed, 3 insertions(+) diff --git a/entry.c b/entry.c index 8377972..0576e04 100644 --- a/entry.c +++ b/entry.c @@ -54,7 +54,9 @@ main (int argc, const char *argv[]) * Avoid medium density specific code and prepare for high density * device, too. */ +#if !defined(MCU_STM32L4) #define STM32F10X_HD +#endif #else #if defined (MCU_KINETIS_L) #include "mcu/clk_gpio_init-mkl27z.c" diff --git a/example-cdc/usb-cdc.c b/example-cdc/usb-cdc.c index 52e3863..a4d146c 100644 --- a/example-cdc/usb-cdc.c +++ b/example-cdc/usb-cdc.c @@ -2,6 +2,7 @@ #include #include #include +#include "board.h" #include "usb_lld.h" #include "tty.h"