furi-hal-console.h 446 B

1234567891011121314151617181920212223242526
  1. #pragma once
  2. #include <stddef.h>
  3. #include <stdint.h>
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. void furi_hal_console_init();
  8. void furi_hal_console_tx(const uint8_t* buffer, size_t buffer_size);
  9. /**
  10. * Printf-like plain uart interface
  11. * @warning Will not work in ISR context
  12. * @param format
  13. * @param ...
  14. */
  15. void furi_hal_console_printf(const char format[], ...);
  16. void furi_hal_console_puts(const char* data);
  17. #ifdef __cplusplus
  18. }
  19. #endif