Timer that can elapse duration greater than SW_TIMER_MAX_TIMEOUT.
Copyright (c) 2020 Microchip Technology Inc. and its subsidiaries.
#include <asf.h>
Macros | |
#define | LONG_TIMER_LAP_DURATION_US (MS_TO_US( 600000 )) /* 10 mins */ |
Functions | |
void | LongTimerInit (void) |
void | LongTimerReset (void) |
void | LongTimerStart (uint64_t intervalMicros, void(*cb)(void)) |
#define LONG_TIMER_LAP_DURATION_US (MS_TO_US( 600000 )) /* 10 mins */ |
Referenced by LongTimerCallback(), and LongTimerStart().
void LongTimerInit | ( | void | ) |
References LOGLINE_ERROR, LORAWAN_SUCCESS, pkgCommonLongTimerId, and SwTimerCreate().
void LongTimerReset | ( | void | ) |
References longTimerCb, longTimerRemInterval, NULL, pkgCommonLongTimerId, SWTIMER_INVALID, SwTimerIsRunning(), and SwTimerStop().
void LongTimerStart | ( | uint64_t | intervalMicros, |
void(*)(void) | cb | ||
) |