CardSight 0.1.0
C API reference for the CardSight firmware and application
Loading...
Searching...
No Matches
kernel.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: GPL-2.0-or-later */
7
8#ifndef CARDSIGHT_KERNEL_H
9#define CARDSIGHT_KERNEL_H
10
11#include <errno.h>
12#include <stdbool.h>
13#include <stddef.h>
14#include <stdint.h>
15#include <stdlib.h>
16#include <string.h>
17
18#include "FreeRTOS.h"
19#include "queue.h"
20#include "task.h"
21
22#include <bits.h>
23#include <log.h>
24#include <hal/delay.h>
25#include <hal/ktime.h>
26#include <hal/mutex.h>
27#include <hal/message_queue.h>
28#include <hal/semaphore.h>
29
35size_t platform_heap_used(void);
36
37#endif /* CARDSIGHT_KERNEL_H */
Small helpers shared by the whole tree: array sizes, value bounds, and address arithmetic.
Delays and the wall clock: the kernel tick counts milliseconds from the boot.
size_t platform_heap_used(void)
Bytes the C library's bump allocator has handed out to malloc so far.
A finer clock for timings: microseconds, from the same tick.
Kernel log messages: printf-style output at a level, prefixed with the module that prints.
Message queues: fixed-size items between tasks.
Mutexes.
Counting semaphores.