4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-22 11:59:21 +08:00
guo ecf2d82159
sync branch rt-smart. (#6641)
* 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>
2022-12-03 12:07:44 +08:00

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