Browse Source

stm32/boards: Enable MICROPY_HW_ENABLE_SERVO on various boards.

Fixes issue #8059.

Signed-off-by: Damien George <damien@micropython.org>
pull/8082/head
Damien George 3 years ago
parent
commit
0892ebe091
  1. 1
      ports/stm32/boards/NUCLEO_F401RE/mpconfigboard.h
  2. 1
      ports/stm32/boards/NUCLEO_F411RE/mpconfigboard.h
  3. 1
      ports/stm32/boards/NUCLEO_F412ZG/mpconfigboard.h
  4. 1
      ports/stm32/boards/NUCLEO_F413ZH/mpconfigboard.h
  5. 1
      ports/stm32/boards/NUCLEO_F429ZI/mpconfigboard.h
  6. 1
      ports/stm32/boards/NUCLEO_F439ZI/mpconfigboard.h
  7. 1
      ports/stm32/boards/NUCLEO_F446RE/mpconfigboard.h
  8. 1
      ports/stm32/boards/STM32F429DISC/mpconfigboard.h
  9. 1
      ports/stm32/boards/STM32F439/mpconfigboard.h
  10. 1
      ports/stm32/boards/STM32F4DISC/mpconfigboard.h
  11. 1
      ports/stm32/boards/STM32F769DISC/mpconfigboard.h

1
ports/stm32/boards/NUCLEO_F401RE/mpconfigboard.h

@ -4,6 +4,7 @@
#define MICROPY_HW_HAS_SWITCH (1) #define MICROPY_HW_HAS_SWITCH (1)
#define MICROPY_HW_HAS_FLASH (1) #define MICROPY_HW_HAS_FLASH (1)
#define MICROPY_HW_ENABLE_RTC (1) #define MICROPY_HW_ENABLE_RTC (1)
#define MICROPY_HW_ENABLE_SERVO (1)
// HSE is 8MHz, HSI is 16MHz CPU freq set to 84MHz // HSE is 8MHz, HSI is 16MHz CPU freq set to 84MHz
// Default source for the clock is HSI. // Default source for the clock is HSI.

1
ports/stm32/boards/NUCLEO_F411RE/mpconfigboard.h

@ -4,6 +4,7 @@
#define MICROPY_HW_HAS_SWITCH (1) #define MICROPY_HW_HAS_SWITCH (1)
#define MICROPY_HW_HAS_FLASH (1) #define MICROPY_HW_HAS_FLASH (1)
#define MICROPY_HW_ENABLE_RTC (1) #define MICROPY_HW_ENABLE_RTC (1)
#define MICROPY_HW_ENABLE_SERVO (1)
// HSE is 8MHz, CPU freq set to 96MHz // HSE is 8MHz, CPU freq set to 96MHz
#define MICROPY_HW_CLK_PLLM (8) #define MICROPY_HW_CLK_PLLM (8)

1
ports/stm32/boards/NUCLEO_F412ZG/mpconfigboard.h

@ -6,6 +6,7 @@
#define MICROPY_HW_ENABLE_RNG (1) #define MICROPY_HW_ENABLE_RNG (1)
#define MICROPY_HW_ENABLE_RTC (1) #define MICROPY_HW_ENABLE_RTC (1)
#define MICROPY_HW_ENABLE_USB (1) #define MICROPY_HW_ENABLE_USB (1)
#define MICROPY_HW_ENABLE_SERVO (1)
// HSE is 8MHz, CPU freq set to 96MHz // HSE is 8MHz, CPU freq set to 96MHz
#define MICROPY_HW_CLK_PLLM (8) #define MICROPY_HW_CLK_PLLM (8)

1
ports/stm32/boards/NUCLEO_F413ZH/mpconfigboard.h

@ -9,6 +9,7 @@
#define MICROPY_HW_ENABLE_RTC (1) #define MICROPY_HW_ENABLE_RTC (1)
#define MICROPY_HW_ENABLE_DAC (1) #define MICROPY_HW_ENABLE_DAC (1)
#define MICROPY_HW_ENABLE_USB (1) #define MICROPY_HW_ENABLE_USB (1)
#define MICROPY_HW_ENABLE_SERVO (1)
// HSE is 8MHz, CPU freq set to 96MHz // HSE is 8MHz, CPU freq set to 96MHz
#define MICROPY_HW_CLK_PLLM (8) #define MICROPY_HW_CLK_PLLM (8)

1
ports/stm32/boards/NUCLEO_F429ZI/mpconfigboard.h

@ -6,6 +6,7 @@
#define MICROPY_HW_ENABLE_RNG (1) #define MICROPY_HW_ENABLE_RNG (1)
#define MICROPY_HW_ENABLE_RTC (1) #define MICROPY_HW_ENABLE_RTC (1)
#define MICROPY_HW_ENABLE_USB (1) #define MICROPY_HW_ENABLE_USB (1)
#define MICROPY_HW_ENABLE_SERVO (1)
// HSE is 8MHz // HSE is 8MHz
#define MICROPY_HW_CLK_PLLM (8) #define MICROPY_HW_CLK_PLLM (8)

