Skip to content

Commit 3a87be3

Browse files
committed
Issue #1060 - Fixed SX126x driver IrqFired variable management
1 parent 9a6c7dc commit 3a87be3

File tree

11 files changed

+60
-0
lines changed

11 files changed

+60
-0
lines changed

src/boards/NucleoL073/sx1261mbxbas-board.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,11 @@ bool SX126xCheckRfFrequency( uint32_t frequency )
330330
return true;
331331
}
332332

333+
uint32_t SX126xGetDio1PinState( void )
334+
{
335+
return GpioRead( &SX126x.DIO1 );
336+
}
337+
333338
#if defined( USE_RADIO_DEBUG )
334339
static void SX126xDbgPinTxWrite( uint8_t state )
335340
{

src/boards/NucleoL073/sx1262mbxcas-board.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,11 @@ bool SX126xCheckRfFrequency( uint32_t frequency )
330330
return true;
331331
}
332332

333+
uint32_t SX126xGetDio1PinState( void )
334+
{
335+
return GpioRead( &SX126x.DIO1 );
336+
}
337+
333338
#if defined( USE_RADIO_DEBUG )
334339
static void SX126xDbgPinTxWrite( uint8_t state )
335340
{

src/boards/NucleoL073/sx1262mbxdas-board.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,11 @@ bool SX126xCheckRfFrequency( uint32_t frequency )
337337
return true;
338338
}
339339

340+
uint32_t SX126xGetDio1PinState( void )
341+
{
342+
return GpioRead( &SX126x.DIO1 );
343+
}
344+
340345
#if defined( USE_RADIO_DEBUG )
341346
static void SX126xDbgPinTxWrite( uint8_t state )
342347
{

src/boards/NucleoL152/sx1261mbxbas-board.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,11 @@ bool SX126xCheckRfFrequency( uint32_t frequency )
330330
return true;
331331
}
332332

333+
uint32_t SX126xGetDio1PinState( void )
334+
{
335+
return GpioRead( &SX126x.DIO1 );
336+
}
337+
333338
#if defined( USE_RADIO_DEBUG )
334339
static void SX126xDbgPinTxWrite( uint8_t state )
335340
{

src/boards/NucleoL152/sx1262mbxcas-board.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,11 @@ bool SX126xCheckRfFrequency( uint32_t frequency )
330330
return true;
331331
}
332332

333+
uint32_t SX126xGetDio1PinState( void )
334+
{
335+
return GpioRead( &SX126x.DIO1 );
336+
}
337+
333338
#if defined( USE_RADIO_DEBUG )
334339
static void SX126xDbgPinTxWrite( uint8_t state )
335340
{

src/boards/NucleoL152/sx1262mbxdas-board.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,11 @@ bool SX126xCheckRfFrequency( uint32_t frequency )
337337
return true;
338338
}
339339

340+
uint32_t SX126xGetDio1PinState( void )
341+
{
342+
return GpioRead( &SX126x.DIO1 );
343+
}
344+
340345
#if defined( USE_RADIO_DEBUG )
341346
static void SX126xDbgPinTxWrite( uint8_t state )
342347
{

src/boards/NucleoL476/sx1261mbxbas-board.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,11 @@ bool SX126xCheckRfFrequency( uint32_t frequency )
330330
return true;
331331
}
332332

333+
uint32_t SX126xGetDio1PinState( void )
334+
{
335+
return GpioRead( &SX126x.DIO1 );
336+
}
337+
333338
#if defined( USE_RADIO_DEBUG )
334339
static void SX126xDbgPinTxWrite( uint8_t state )
335340
{

src/boards/NucleoL476/sx1262mbxcas-board.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,11 @@ bool SX126xCheckRfFrequency( uint32_t frequency )
330330
return true;
331331
}
332332

333+
uint32_t SX126xGetDio1PinState( void )
334+
{
335+
return GpioRead( &SX126x.DIO1 );
336+
}
337+
333338
#if defined( USE_RADIO_DEBUG )
334339
static void SX126xDbgPinTxWrite( uint8_t state )
335340
{

src/boards/NucleoL476/sx1262mbxdas-board.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,11 @@ bool SX126xCheckRfFrequency( uint32_t frequency )
337337
return true;
338338
}
339339

340+
uint32_t SX126xGetDio1PinState( void )
341+
{
342+
return GpioRead( &SX126x.DIO1 );
343+
}
344+
340345
#if defined( USE_RADIO_DEBUG )
341346
static void SX126xDbgPinTxWrite( uint8_t state )
342347
{

src/boards/sx126x-board.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,13 @@ bool SX126xCheckRfFrequency( uint32_t frequency );
159159
*/
160160
uint32_t SX126xGetBoardTcxoWakeupTime( void );
161161

162+
/*!
163+
* \brief Gets current state of DIO1 pin state.
164+
*
165+
* \retval state DIO1 pin current state.
166+
*/
167+
uint32_t SX126xGetDio1PinState( void );
168+
162169
/*!
163170
* \brief Gets the current Radio OperationMode variable
164171
*

0 commit comments

Comments
 (0)