CardSight 0.1.0
C API reference for the CardSight firmware and application
Loading...
Searching...
No Matches
kernel.h File Reference

What a driver or the application needs from the kernel: FreeRTOS itself, the small wrappers above it (mutex, semaphore, message queue, delays) and the shared helpers. More...

#include <errno.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include "FreeRTOS.h"
#include "queue.h"
#include "task.h"
#include <bits.h>
#include <log.h>
#include <hal/delay.h>
#include <hal/ktime.h>
#include <hal/mutex.h>
#include <hal/message_queue.h>
#include <hal/semaphore.h>

Go to the source code of this file.

Functions

size_t platform_heap_used (void)
 Bytes the C library's bump allocator has handed out to malloc so far.

Detailed Description

What a driver or the application needs from the kernel: FreeRTOS itself, the small wrappers above it (mutex, semaphore, message queue, delays) and the shared helpers.

Function Documentation

◆ platform_heap_used()

size_t platform_heap_used ( void )

Bytes the C library's bump allocator has handed out to malloc so far.

Returns
The number of bytes returned by sbrk for the C heap.