user_config.h 854 B

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