program.h 507 B

12345678910111213141516171819
  1. #pragma once
  2. #include <stdint.h>
  3. #include <ESPAsyncWebServer.h>
  4. #define BUFFER_SIZE 128
  5. #define DATA_TYPE_SVF 0
  6. #define DATA_TYPE_XSVF 1
  7. #define MODE_SERIAL 1
  8. #define MODE_WIFI 0
  9. // External function to fetch next block to play
  10. extern int fetch_next_block(uint8_t *buffer, int length);
  11. extern int fetch_next_block_wifi(uint8_t *buffer, int length);
  12. int jtag_program(int dataType, uint8_t mode);
  13. void set_pins(uint8_t tdi, uint8_t tdo, uint8_t tck, uint8_t tms, uint8_t led);
  14. uint32_t jtag_chip_id();