rfdsatt: re-maip HSE pins to PD0/PD1
STM32F1 uses those pins as HSE by default, we need to explicitly re-map them to PD0/PD1
This commit is contained in:
parent
26b10f3e5d
commit
e8849c28ea
|
@ -145,7 +145,7 @@ static void gpio_setup(void)
|
|||
#ifdef STM32F1
|
||||
/* disable JTAG, keep SWJ-DP (we use some related GPIOs) */
|
||||
rcc_periph_clock_enable(RCC_AFIO);
|
||||
gpio_primary_remap(AFIO_MAPR_SWJ_CFG_JTAG_OFF_SW_ON, 0);
|
||||
gpio_primary_remap(AFIO_MAPR_SWJ_CFG_JTAG_OFF_SW_ON, AFIO_MAPR_PD01_REMAP);
|
||||
|
||||
/* Set GPIO15 (in GPIO port B) to 'output push-pull' for the LED. */
|
||||
gpio_set_mode(GPIOB, GPIO_MODE_OUTPUT_2_MHZ,
|
||||
|
|
Loading…
Reference in New Issue