custom_gpio.h 560 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef __CUSTOM_GPIO_H__
  2. #define __CUSTOM_GPIO_H___
  3. #include <drv_conf.h>
  4. #include <osdep_service.h>
  5. #ifdef PLATFORM_OS_XP
  6. #include <drv_types_xp.h>
  7. #endif
  8. #ifdef PLATFORM_OS_CE
  9. #include <drv_types_ce.h>
  10. #endif
  11. #ifdef PLATFORM_LINUX
  12. #include <drv_types_linux.h>
  13. #endif
  14. typedef enum cust_gpio_modes {
  15. WLAN_PWDN_ON,
  16. WLAN_PWDN_OFF,
  17. WLAN_POWER_ON,
  18. WLAN_POWER_OFF,
  19. WLAN_BT_PWDN_ON,
  20. WLAN_BT_PWDN_OFF
  21. } cust_gpio_modes_t;
  22. extern int rtw_wifi_gpio_init(void);
  23. extern int rtw_wifi_gpio_deinit(void);
  24. extern void rtw_wifi_gpio_wlan_ctrl(int onoff);
  25. #endif