ecf2d82159
* Synchronize the code of the rt mart branch to the master branch. * TTY device * Add lwP code from rt-smart * Add vnode in DFS, but DFS will be re-write for rt-smart * There are three libcpu for rt-smart: * arm/cortex-a, arm/aarch64 * riscv64 Co-authored-by: Rbb666 <zhangbingru@rt-thread.com> Co-authored-by: zhkag <zhkag@foxmail.com>
21 lines
545 B
C
21 lines
545 B
C
#ifndef LIBOS_OS_H__
|
|
#define LIBOS_OS_H__
|
|
|
|
#include <rtdef.h>
|
|
#include <rthw.h>
|
|
#include <cpuport.h>
|
|
|
|
// typedef rt_sem_t OS_Semaphore_t;
|
|
|
|
#define isb() rt_hw_isb()
|
|
#define dsb(v) rt_hw_dsb()
|
|
|
|
#define ENTER_CRITICAL(flag) rt_hw_interrupt_disable()
|
|
#define EXIT_CRITICAL(flag) rt_hw_interrupt_enable(flag)
|
|
|
|
int32_t esCFG_GetKeyValue(char *SecName, char *KeyName, int32_t Value[], int32_t Count);
|
|
int32_t esCFG_GetGPIOSecKeyCount(char *GPIOSecName);
|
|
int32_t esCFG_GetGPIOSecData(char *GPIOSecName, void *pGPIOCfg, int32_t GPIONum);
|
|
|
|
#endif
|