Reorder TIMEKEEPING_UNLOCK; remove timekeeping.h
Based on code review by @ourairquality
This commit is contained in:
parent
6902615525
commit
bb58626f47
2 changed files with 1 additions and 53 deletions
|
|
@ -46,8 +46,6 @@
|
|||
|
||||
#include <time.h>
|
||||
|
||||
#include "timekeeping.h"
|
||||
|
||||
|
||||
/* #define here for easier use of other system clocks */
|
||||
#define GET_SYSTEM_CLOCK_US() sdk_system_get_time()
|
||||
|
|
@ -113,7 +111,7 @@ extern void __tz_unlock(void);
|
|||
|
||||
#ifdef TIMEKEEPING_LOCK_USE_CRITICAL
|
||||
#define TIMEKEEPING_LOCK() do {TZ_LOCK; taskENTER_CRITICAL();} while (0)
|
||||
#define TIMEKEEPING_UNLOCK() do {TZ_UNLOCK; taskEXIT_CRITICAL();} while (0)
|
||||
#define TIMEKEEPING_UNLOCK() do {taskEXIT_CRITICAL(); TZ_UNLOCK;} while (0)
|
||||
#else
|
||||
#define TIMEKEEPING_LOCK() TZ_LOCK
|
||||
#define TIMEKEEPING_UNLOCK() TZ_UNLOCK
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue