diff options
| author | roland <roland@van-straten.org> | 2018-09-07 14:15:13 +0200 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2018-09-11 15:23:19 +1000 |
| commit | 67ee4e24010322153d04d8f684927b6332d4cd90 (patch) | |
| tree | 5b264d5966d0b7515aa4cc636d96bc122ffcf17b | |
| parent | 670a2a33967b875d4626eb1fb5323411936b9573 (diff) | |
stm32/boards/STM32L476DISC: Enable external RTC xtal to get RTC working.
| -rw-r--r-- | ports/stm32/boards/STM32L476DISC/mpconfigboard.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ports/stm32/boards/STM32L476DISC/mpconfigboard.h b/ports/stm32/boards/STM32L476DISC/mpconfigboard.h index a35dee118..2653ebb34 100644 --- a/ports/stm32/boards/STM32L476DISC/mpconfigboard.h +++ b/ports/stm32/boards/STM32L476DISC/mpconfigboard.h @@ -36,6 +36,9 @@ extern struct _spi_bdev_t spi_bdev; #define MICROPY_HW_CLK_PLLR (RCC_PLLR_DIV2) #define MICROPY_HW_CLK_PLLQ (RCC_PLLQ_DIV2) +// The board has an external 32kHz crystal +#define MICROPY_HW_RTC_USE_LSE (1) + #define MICROPY_HW_FLASH_LATENCY FLASH_LATENCY_4 // USART config |
