user_interface.h 877 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef SDK_OVERRIDES_INCLUDE_USER_INTERFACE_H_
  2. #define SDK_OVERRIDES_INCLUDE_USER_INTERFACE_H_
  3. #include <espressif/esp_system.h>
  4. /* The SDKs claim ets_delay_us only takes a uint16_t, not a uint32_t. Until
  5. * we have cleaned up our act and stopped using excessive hard-delays, we
  6. * need our own prototype for it.
  7. *
  8. * Also, our ets_printf() prototype is better.
  9. */
  10. #define ets_delay_us ets_delay_us_sdk
  11. #define ets_printf ets_print_sdk
  12. #include <espressif/esp_misc.h>
  13. #undef ets_printf
  14. #undef ets_delay_us
  15. #include "rom.h"
  16. #include <espressif/esp_wifi.h>
  17. #include <espressif/esp_sta.h>
  18. #include <espressif/esp_softap.h>
  19. #include <espressif/esp_timer.h>
  20. static inline void system_set_os_print(uint8_t onoff) {
  21. extern uint8_t os_printf_enabled;
  22. os_printf_enabled = onoff;
  23. }
  24. bool wifi_softap_deauth(uint8 mac[6]);
  25. #endif /* SDK_OVERRIDES_INCLUDE_USER_INTERFACE_H_ */