Browse Source

missed setting up routing for the analog pin..

irr_shared
John-Mark Gurney 3 years ago
parent
commit
ba052dd160
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      board.c

+ 4
- 0
board.c View File

@@ -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( );


Loading…
Cancel
Save