1
ports/stm32/boards/NUCLEO_F439ZI/mpconfigboard.h

@ -8,6 +8,7 @@
#define MICROPY_HW_ENABLE_RNG (1) #define MICROPY_HW_ENABLE_RNG (1)
#define MICROPY_HW_ENABLE_RTC (1) #define MICROPY_HW_ENABLE_RTC (1)
#define MICROPY_HW_ENABLE_USB (1) #define MICROPY_HW_ENABLE_USB (1)
#define MICROPY_HW_ENABLE_SERVO (1)
// HSE is 8MHz from ST-LINK, in bypass mode, run SYSCLK at 168MHz // HSE is 8MHz from ST-LINK, in bypass mode, run SYSCLK at 168MHz
#define MICROPY_HW_CLK_USE_BYPASS (1) #define MICROPY_HW_CLK_USE_BYPASS (1)

1
ports/stm32/boards/NUCLEO_F446RE/mpconfigboard.h

@ -5,6 +5,7 @@
#define MICROPY_HW_HAS_FLASH (1) #define MICROPY_HW_HAS_FLASH (1)
#define MICROPY_HW_ENABLE_RTC (1) #define MICROPY_HW_ENABLE_RTC (1)
#define MICROPY_HW_ENABLE_DAC (1) #define MICROPY_HW_ENABLE_DAC (1)
#define MICROPY_HW_ENABLE_SERVO (1)
// HSE is 8MHz, CPU freq set to 168MHz. Using PLLQ for USB this gives a nice // HSE is 8MHz, CPU freq set to 168MHz. Using PLLQ for USB this gives a nice
// 48 MHz clock for USB. To goto 180 MHz, I think that USB would need to be // 48 MHz clock for USB. To goto 180 MHz, I think that USB would need to be

1
ports/stm32/boards/STM32F429DISC/mpconfigboard.h

@ -6,6 +6,7 @@
#define MICROPY_HW_ENABLE_RNG (1) #define MICROPY_HW_ENABLE_RNG (1)
#define MICROPY_HW_ENABLE_RTC (1) #define MICROPY_HW_ENABLE_RTC (1)
#define MICROPY_HW_ENABLE_USB (1) #define MICROPY_HW_ENABLE_USB (1)
#define MICROPY_HW_ENABLE_SERVO (1)
// HSE is 8MHz // HSE is 8MHz
#define MICROPY_HW_CLK_PLLM (8) #define MICROPY_HW_CLK_PLLM (8)

1
ports/stm32/boards/STM32F439/mpconfigboard.h

@ -6,6 +6,7 @@
#define MICROPY_HW_ENABLE_RTC (1) #define MICROPY_HW_ENABLE_RTC (1)
#define MICROPY_HW_ENABLE_DAC (1) #define MICROPY_HW_ENABLE_DAC (1)
#define MICROPY_HW_ENABLE_USB (1) #define MICROPY_HW_ENABLE_USB (1)
#define MICROPY_HW_ENABLE_SERVO (1)
#define MICROPY_HW_ENABLE_SDCARD (1) // works with no SD card too #define MICROPY_HW_ENABLE_SDCARD (1) // works with no SD card too
// SD card detect switch // SD card detect switch

1
ports/stm32/boards/STM32F4DISC/mpconfigboard.h

@ -7,6 +7,7 @@
#define MICROPY_HW_ENABLE_RTC (1) #define MICROPY_HW_ENABLE_RTC (1)
#define MICROPY_HW_ENABLE_DAC (1) #define MICROPY_HW_ENABLE_DAC (1)
#define MICROPY_HW_ENABLE_USB (1) #define MICROPY_HW_ENABLE_USB (1)
#define MICROPY_HW_ENABLE_SERVO (1)
// HSE is 8MHz // HSE is 8MHz
#define MICROPY_HW_CLK_PLLM (8) #define MICROPY_HW_CLK_PLLM (8)

1
ports/stm32/boards/STM32F769DISC/mpconfigboard.h

@ -10,6 +10,7 @@
#define MICROPY_HW_ENABLE_RNG (1) #define MICROPY_HW_ENABLE_RNG (1)
#define MICROPY_HW_ENABLE_RTC (1) #define MICROPY_HW_ENABLE_RTC (1)
#define MICROPY_HW_ENABLE_USB (1) #define MICROPY_HW_ENABLE_USB (1)
#define MICROPY_HW_ENABLE_SERVO (1)
#define MICROPY_HW_ENABLE_SDCARD (1) #define MICROPY_HW_ENABLE_SDCARD (1)
#define MICROPY_BOARD_EARLY_INIT board_early_init #define MICROPY_BOARD_EARLY_INIT board_early_init

Loading…
Cancel
Save