Skip to content

Commit 1045b9c

Browse files
author
Arto Kinnunen
committed
Follow Mbed OS coding style in RF drivers
1 parent 1215a3a commit 1045b9c

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

connectivity/drivers/802.15.4_RF/atmel-rf-driver/source/NanostackRfPhyAtmel.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@
3939
#if (MBED_VERSION > MBED_ENCODE_VERSION(6, 0, 0))
4040
/* Mbed OS 6.0 introduces support for chrono time management */
4141
using namespace std::chrono;
42-
#define ATMEL_RF_TIME_50US 50us
43-
#define ATMEL_RF_TIME_2MS 2ms
44-
#define ATMEL_RF_TIME_10MS 10ms
45-
#define ATMEL_RF_ATTACH(timer_ref, signal_ref, timeout_ref) timer_ref.attach(signal_ref, timeout_ref)
42+
#define ATMEL_RF_TIME_50US 50us
43+
#define ATMEL_RF_TIME_2MS 2ms
44+
#define ATMEL_RF_TIME_10MS 10ms
45+
#define ATMEL_RF_ATTACH(timer_ref, signal_ref, timeout_ref) timer_ref.attach(signal_ref, timeout_ref)
4646
#else
47-
#define ATMEL_RF_TIME_50US 50
48-
#define ATMEL_RF_TIME_2MS 2
49-
#define ATMEL_RF_TIME_10MS 10
50-
#define ATMEL_RF_ATTACH(timer_ref, signal_ref, timeout_ref) timer_ref.attach_us(signal_ref, timeout_ref)
47+
#define ATMEL_RF_TIME_50US 50
48+
#define ATMEL_RF_TIME_2MS 2
49+
#define ATMEL_RF_TIME_10MS 10
50+
#define ATMEL_RF_ATTACH(timer_ref, signal_ref, timeout_ref) timer_ref.attach_us(signal_ref, timeout_ref)
5151
#endif
5252

5353
#define TRACE_GROUP "AtRF"

connectivity/drivers/802.15.4_RF/stm-s2lp-rf-driver/source/NanostackRfPhys2lp.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@
3636
#if (MBED_VERSION > MBED_ENCODE_VERSION(6, 0, 0))
3737
/* Mbed OS 6.0 introduces support for chrono time management */
3838
using namespace std::chrono;
39-
#define S2LP_USE_CHRONO
40-
#define S2LP_TIME_50US 50us
41-
#define S2LP_TIME_10MS 10ms
39+
#define S2LP_USE_CHRONO
40+
#define S2LP_TIME_50US 50us
41+
#define S2LP_TIME_10MS 10ms
4242
#else
43-
#define S2LP_TIME_10MS 10
43+
#define S2LP_TIME_10MS 10
4444
#endif
4545

4646
using namespace mbed;

0 commit comments

Comments
 (0)