@@ -115,11 +115,11 @@ const float lora_symbol_time[3][6] = {{ 32.768, 16.384, 8.192, 4.096, 2.048, 1.0
115
115
116
116
117
117
#ifdef MBED_CONF_STM32WL_LORA_DRIVER_DEBUG_RX
118
- static DigitalOut _rf_dbg_rx (MBED_CONF_STM32WL_LORA_DRIVER_DEBUG_RX, 0 );
118
+ static DigitalOut _rf_dbg_rx (MBED_CONF_STM32WL_LORA_DRIVER_DEBUG_RX, MBED_CONF_STM32WL_LORA_DRIVER_DEBUG_INVERT );
119
119
#endif
120
120
121
121
#ifdef MBED_CONF_STM32WL_LORA_DRIVER_DEBUG_TX
122
- static DigitalOut _rf_dbg_tx (MBED_CONF_STM32WL_LORA_DRIVER_DEBUG_TX, 0 );
122
+ static DigitalOut _rf_dbg_tx (MBED_CONF_STM32WL_LORA_DRIVER_DEBUG_TX, MBED_CONF_STM32WL_LORA_DRIVER_DEBUG_INVERT );
123
123
#endif
124
124
125
125
@@ -302,7 +302,7 @@ void STM32WL_LoRaRadio::HAL_SUBGHZ_TxCpltCallback(void)
302
302
303
303
#ifdef MBED_CONF_STM32WL_LORA_DRIVER_DEBUG_TX
304
304
/* Reset TX DBG pin */
305
- _rf_dbg_tx = 0 ;
305
+ _rf_dbg_tx = MBED_CONF_STM32WL_LORA_DRIVER_DEBUG_INVERT ;
306
306
#endif
307
307
}
308
308
}
@@ -330,7 +330,7 @@ void STM32WL_LoRaRadio::HAL_SUBGHZ_RxCpltCallback(void)
330
330
331
331
#ifdef MBED_CONF_STM32WL_LORA_DRIVER_DEBUG_RX
332
332
/* Reset RX DBG pin */
333
- _rf_dbg_rx = 0 ;
333
+ _rf_dbg_rx = MBED_CONF_STM32WL_LORA_DRIVER_DEBUG_INVERT ;
334
334
#endif
335
335
}
336
336
}
@@ -360,15 +360,15 @@ void STM32WL_LoRaRadio::HAL_SUBGHZ_RxTxTimeoutCallback(void)
360
360
361
361
#if MBED_CONF_STM32WL_LORA_DRIVER_DEBUG_TX
362
362
/* Reset TX DBG pin */
363
- _rf_dbg_tx = 0 ;
363
+ _rf_dbg_tx = MBED_CONF_STM32WL_LORA_DRIVER_DEBUG_INVERT ;
364
364
#endif
365
365
366
366
} else if ((_radio_events && _radio_events->rx_timeout ) && (_operating_mode == MODE_RX)) {
367
367
_radio_events->rx_timeout ();
368
368
369
369
#ifdef MBED_CONF_STM32WL_LORA_DRIVER_DEBUG_RX
370
370
/* Reset RX DBG pin */
371
- _rf_dbg_rx = 0 ;
371
+ _rf_dbg_rx = MBED_CONF_STM32WL_LORA_DRIVER_DEBUG_INVERT ;
372
372
#endif
373
373
}
374
374
}
@@ -1079,7 +1079,7 @@ void STM32WL_LoRaRadio::send(uint8_t *buffer, uint8_t size)
1079
1079
1080
1080
#ifdef MBED_CONF_STM32WL_LORA_DRIVER_DEBUG_TX
1081
1081
/* Set TX DBG pin */
1082
- _rf_dbg_tx = 1 ;
1082
+ _rf_dbg_tx = !MBED_CONF_STM32WL_LORA_DRIVER_DEBUG_INVERT ;
1083
1083
#endif
1084
1084
1085
1085
/* Set RF switch */
@@ -1137,7 +1137,7 @@ void STM32WL_LoRaRadio::receive(void)
1137
1137
1138
1138
#ifdef MBED_CONF_STM32WL_LORA_DRIVER_DEBUG_RX
1139
1139
/* Set RX DBG pin */
1140
- _rf_dbg_rx = 1 ;
1140
+ _rf_dbg_rx = !MBED_CONF_STM32WL_LORA_DRIVER_DEBUG_INVERT ;
1141
1141
#endif
1142
1142
1143
1143
/* RF switch configuration */
0 commit comments