flipperzero-firmware/firmware/targets/f7/furi_hal/furi_hal_console.h
あく 9b9edf2fbf
[FL-2460] Rpc: debug request logging and cli log command (#1114)
* Rpc: debug request logging
* Furi, Cli: replace global thread callback with local ring buffers, fix log command
2022-04-14 19:41:15 +03:00

37 lines
781 B
C

#pragma once
#include <stddef.h>
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef void (*FuriHalConsoleTxCallback)(const uint8_t* buffer, size_t size, void* context);
void furi_hal_console_init();
void furi_hal_console_enable();
void furi_hal_console_disable();
void furi_hal_console_set_tx_callback(FuriHalConsoleTxCallback callback, void* context);
void furi_hal_console_tx(const uint8_t* buffer, size_t buffer_size);
void furi_hal_console_tx_with_new_line(const uint8_t* buffer, size_t buffer_size);
/**
* 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