File tree Expand file tree Collapse file tree
stmhal/boards/STM32L476DISC Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616#define MICROPY_HW_ENABLE_DAC (0)
1717#define MICROPY_HW_ENABLE_CAN (0)
1818
19- // HSE is 8MHz
20- #define MICROPY_HW_CLK_PLLM (2 )
19+ // MSI is used and is 4MHz
20+ #define MICROPY_HW_CLK_PLLM (1 )
2121#define MICROPY_HW_CLK_PLLN (40)
2222#define MICROPY_HW_CLK_PLLP (RCC_PLLP_DIV7)
23- #define MICROPY_HW_CLK_PLLR (RCC_PLLP_DIV7 )
23+ #define MICROPY_HW_CLK_PLLR (RCC_PLLR_DIV2 )
2424#define MICROPY_HW_CLK_PLLQ (RCC_PLLQ_DIV2)
2525
2626#define MICROPY_HW_FLASH_LATENCY FLASH_LATENCY_4
3232// I2C busses
3333#define MICROPY_HW_I2C1_SCL (pin_B6)
3434#define MICROPY_HW_I2C1_SDA (pin_B7)
35+ #define MICROPY_HW_I2C2_SCL (pin_B10)
36+ #define MICROPY_HW_I2C2_SDA (pin_B11)
3537// We use an array of baudrates and corresponding TIMINGR values.
3638//
3739// The value 0x90112626 was obtained from the DISCOVERY_I2C1_TIMING constant
You can’t perform that action at this time.
0 commit comments