[FL-2591] Furi: remove CMSIS thread api, migrate to FuriThread, remove unused CMSIS APIs (#1333)
* Furi: remove CMSIS thread api, migrate to FuriThread, remove unused CMSIS APIs * Furi: magic thread catcher validating thread completion; backtrace improver * Furi: allow furi_thread_get_current_id outside of thread context * Furi: use IRQ instead of ISR for core primitives
This commit is contained in:
@@ -6,11 +6,14 @@
|
||||
#include <furi_hal_rtc.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include <FreeRTOS.h>
|
||||
#include <task.h>
|
||||
|
||||
void __furi_print_name() {
|
||||
if(FURI_IS_ISR()) {
|
||||
furi_hal_console_puts("[ISR] ");
|
||||
} else {
|
||||
const char* name = osThreadGetName(osThreadGetId());
|
||||
const char* name = pcTaskGetName(xTaskGetCurrentTaskHandle());
|
||||
if(name == NULL) {
|
||||
furi_hal_console_puts("[main] ");
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user