gpio.h 695 B

1234567891011121314151617181920
  1. #ifndef _gpio_h
  2. #include <asm/types.h>
  3. #include "./../../drivers/include/gpio_pin_define.h"
  4. //void GPIOWriteFun(u8 index, u8 value);
  5. u8 GPIOReadFun(u8 index);
  6. void GPIOFun(unsigned char index,int mode,unsigned char value,int INPH_Enable,int INPL_Enable);
  7. int GetCustomerData(char *pcTableName, char **tablestart, unsigned int *tablesize);
  8. void MAIN_DOMAIN_GPIO_INIT(void);
  9. UINT8 GPIOSetValue(UINT8 TabIndex, GPIOState_t State);
  10. UINT8 GPIOSetValueByPinFunc(GPIODriverFunc_t PinFunc, GPIOState_t State);
  11. UINT8 GPIOSetValueByPinNumber(UINT8 PinNum, GPIOState_t State);
  12. void GPIOFunctionSelect(UINT8 index, UINT8 mode);
  13. #if (CONFIG_CHIPID == 0x531)
  14. void GPIO_INIT(void);
  15. #endif
  16. #endif //_gpio_h