1 #ifndef SUNXI_HAL_CFG_H 2 #define SUNXI_HAL_CFG_H 3 #ifdef CONFIG_KERNEL_FREERTOS 4 #include <stdint.h> 5 #include <stdlib.h> 6 #include <stdio.h> 7 int32_t Hal_Cfg_GetGPIOSecKeyCount(char *GPIOSecName); 8 int32_t Hal_Cfg_GetGPIOSecData(char *GPIOSecName, void *pGPIOCfg, int32_t GPIONum); 9 #else 10 #include <stdint.h> 11 #include <kapi.h> 12 #include <stdlib.h> 13 #include <stdio.h> 14 int32_t Hal_Cfg_Init(uint8_t *CfgVAddr, uint32_t size); 15 int32_t Hal_Cfg_Exit(void); 16 int32_t Hal_Cfg_GetKeyValue(char *SecName, char *KeyName, int32_t Value[], int32_t Count); 17 int32_t Hal_Cfg_GetSecKeyCount(char *SecName); 18 int32_t Hal_Cfg_GetSecCount(void); 19 int32_t Hal_Cfg_GetGPIOSecKeyCount(char *GPIOSecName); 20 int32_t Hal_Cfg_GetGPIOSecData(char *GPIOSecName, void *pGPIOCfg, int32_t GPIONum); 21 #endif 22 #endif 23