libmetal  353
sys.h File Reference

NuttX system primitives for libmetal. More...

#include <metal/sleep.h>
#include <syslog.h>

Go to the source code of this file.

Data Structures

struct  metal_state
 Structure for FreeRTOS libmetal runtime state. More...
 

Macros

#define metal_yield()   metal_sleep_usec(1000)
 
#define METAL_INIT_DEFAULTS
 

Detailed Description

NuttX system primitives for libmetal.

Macro Definition Documentation

◆ METAL_INIT_DEFAULTS

#define METAL_INIT_DEFAULTS
Value:
{ \
.log_handler = (metal_log_handler)syslog, \
.log_level = METAL_LOG_INFO, \
}
void(* metal_log_handler)(enum metal_log_level level, const char *format,...)
Log message handler type.
Definition: log.h:36
@ METAL_LOG_INFO
informational messages.
Definition: log.h:31

◆ metal_yield

#define metal_yield ( )    metal_sleep_usec(1000)