aboutsummaryrefslogtreecommitdiff
path: root/ports/stm32/boards/NUCLEO_L476RG
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/NUCLEO_L476RG
parentd9b9fbc41ae202cf9426cc1ae7514d230cc5c8d0 (diff)
stm32/boards: Update all boards to work with new USB configuration.
Diffstat (limited to 'ports/stm32/boards/NUCLEO_L476RG')
-rw-r--r--ports/stm32/boards/NUCLEO_L476RG/mpconfigboard.h4
-rwxr-xr-xports/stm32/boards/NUCLEO_L476RG/stm32l4xx_hal_conf.h1
2 files changed, 4 insertions, 1 deletions
diff --git a/ports/stm32/boards/NUCLEO_L476RG/mpconfigboard.h b/ports/stm32/boards/NUCLEO_L476RG/mpconfigboard.h
index 806f8207d..0d5dab394 100644
--- a/ports/stm32/boards/NUCLEO_L476RG/mpconfigboard.h
+++ b/ports/stm32/boards/NUCLEO_L476RG/mpconfigboard.h
@@ -4,6 +4,7 @@
#define MICROPY_HW_HAS_SWITCH (1)
#define MICROPY_HW_HAS_FLASH (1)
#define MICROPY_HW_ENABLE_RTC (1)
+#define MICROPY_HW_ENABLE_USB (1)
// MSI is used and is 4MHz
#define MICROPY_HW_CLK_PLLM (1)
@@ -49,3 +50,6 @@
#define MICROPY_HW_LED1 (pin_A5) // Green LD2 LED on Nucleo
#define MICROPY_HW_LED_ON(pin) (mp_hal_pin_high(pin))
#define MICROPY_HW_LED_OFF(pin) (mp_hal_pin_low(pin))
+
+// USB config
+#define MICROPY_HW_USB_FS (1)
diff --git a/ports/stm32/boards/NUCLEO_L476RG/stm32l4xx_hal_conf.h b/ports/stm32/boards/NUCLEO_L476RG/stm32l4xx_hal_conf.h
index 9348e0679..6bfb28118 100755
--- a/ports/stm32/boards/NUCLEO_L476RG/stm32l4xx_hal_conf.h
+++ b/ports/stm32/boards/NUCLEO_L476RG/stm32l4xx_hal_conf.h
@@ -45,7 +45,6 @@
extern "C" {
#endif
-#define USE_USB_FS
/* Exported types ------------------------------------------------------------*/
/* Exported constants --------------------------------------------------------*/