mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-04 19:47:36 +03:00
917410a0a8
* fbt: reworking targets & assets handling WIP * fbt: dist fixes * fbt: moved SD card resources to owning apps * unit_tests: moved resources to app folder * github: updated unit_tests paths * github: packaging fixes * unit_tests: fixes * fbt: assets: internal cleanup * fbt: reworked assets handling * github: unit_tests: reintroducing fixes * minor cleanup * fbt: naming changes to reflect private nature of scons tools * fbt: resources: fixed dist archive paths * docs: updated paths * docs: updated more paths * docs: included "resources" parameter in app manifest docs; updated assets readme * updated gitignore for assets * github: updated action versions * unit_tests: restored timeout; scripts: assets: logging changes * gh: don't upload desktop animations for unit test run Co-authored-by: あく <alleteam@gmail.com>
38 lines
843 B
C
38 lines
843 B
C
#pragma once
|
|
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
#include <stdio.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[], ...) _ATTRIBUTE((__format__(__printf__, 1, 2)));
|
|
|
|
void furi_hal_console_puts(const char* data);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|