In some configurations, g_system_tmer must be extern'ed as a private variable
This commit is contained in:
parent
98cf3b06e5
commit
9ab67dce75
@ -66,14 +66,25 @@
|
||||
/********************************************************************************
|
||||
* Global Variables
|
||||
********************************************************************************/
|
||||
#if !defined(CONFIG_SCHED_TICKLESS) && __HAVE_KERNEL_GLOBALS == 0
|
||||
/* The system clock exists (CONFIG_SCHED_TICKLESS), but it not prototyped
|
||||
* globally in include/nuttx/clock.h.
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_SYSTEM_TIME64
|
||||
extern uint64_t g_tickbias;
|
||||
#else
|
||||
extern uint32_t g_tickbias;
|
||||
# ifdef CONFIG_SYSTEM_TIME64
|
||||
extern volatile uint64_t g_system_timer;
|
||||
# else
|
||||
extern volatile uint32_t g_system_timer;
|
||||
# endif
|
||||
#endif
|
||||
|
||||
extern struct timespec g_basetime;
|
||||
#ifdef CONFIG_SYSTEM_TIME64
|
||||
extern uint64_t g_tickbias;
|
||||
#else
|
||||
extern uint32_t g_tickbias;
|
||||
#endif
|
||||
|
||||
extern struct timespec g_basetime;
|
||||
|
||||
/********************************************************************************
|
||||
* Public Function Prototypes
|
||||
|
Loading…
Reference in New Issue
Block a user