aboutsummaryrefslogtreecommitdiff
path: root/ports/stm32/boards/CERB40
diff options
context:
space:
mode:
authorDamien George2018-02-13 18:57:01 +1100
committerDamien George2018-02-13 18:57:01 +1100
commit34911f1a57296bda532e2460e28bd351198e1e63 (patch)
treecd9e9b8bb30d588966d592b841cd7caace7be86d /ports/stm32/boards/CERB40
parentd9b9fbc41ae202cf9426cc1ae7514d230cc5c8d0 (diff)
stm32/boards: Update all boards to work with new USB configuration.
Diffstat (limited to 'ports/stm32/boards/CERB40')
-rw-r--r--ports/stm32/boards/CERB40/mpconfigboard.h2
-rw-r--r--ports/stm32/boards/CERB40/stm32f4xx_hal_conf.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/ports/stm32/boards/CERB40/mpconfigboard.h b/ports/stm32/boards/CERB40/mpconfigboard.h
index 444185ca0..fdc7c0120 100644
--- a/ports/stm32/boards/CERB40/mpconfigboard.h
+++ b/ports/stm32/boards/CERB40/mpconfigboard.h
@@ -6,6 +6,7 @@
#define MICROPY_HW_ENABLE_RTC (1)
#define MICROPY_HW_ENABLE_DAC (1)
#define MICROPY_HW_ENABLE_CAN (1)
+#define MICROPY_HW_ENABLE_USB (1)
// HSE is 12MHz
#define MICROPY_HW_CLK_PLLM (12)
@@ -54,5 +55,6 @@
// The Cerb40 has No SDCard
// USB config
+#define MICROPY_HW_USB_FS (1)
//#define MICROPY_HW_USB_VBUS_DETECT_PIN (pin_A9)
//#define MICROPY_HW_USB_OTG_ID_PIN (pin_A10)
diff --git a/ports/stm32/boards/CERB40/stm32f4xx_hal_conf.h b/ports/stm32/boards/CERB40/stm32f4xx_hal_conf.h
index d6aca705c..e71ba3369 100644
--- a/ports/stm32/boards/CERB40/stm32f4xx_hal_conf.h
+++ b/ports/stm32/boards/CERB40/stm32f4xx_hal_conf.h
@@ -46,8 +46,6 @@
/* Exported types ------------------------------------------------------------*/
/* Exported constants --------------------------------------------------------*/
-#define USE_USB_FS
-
/* ########################## Module Selection ############################## */
/**
* @brief This is the list of modules to be used in the HAL driver