30#ifndef HOME_CORE_KERNEL_H
31#define HOME_CORE_KERNEL_H
33#if defined(__cplusplus)
121#define K_STACK_FILL_WORD 0xA5A5A5A5U
146#if defined(__cplusplus)
void k_tick(void)
Advance the uptime clock by one millisecond.
void k_stack_stats(k_stack_stats_t *stats)
Measure the main stack's high-water mark.
void k_uptime_init(void)
Start the 1 kHz system timer and register /dev/uptime.
void k_init(void)
Initialize kernel services and the standard streams.
uint64_t k_uptime_ms(void)
Read the uptime clock.
void k_heap_stats(k_heap_stats_t *stats)
Capture current heap usage.
Heap usage snapshot filled by k_heap_stats().
Definition kernel.h:90
size_t total
Size of the heap region between static RAM and the reserved main stack.
Definition kernel.h:92
size_t unclaimed
Bytes of the heap region not yet claimed by the allocator.
Definition kernel.h:98
size_t reusable
Free bytes the allocator already holds for reuse.
Definition kernel.h:96
size_t allocated
Bytes in allocated blocks, including allocator overhead.
Definition kernel.h:94
Main-stack usage filled by k_stack_stats().
Definition kernel.h:124
size_t size
Size of the main-stack reservation, CONFIG_HOMECORE_KERNEL_MAIN_STACK_SIZE.
Definition kernel.h:126
size_t used
Deepest stack use since reset, including interrupt handlers.
Definition kernel.h:128