2021-09-10 02:19:02 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
void furi_hal_console_init();
|
|
|
|
|
2021-10-26 18:41:56 +00:00
|
|
|
void furi_hal_console_enable();
|
|
|
|
|
|
|
|
void furi_hal_console_disable();
|
|
|
|
|
2021-09-10 02:19:02 +00:00
|
|
|
void furi_hal_console_tx(const uint8_t* buffer, size_t buffer_size);
|
|
|
|
|
2021-09-21 09:48:08 +00:00
|
|
|
void furi_hal_console_tx_with_new_line(const uint8_t* buffer, size_t buffer_size);
|
|
|
|
|
2021-09-10 02:19:02 +00:00
|
|
|
/**
|
|
|
|
* Printf-like plain uart interface
|
|
|
|
* @warning Will not work in ISR context
|
|
|
|
* @param format
|
|
|
|
* @param ...
|
|
|
|
*/
|
|
|
|
void furi_hal_console_printf(const char format[], ...);
|
|
|
|
|
|
|
|
void furi_hal_console_puts(const char* data);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|