DMCP interface  03.15_020
OS and memory

OS and memory functions. More...

Functions

void sys_critical_start ()
 Enter critical section.
 
void sys_critical_end ()
 Leave critical section.
 
void sys_sleep ()
 Suspend program until next event.
 
int sys_free_mem ()
 Query free memory for malloc. More...
 
uint8_t get_hw_id ()
 Query hardware id. More...
 

Detailed Description

OS and memory functions.

OS exposes heap memory allocations through standard malloc()/free() functions.

Function Documentation

◆ get_hw_id()

uint8_t get_hw_id ( )

Query hardware id.

Returns
Returns hardware version id of current PCB

Useful for diagnostic purposes only.

◆ sys_free_mem()

int sys_free_mem ( )

Query free memory for malloc.

Returns
Remaining free memory in bytes