From e80792c3f0737ec4db7b35aed84f7ef6e5ff65c0 Mon Sep 17 00:00:00 2001 From: Andrey Gusakov Date: Tue, 7 Jun 2022 22:34:36 +0300 Subject: [PATCH] f1_dual: setup correct remaps --- firmware/boards/f1_dual/board.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/firmware/boards/f1_dual/board.c b/firmware/boards/f1_dual/board.c index a481eb9..3df9268 100644 --- a/firmware/boards/f1_dual/board.c +++ b/firmware/boards/f1_dual/board.c @@ -39,6 +39,9 @@ const PALConfig pal_default_config = * any other initialization. */ void __early_init(void) { + AFIO->MAPR |= AFIO_MAPR_SPI1_REMAP | /* remap SPI1 to PB3, PB4, PB5 and PA15 */ + AFIO_MAPR_I2C1_REMAP | /* remap I2C1 to PB8, PB9 */ + AFIO_MAPR_PD01_REMAP; /* remap PD0, PD1 onto OSC_IN and OSC_OUT */ stm32_clock_init(); }