mirror of https://github.com/ARMmbed/mbed-os.git
Follow Mbed OS coding style in RF drivers
parent
1215a3a4f7
commit
1045b9cf23
|
@ -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"
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue