removed cmsis lib and references
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
idf_component_register(
|
||||
SRC_DIRS "src"
|
||||
INCLUDE_DIRS "src"
|
||||
REQUIRES mlib cmsis_core mbedtls esp_hw_support nvs_flash
|
||||
REQUIRES mlib mbedtls esp_hw_support nvs_flash
|
||||
)
|
||||
|
||||
@@ -19,14 +19,10 @@ static void tt_print_memory_info() {
|
||||
}
|
||||
|
||||
static void tt_print_task_info() {
|
||||
if (TT_IS_IRQ_MODE()) {
|
||||
TT_LOG_E(TAG, "Task: ISR %lu", __get_IPSR());
|
||||
} else {
|
||||
const char* name = pcTaskGetName(NULL);
|
||||
const char* safe_name = name ? name : "main";
|
||||
TT_LOG_E(TAG, "Task: %s", safe_name);
|
||||
TT_LOG_E(TAG, "Stack watermark: %u", uxTaskGetStackHighWaterMark(NULL) * 4);
|
||||
}
|
||||
const char* name = pcTaskGetName(NULL);
|
||||
const char* safe_name = name ? name : "main";
|
||||
TT_LOG_E(TAG, "Task: %s", safe_name);
|
||||
TT_LOG_E(TAG, "Stack watermark: %u", uxTaskGetStackHighWaterMark(NULL) * 4);
|
||||
}
|
||||
|
||||
TT_NORETURN void tt_crash_implementation() {
|
||||
|
||||
@@ -8,34 +8,20 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <cmsis_compiler.h>
|
||||
|
||||
#define TT_RETURNS_NONNULL __attribute__((returns_nonnull))
|
||||
|
||||
#ifndef TT_WARN_UNUSED
|
||||
#define TT_WARN_UNUSED __attribute__((warn_unused_result))
|
||||
#endif
|
||||
|
||||
#ifndef TT_WEAK
|
||||
#define TT_WEAK __attribute__((weak))
|
||||
#endif
|
||||
|
||||
#ifndef TT_PACKED
|
||||
#define TT_PACKED __attribute__((packed))
|
||||
#endif
|
||||
|
||||
// Used by portENABLE_INTERRUPTS and portDISABLE_INTERRUPTS?
|
||||
#ifndef TT_IS_IRQ_MODE
|
||||
#define TT_IS_IRQ_MODE() (xPortInIsrContext() == pdTRUE)
|
||||
#endif
|
||||
|
||||
#ifndef TT_IS_ISR
|
||||
#define TT_IS_ISR() (TT_IS_IRQ_MODE())
|
||||
#endif
|
||||
|
||||
#ifndef TT_CHECK_RETURN
|
||||
#define TT_CHECK_RETURN __attribute__((__warn_unused_result__))
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ __TtCriticalInfo __tt_critical_enter(void) {
|
||||
} else if (info.kernel_running) {
|
||||
taskENTER_CRITICAL(&critical_mutex);
|
||||
} else {
|
||||
__disable_irq();
|
||||
portDISABLE_INTERRUPTS();
|
||||
}
|
||||
|
||||
return info;
|
||||
@@ -30,6 +30,6 @@ void __tt_critical_exit(__TtCriticalInfo info) {
|
||||
} else if (info.kernel_running) {
|
||||
taskEXIT_CRITICAL(&critical_mutex);
|
||||
} else {
|
||||
__enable_irq();
|
||||
portENABLE_INTERRUPTS();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user