os.h 545 B

1234567891011121314151617181920
  1. #ifndef LIBOS_OS_H__
  2. #define LIBOS_OS_H__
  3. #include <rtdef.h>
  4. #include <rthw.h>
  5. #include <cpuport.h>
  6. // typedef rt_sem_t OS_Semaphore_t;
  7. #define isb() rt_hw_isb()
  8. #define dsb(v) rt_hw_dsb()
  9. #define ENTER_CRITICAL(flag) rt_hw_interrupt_disable()
  10. #define EXIT_CRITICAL(flag) rt_hw_interrupt_enable(flag)
  11. int32_t esCFG_GetKeyValue(char *SecName, char *KeyName, int32_t Value[], int32_t Count);
  12. int32_t esCFG_GetGPIOSecKeyCount(char *GPIOSecName);
  13. int32_t esCFG_GetGPIOSecData(char *GPIOSecName, void *pGPIOCfg, int32_t GPIONum);
  14. #endif