programmer.h 498 B

12345678910111213141516171819202122
  1. #pragma once
  2. #define PIN_TDI 33
  3. #define PIN_TDO 32
  4. #define PIN_TCK 27
  5. #define PIN_TMS 26
  6. #define CMD_DATA 'd'
  7. #define CMD_SET_HOSTNAME 'h'
  8. #define CMD_START_SVF 'i'
  9. #define CMD_SET_WIFI_PASS 'l'
  10. #define CMD_SET_OTA_PASS 'o'
  11. #define CMD_PASSTHROUGH 'p'
  12. #define CMD_QUERY 'q'
  13. #define CMD_REBOOT 'r'
  14. #define CMD_STOP 's'
  15. #define CMD_SET_WIFI_SSID 'u'
  16. #define CMD_START_XSVF 'x'
  17. #define CMD_GET_STATE 'g'
  18. void ProgrammerLoop();
  19. void ProgrammerInit();