From ba052dd160b6d35cc0e673df549b6a822dbac2be Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Mon, 3 May 2021 00:15:21 -0700 Subject: [PATCH] missed setting up routing for the analog pin.. --- board.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/board.c b/board.c index 136d592..e1449c8 100644 --- a/board.c +++ b/board.c @@ -197,6 +197,10 @@ void BoardInitMcu( void ) AdcInit( &Adc, PB_15 ); // Just initialize ADC + /* setup routing */ + __HAL_RI_IOSWITCH_CLOSE(RI_IOSWITCH_CH21); + __HAL_RI_SWITCHCONTROLMODE_ENABLE(); + #if defined( SX1261MBXBAS ) || defined( SX1262MBXCAS ) || defined( SX1262MBXDAS ) SpiInit( &SX126x.Spi, SPI_1, RADIO_MOSI, RADIO_MISO, RADIO_SCLK, NC ); SX126xIoInit( );