SX1276GenericLib to support sx1276 bassed LoRa modules, including HopeRF RFM95, Murata CMWX1ZZABZ and Semtech SX1276MB1MAS/SX1276MB1LAS modules
Dependents: DISCO-L072CZ-LRWAN1_LoRa_PingPong DISCO-L072CZ-LRWAN1_LoRa_PingPong DISCO-L072CZ-LRWAN1_LoRa_PingPong DISCO-L072CZ-LRWAN1_LoRa_USB_Rx ... more
Fork of SX1276Lib by
Diff: Arduino-mbed-APIs/arduino-d21.cpp
- Revision:
- 101:50377edb21c6
- Parent:
- 97:3d5d489206aa
- Child:
- 105:6e6d141c3da8
--- a/Arduino-mbed-APIs/arduino-d21.cpp Sun Nov 19 17:49:33 2017 +0100 +++ b/Arduino-mbed-APIs/arduino-d21.cpp Sun Nov 19 17:51:27 2017 +0100 @@ -101,6 +101,13 @@ uint64_t ticker_ns; static bool initTickerDone = false; +void setTickerStartSecs(int secs) +{ + ticker_ns = (uint64_t)1000000 * (uint64_t)secs; + ticker_ns *= (uint64_t)1000; +} + + uint64_t ns_getTicker(void) { Tcc *t = TCC_data[USE_TCC_TICKER].tcc_ptr;