You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 regels
1017 B

  1. #pragma once
  2. #include <Arduino.h>
  3. #include "Config.h"
  4. #include "Log.h"
  5. #include "Core.h"
  6. #include "Hardware.h"
  7. #include "Gps.h"
  8. #include "Rtc.h"
  9. #define DEBUG_SERIAL_SPEED 115200
  10. namespace debug {
  11. enum class GPSTRACKER_DEBUG_COMMAND : uint8_t {
  12. NONE,
  13. RUN,
  14. ONCE,
  15. RAM,
  16. BATTERY,
  17. GPS_ON,
  18. GPS_OFF,
  19. GPS_GET,
  20. GPS_SET,
  21. RTC_GET,
  22. RTC_SET,
  23. SD_WRITE_TEST,
  24. EEPROM_GET_CONFIG,
  25. EEPROM_RESET_CONFIG,
  26. EEPROM_GET_CONTENT,
  27. EEPROM_GET_LAST_ENTRY,
  28. EEPROM_GET_ENTRIES,
  29. EEPROM_ADD_ENTRY,
  30. EEPROM_BACKUP_ENTRIES,
  31. SLEEP,
  32. SLEEP_DEEP
  33. };
  34. int freeRam();
  35. void displayFreeRam();
  36. GPSTRACKER_DEBUG_COMMAND menu(uint16_t timeout);
  37. void getAndDisplayBattery();
  38. void getAndDisplayGpsPosition();
  39. void setFakeGpsPosition();
  40. void getAndDisplayRtcTime();
  41. void setRtcTime();
  42. void getAndDisplaySleepTimes();
  43. void getAndDisplayEepromConfig();
  44. void getAndDisplayEepromContent();
  45. void getAndDisplayEepromPositions();
  46. void getAndDisplayEepromLastPosition();
  47. void addLastPositionToEeprom();
  48. }