user_config.h 829 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #ifndef __USER_CONFIG_H__
  2. #define __USER_CONFIG_H__
  3. #ifdef __cplusplus
  4. extern "C"
  5. {
  6. #endif
  7. // UART config
  8. #define SERIAL_BAUD_RATE 115200
  9. // ESP SDK config
  10. #define LWIP_OPEN_SRC
  11. #define USE_US_TIMER
  12. // Default types
  13. #define __CORRECT_ISO_CPP_STDLIB_H_PROTO
  14. #include <limits.h>
  15. #include <stdint.h>
  16. // Override c_types.h include and remove buggy espconn
  17. #define _C_TYPES_H_
  18. #define _NO_ESPCON_
  19. // Updated, compatible version of c_types.h
  20. // Just removed types declared in <stdint.h>
  21. #include <espinc/c_types_compatible.h>
  22. // System API declarations
  23. #include <esp_systemapi.h>
  24. // C++ Support
  25. #include <esp_cplusplus.h>
  26. // Extended string conversion for compatibility
  27. #include <stringconversion.h>
  28. // Network base API
  29. #include <espinc/lwip_includes.h>
  30. // Beta boards
  31. #define BOARD_ESP01
  32. #ifdef __cplusplus
  33. }
  34. #endif
  35. #endif