Browse Source

stm32/boards: Enable MICROPY_HW_RTC_USE_LSE on L4 boards.

The previous commit changed the default configuration on L4 MCUs to use
LSI, so configure these boards to use LSE again.
pull/5154/head
Damien George 5 years ago
parent
commit
26e90a0514
  1. 4
      ports/stm32/boards/B_L475E_IOT01A/mpconfigboard.h
  2. 4
      ports/stm32/boards/LIMIFROG/mpconfigboard.h
  3. 3
      ports/stm32/boards/NUCLEO_L432KC/mpconfigboard.h
  4. 3
      ports/stm32/boards/NUCLEO_L476RG/mpconfigboard.h
  5. 4
      ports/stm32/boards/STM32L496GDISC/mpconfigboard.h

4
ports/stm32/boards/B_L475E_IOT01A/mpconfigboard.h

@ -12,9 +12,11 @@
#define MICROPY_HW_CLK_PLLP (RCC_PLLP_DIV7)
#define MICROPY_HW_CLK_PLLR (RCC_PLLR_DIV2)
#define MICROPY_HW_CLK_PLLQ (RCC_PLLQ_DIV4)
#define MICROPY_HW_FLASH_LATENCY FLASH_LATENCY_4
// The board has an external 32kHz crystal
#define MICROPY_HW_RTC_USE_LSE (1)
// USART1 config connected to ST-Link
#define MICROPY_HW_UART1_TX (pin_B6)
#define MICROPY_HW_UART1_RX (pin_B7)

4
ports/stm32/boards/LIMIFROG/mpconfigboard.h

@ -16,9 +16,11 @@ void LIMIFROG_board_early_init(void);
#define MICROPY_HW_CLK_PLLP (RCC_PLLP_DIV7)
#define MICROPY_HW_CLK_PLLR (RCC_PLLR_DIV2)
#define MICROPY_HW_CLK_PLLQ (RCC_PLLQ_DIV2)
#define MICROPY_HW_FLASH_LATENCY FLASH_LATENCY_4
// The board has an external 32kHz crystal
#define MICROPY_HW_RTC_USE_LSE (1)
// USART config
#define MICROPY_HW_UART3_TX (pin_C10)
#define MICROPY_HW_UART3_RX (pin_C11)

3
ports/stm32/boards/NUCLEO_L432KC/mpconfigboard.h

@ -25,6 +25,9 @@
#define MICROPY_HW_CLK_PLLP (7)
#define MICROPY_HW_CLK_PLLQ (2)
// The board has an external 32kHz crystal
#define MICROPY_HW_RTC_USE_LSE (1)
// UART config
#define MICROPY_HW_UART1_TX (pin_B6)
#define MICROPY_HW_UART1_RX (pin_B7)

3
ports/stm32/boards/NUCLEO_L476RG/mpconfigboard.h

@ -15,6 +15,9 @@
#define MICROPY_HW_CLK_PLLQ (RCC_PLLQ_DIV2)
#define MICROPY_HW_CLK_PLLR (RCC_PLLR_DIV2)
// The board has an external 32kHz crystal
#define MICROPY_HW_RTC_USE_LSE (1)
// UART config
#define MICROPY_HW_UART2_TX (pin_A2)
#define MICROPY_HW_UART2_RX (pin_A3)

4
ports/stm32/boards/STM32L496GDISC/mpconfigboard.h

@ -14,9 +14,11 @@
#define MICROPY_HW_CLK_PLLP (RCC_PLLP_DIV7)
#define MICROPY_HW_CLK_PLLR (RCC_PLLR_DIV2)
#define MICROPY_HW_CLK_PLLQ (RCC_PLLQ_DIV2)
#define MICROPY_HW_FLASH_LATENCY FLASH_LATENCY_4
// The board has an external 32kHz crystal
#define MICROPY_HW_RTC_USE_LSE (1)
// USART config
#define MICROPY_HW_UART2_TX (pin_A2)
#define MICROPY_HW_UART2_RX (pin_D6)

Loading…
Cancel
Save