| | |
| | | // ERROR: Value not found |
| | | while( 1 ); |
| | | } |
| | | |
| | | uint16_t tt2[10]; |
| | | void RadioInit( RadioEvents_t *events ) |
| | | { |
| | | RadioEvents = events; |
| | | |
| | | tt2[0] = HAL_LPTIM_ReadCounter(&hlptim1); |
| | | SX126xInit( RadioOnDioIrq ); |
| | | tt2[1] = HAL_LPTIM_ReadCounter(&hlptim1); |
| | | SX126xSetStandby( STDBY_RC ); |
| | | tt2[2] = HAL_LPTIM_ReadCounter(&hlptim1); |
| | | SX126xSetRegulatorMode( USE_DCDC ); |
| | | |
| | | tt2[3] = HAL_LPTIM_ReadCounter(&hlptim1); |
| | | SX126xSetBufferBaseAddress( 0x00, 0x00 ); |
| | | tt2[4] = HAL_LPTIM_ReadCounter(&hlptim1); |
| | | SX126xSetTxParams( 0, RADIO_RAMP_200_US ); |
| | | tt2[5] = HAL_LPTIM_ReadCounter(&hlptim1); |
| | | SX126xSetDioIrqParams( IRQ_RADIO_ALL, IRQ_RADIO_ALL, IRQ_RADIO_NONE, IRQ_RADIO_NONE ); |
| | | |
| | | tt2[6] = HAL_LPTIM_ReadCounter(&hlptim1); |
| | | //Initialize driver timeout timers |
| | | //TimerInit( &TxTimeoutTimer, RadioOnTxTimeoutIrq ); |
| | | //TimerInit( &RxTimeoutTimer, RadioOnRxTimeoutIrq ); |