stm32/boards: Enable MICROPY_HW_ENABLE_SERVO on various boards.
Fixes issue #8059. Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
parent
5fc55999b2
commit
0892ebe091
|
@ -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_SERVO (1)
|
||||
|
||||
// HSE is 8MHz, HSI is 16MHz CPU freq set to 84MHz
|
||||
// Default source for the clock is HSI.
|
||||
|
|
|
@ -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_SERVO (1)
|
||||
|
||||
// HSE is 8MHz, CPU freq set to 96MHz
|
||||
#define MICROPY_HW_CLK_PLLM (8)
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
#define MICROPY_HW_ENABLE_RNG (1)
|
||||
#define MICROPY_HW_ENABLE_RTC (1)
|
||||
#define MICROPY_HW_ENABLE_USB (1)
|
||||
#define MICROPY_HW_ENABLE_SERVO (1)
|
||||
|
||||
// HSE is 8MHz, CPU freq set to 96MHz
|
||||
#define MICROPY_HW_CLK_PLLM (8)
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
#define MICROPY_HW_ENABLE_RTC (1)
|
||||
#define MICROPY_HW_ENABLE_DAC (1)
|
||||
#define MICROPY_HW_ENABLE_USB (1)
|
||||
#define MICROPY_HW_ENABLE_SERVO (1)
|
||||
|
||||
// HSE is 8MHz, CPU freq set to 96MHz
|
||||
#define MICROPY_HW_CLK_PLLM (8)
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
#define MICROPY_HW_ENABLE_RNG (1)
|
||||
#define MICROPY_HW_ENABLE_RTC (1)
|
||||
#define MICROPY_HW_ENABLE_USB (1)
|
||||
#define MICROPY_HW_ENABLE_SERVO (1)
|
||||
|
||||
// HSE is 8MHz
|
||||
#define MICROPY_HW_CLK_PLLM (8)
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
#define MICROPY_HW_ENABLE_RNG (1)
|
||||
#define MICROPY_HW_ENABLE_RTC (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
|
||||
#define MICROPY_HW_CLK_USE_BYPASS (1)
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
#define MICROPY_HW_HAS_FLASH (1)
|
||||
#define MICROPY_HW_ENABLE_RTC (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
|
||||
// 48 MHz clock for USB. To goto 180 MHz, I think that USB would need to be
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
#define MICROPY_HW_ENABLE_RNG (1)
|
||||
#define MICROPY_HW_ENABLE_RTC (1)
|
||||
#define MICROPY_HW_ENABLE_USB (1)
|
||||
#define MICROPY_HW_ENABLE_SERVO (1)
|
||||
|
||||
// HSE is 8MHz
|
||||
#define MICROPY_HW_CLK_PLLM (8)
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
#define MICROPY_HW_ENABLE_RTC (1)
|
||||
#define MICROPY_HW_ENABLE_DAC (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
|
||||
|
||||
// SD card detect switch
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
#define MICROPY_HW_ENABLE_RTC (1)
|
||||
#define MICROPY_HW_ENABLE_DAC (1)
|
||||
#define MICROPY_HW_ENABLE_USB (1)
|
||||
#define MICROPY_HW_ENABLE_SERVO (1)
|
||||
|
||||
// HSE is 8MHz
|
||||
#define MICROPY_HW_CLK_PLLM (8)
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
#define MICROPY_HW_ENABLE_RNG (1)
|
||||
#define MICROPY_HW_ENABLE_RTC (1)
|
||||
#define MICROPY_HW_ENABLE_USB (1)
|
||||
#define MICROPY_HW_ENABLE_SERVO (1)
|
||||
#define MICROPY_HW_ENABLE_SDCARD (1)
|
||||
|
||||
#define MICROPY_BOARD_EARLY_INIT board_early_init
|
||||
|
|
Loading…
Reference in New Issue