The esp8266 portion of the project
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.

41 lines
911 B

  1. #ifndef GDBSTUB_H
  2. #define GDBSTUB_H
  3. #include <stdbool.h>
  4. #include <stdint.h>
  5. #include <stddef.h>
  6. #include <gdb_hooks.h>
  7. #include "internal/gdbstub-cfg.h"
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. void gdbstub_init();
  12. //Indicates whether gdbstub will attach to these or not
  13. //Useful for other uart libs to avoid conflicts
  14. bool gdbstub_has_putc1_control();
  15. bool gdbstub_has_uart_isr_control();
  16. #if GDBSTUB_REDIRECT_CONSOLE_OUTPUT
  17. void gdbstub_set_putc1_callback(void (*callback)(char));
  18. #endif
  19. void gdbstub_write_char(char c);
  20. void gdbstub_write(const char* buf, size_t size);
  21. #if GDBSTUB_CTRLC_BREAK && !GDBSTUB_FREERTOS
  22. void gdbstub_set_uart_isr_callback(void (*callback)(void*, uint8_t), void* arg);
  23. //Override points for enabling tx and rx pins for uart0
  24. void gdbstub_hook_enable_tx_pin_uart0(uint8_t pin);
  25. void gdbstub_hook_enable_rx_pin_uart0(uint8_t pin);
  26. #endif
  27. #ifdef __cplusplus
  28. }
  29. #endif
  30. #endif