summaryrefslogtreecommitdiff
path: root/bsp/allwinner/libraries/libos/include/os.h
blob: 52002c776f22e5952e1c1045b19c85dda4acd87a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#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