aboutsummaryrefslogtreecommitdiff
path: root/ports/stm32/boards/HYDRABUS
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/HYDRABUS
parentd9b9fbc41ae202cf9426cc1ae7514d230cc5c8d0 (diff)
stm32/boards: Update all boards to work with new USB configuration.
Diffstat (limited to 'ports/stm32/boards/HYDRABUS')
-rw-r--r--ports/stm32/boards/HYDRABUS/mpconfigboard.h2
-rw-r--r--ports/stm32/boards/HYDRABUS/stm32f4xx_hal_conf.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/ports/stm32/boards/HYDRABUS/mpconfigboard.h b/ports/stm32/boards/HYDRABUS/mpconfigboard.h
index 4d5b12866..2e73d3ec8 100644
--- a/ports/stm32/boards/HYDRABUS/mpconfigboard.h
+++ b/ports/stm32/boards/HYDRABUS/mpconfigboard.h
@@ -6,6 +6,7 @@
#define MICROPY_HW_HAS_SDCARD (1)
#define MICROPY_HW_ENABLE_RNG (1)
#define MICROPY_HW_ENABLE_DAC (1)
+#define MICROPY_HW_ENABLE_USB (1)
// HSE is 8MHz
#define MICROPY_HW_CLK_PLLM (8)
@@ -69,4 +70,5 @@
#define MICROPY_HW_SDCARD_DETECT_PRESENT (1)
// USB config
+#define MICROPY_HW_USB_FS (1)
#define MICROPY_HW_USB_OTG_ID_PIN (pin_A10)
diff --git a/ports/stm32/boards/HYDRABUS/stm32f4xx_hal_conf.h b/ports/stm32/boards/HYDRABUS/stm32f4xx_hal_conf.h
index d3df51c10..daf9b63ce 100644
--- a/ports/stm32/boards/HYDRABUS/stm32f4xx_hal_conf.h
+++ b/ports/stm32/boards/HYDRABUS/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