[freertos] add freertos firmware

Change-Id: I4158d66d9b5fc444e28287f55e79ac24e0a1666f
This commit is contained in:
sam.xiang
2023-02-23 11:39:27 +08:00
parent 1cf39ecdd5
commit cbb030f19f
398 changed files with 151104 additions and 0 deletions

View 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