Follow Mbed OS coding style in RF drivers

pull/13473/head
Arto Kinnunen 2020-08-21 13:23:17 +03:00
parent 1215a3a4f7
commit 1045b9cf23
2 changed files with 12 additions and 12 deletions

View File

@ -39,15 +39,15 @@
#if (MBED_VERSION > MBED_ENCODE_VERSION(6, 0, 0)) #if (MBED_VERSION > MBED_ENCODE_VERSION(6, 0, 0))
/* Mbed OS 6.0 introduces support for chrono time management */ /* Mbed OS 6.0 introduces support for chrono time management */
using namespace std::chrono; using namespace std::chrono;
#define ATMEL_RF_TIME_50US 50us #define ATMEL_RF_TIME_50US 50us
#define ATMEL_RF_TIME_2MS 2ms #define ATMEL_RF_TIME_2MS 2ms
#define ATMEL_RF_TIME_10MS 10ms #define ATMEL_RF_TIME_10MS 10ms
#define ATMEL_RF_ATTACH(timer_ref, signal_ref, timeout_ref) timer_ref.attach(signal_ref, timeout_ref) #define ATMEL_RF_ATTACH(timer_ref, signal_ref, timeout_ref) timer_ref.attach(signal_ref, timeout_ref)
#else #else
#define ATMEL_RF_TIME_50US 50 #define ATMEL_RF_TIME_50US 50
#define ATMEL_RF_TIME_2MS 2 #define ATMEL_RF_TIME_2MS 2
#define ATMEL_RF_TIME_10MS 10 #define ATMEL_RF_TIME_10MS 10
#define ATMEL_RF_ATTACH(timer_ref, signal_ref, timeout_ref) timer_ref.attach_us(signal_ref, timeout_ref) #define ATMEL_RF_ATTACH(timer_ref, signal_ref, timeout_ref) timer_ref.attach_us(signal_ref, timeout_ref)
#endif #endif
#define TRACE_GROUP "AtRF" #define TRACE_GROUP "AtRF"

View File

@ -36,11 +36,11 @@
#if (MBED_VERSION > MBED_ENCODE_VERSION(6, 0, 0)) #if (MBED_VERSION > MBED_ENCODE_VERSION(6, 0, 0))
/* Mbed OS 6.0 introduces support for chrono time management */ /* Mbed OS 6.0 introduces support for chrono time management */
using namespace std::chrono; using namespace std::chrono;
#define S2LP_USE_CHRONO #define S2LP_USE_CHRONO
#define S2LP_TIME_50US 50us #define S2LP_TIME_50US 50us
#define S2LP_TIME_10MS 10ms #define S2LP_TIME_10MS 10ms
#else #else
#define S2LP_TIME_10MS 10 #define S2LP_TIME_10MS 10
#endif #endif
using namespace mbed; using namespace mbed;