[freertos] add freertos firmware
Change-Id: I4158d66d9b5fc444e28287f55e79ac24e0a1666f
This commit is contained in:
12
freertos/cvitek/install/include/arch/arch_time.h
Normal file
12
freertos/cvitek/install/include/arch/arch_time.h
Normal file
@ -0,0 +1,12 @@
|
||||
#ifndef __TIME_L_H__
|
||||
#define __TIME_L_H__
|
||||
|
||||
inline static unsigned long GetSysTime(void)
|
||||
{
|
||||
unsigned long sys_tick = 0;
|
||||
|
||||
asm volatile("rdtime %0": "=r"(sys_tick));
|
||||
return sys_tick;
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user