File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed
hal/transport/NRF5_ESB/driver Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 543
543
* - NRF5_BLE_1MBPS for 1Mbps BLE modulation
544
544
*/
545
545
#ifndef MY_NRF5_ESB_MODE
546
+ #ifdef NRF5_250KBPS
546
547
#define MY_NRF5_ESB_MODE (NRF5_250KBPS)
548
+ #else
549
+ #define MY_NRF5_ESB_MODE (NRF5_1MBPS)
550
+ #endif
547
551
#endif
548
552
549
553
/**
Original file line number Diff line number Diff line change @@ -65,7 +65,9 @@ typedef enum {
65
65
typedef enum {
66
66
NRF5_1MBPS = RADIO_MODE_MODE_Nrf_1Mbit ,
67
67
NRF5_2MBPS = RADIO_MODE_MODE_Nrf_2Mbit ,
68
+ #ifdef RADIO_MODE_MODE_Nrf_250Kbit
68
69
NRF5_250KBPS = RADIO_MODE_MODE_Nrf_250Kbit , // Deprecated!!!
70
+ #endif
69
71
NRF5_BLE_1MBPS = RADIO_MODE_MODE_Ble_1Mbit ,
70
72
} nrf5_mode_e ;
71
73
Original file line number Diff line number Diff line change @@ -547,9 +547,12 @@ static inline uint8_t NRF5_ESB_byte_time()
547
547
return (3 );
548
548
} else if (MY_NRF5_ESB_MODE == NRF5_2MBPS) {
549
549
return (2 );
550
- } else if (MY_NRF5_ESB_MODE == NRF5_250KBPS) {
550
+ }
551
+ #ifdef NRF5_250KBPS
552
+ else if (MY_NRF5_ESB_MODE == NRF5_250KBPS) {
551
553
return (5 );
552
554
}
555
+ #endif
553
556
}
554
557
555
558
extern " C" {
You can’t perform that action at this time.
0 commit comments