Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/flipperzero-firmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/targets/f7/furi_hal/furi_hal_console.h')
-rw-r--r--firmware/targets/f7/furi_hal/furi_hal_console.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/firmware/targets/f7/furi_hal/furi_hal_console.h b/firmware/targets/f7/furi_hal/furi_hal_console.h
new file mode 100644
index 00000000..637c17f6
--- /dev/null
+++ b/firmware/targets/f7/furi_hal/furi_hal_console.h
@@ -0,0 +1,32 @@
+#pragma once
+
+#include <stddef.h>
+#include <stdint.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void furi_hal_console_init();
+
+void furi_hal_console_enable();
+
+void furi_hal_console_disable();
+
+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