TB2026-YDS Firmware
Toggle main menu visibility
Loading...
Searching...
No Matches
diag.h
Go to the documentation of this file.
1
25
#pragma once
26
27
#include <stdint.h>
28
35
37
#define DIAG_ENABLED 0
38
40
#define DIAG_ALERT_PCT 75
41
43
#define DIAG_DUMP_MS 10000
44
45
#if DIAG_ENABLED
46
56
void
diag_register_task(uint32_t stack_bytes);
57
65
void
diag_task_exit(
void
);
66
75
void
diag_tick(uint32_t elapsed_ms);
76
81
void
diag_dump_tasks(
void
);
82
83
#else
/* !DIAG_ENABLED — the module compiles away */
84
85
static
inline
void
diag_register_task(uint32_t stack_bytes) { (void)stack_bytes; }
86
static
inline
void
diag_task_exit(
void
) {}
87
static
inline
void
diag_tick(uint32_t elapsed_ms) { (void)elapsed_ms; }
88
static
inline
void
diag_dump_tasks(
void
) {}
89
90
#endif
/* DIAG_ENABLED */
91
components
services
diag
diag.h
Generated by
1.17.0