Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions protocols/lbm_lib/smtc_modem_core/smtc_modem.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,6 @@ typedef struct modem_key_ctx_s
*/

radio_planner_t * modem_radio_planner = NULL;
ralf_t * modem_radio;
/*
#if defined( SX128X )
ralf_t modem_radio = RALF_SX128X_INSTANTIATE( NULL );
#elif defined( SX126X )
Expand All @@ -205,7 +203,6 @@ ralf_t modem_radio = RALF_SX127X_INSTANTIATE( &sx127x );
#else
#error "Please select radio board.."
#endif
*/
struct
{
uint8_t modem_appkey_status;
Expand Down Expand Up @@ -291,19 +288,19 @@ void smtc_modem_set_radio_context( const void* radio_ctx )
{
#if defined( SX1272 ) || defined( SX1276 )
// update modem_radio context with provided one
( ( sx127x_t* ) modem_radio->ral.context )->hal_context = radio_ctx;
( ( sx127x_t* ) modem_radio.ral.context )->hal_context = radio_ctx;
#else
// update modem_radio context with provided one
modem_radio->ral.context = radio_ctx;
modem_radio.ral.context = radio_ctx;
#endif
// Save modem radio context in case of direct access to radio by the modem
modem_set_radio_ctx( modem_radio->ral.context );
modem_set_radio_ctx( modem_radio.ral.context );
}

const void* smtc_modem_get_radio_context( void )
{
// Get radio context
return modem_radio->ral.context;
return modem_radio.ral.context;
}

bool smtc_modem_is_irq_flag_pending( void )
Expand Down