freertos: release the generic version source code
freertos runs on the second core (small one) of the CPU
This commit is contained in:
14
freertos/cvitek/common/include/cv1835/delay.h
Normal file
14
freertos/cvitek/common/include/cv1835/delay.h
Normal file
@ -0,0 +1,14 @@
|
||||
#ifndef _DELAY_H
|
||||
#define _DELAY_H
|
||||
|
||||
//#include <FreeRTOS_POSIX/unistd.h>
|
||||
|
||||
#ifndef udelay
|
||||
#define udelay(us) usleep(us)
|
||||
#endif
|
||||
|
||||
#ifndef mdelay
|
||||
#define mdelay(us) usleep(us*1000)
|
||||
#endif
|
||||
|
||||
#endif // end of _DELAY_H
|
||||
Reference in New Issue
Block a user