custom_gpio.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /******************************************************************************
  2. *
  3. * Copyright(c) 2016 - 2017 Realtek Corporation.
  4. *
  5. * This program is free software; you can redistribute it and/or modify it
  6. * under the terms of version 2 of the GNU General Public License as
  7. * published by the Free Software Foundation.
  8. *
  9. * This program is distributed in the hope that it will be useful, but WITHOUT
  10. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  12. * more details.
  13. *
  14. *****************************************************************************/
  15. #ifndef __CUSTOM_GPIO_H__
  16. #define __CUSTOM_GPIO_H___
  17. #include <drv_conf.h>
  18. #include <osdep_service.h>
  19. #ifdef PLATFORM_OS_XP
  20. #include <drv_types_xp.h>
  21. #endif
  22. #ifdef PLATFORM_OS_CE
  23. #include <drv_types_ce.h>
  24. #endif
  25. #ifdef PLATFORM_LINUX
  26. #include <drv_types_linux.h>
  27. #endif
  28. typedef enum cust_gpio_modes {
  29. WLAN_PWDN_ON,
  30. WLAN_PWDN_OFF,
  31. WLAN_POWER_ON,
  32. WLAN_POWER_OFF,
  33. WLAN_BT_PWDN_ON,
  34. WLAN_BT_PWDN_OFF
  35. } cust_gpio_modes_t;
  36. extern int rtw_wifi_gpio_init(void);
  37. extern int rtw_wifi_gpio_deinit(void);
  38. extern void rtw_wifi_gpio_wlan_ctrl(int onoff);
  39. #endif