23 lines
769 B
C
23 lines
769 B
C
|
#ifndef SUNXI_HAL_CFG_H
|
||
|
#define SUNXI_HAL_CFG_H
|
||
|
#ifdef CONFIG_KERNEL_FREERTOS
|
||
|
#include <stdint.h>
|
||
|
#include <stdlib.h>
|
||
|
#include <stdio.h>
|
||
|
int32_t Hal_Cfg_GetGPIOSecKeyCount(char *GPIOSecName);
|
||
|
int32_t Hal_Cfg_GetGPIOSecData(char *GPIOSecName, void *pGPIOCfg, int32_t GPIONum);
|
||
|
#else
|
||
|
#include <stdint.h>
|
||
|
#include <kapi.h>
|
||
|
#include <stdlib.h>
|
||
|
#include <stdio.h>
|
||
|
int32_t Hal_Cfg_Init(uint8_t *CfgVAddr, uint32_t size);
|
||
|
int32_t Hal_Cfg_Exit(void);
|
||
|
int32_t Hal_Cfg_GetKeyValue(char *SecName, char *KeyName, int32_t Value[], int32_t Count);
|
||
|
int32_t Hal_Cfg_GetSecKeyCount(char *SecName);
|
||
|
int32_t Hal_Cfg_GetSecCount(void);
|
||
|
int32_t Hal_Cfg_GetGPIOSecKeyCount(char *GPIOSecName);
|
||
|
int32_t Hal_Cfg_GetGPIOSecData(char *GPIOSecName, void *pGPIOCfg, int32_t GPIONum);
|
||
|
#endif
|
||
|
#endif
|