libmetal  353
sys.h File Reference

Zephyr system primitives for libmetal. More...

#include <metal/cpu.h>
#include <stdlib.h>
#include <zephyr/kernel.h>
#include "log.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_cpu_yield()
 
#define METAL_INIT_DEFAULTS
 
#define METAL_MAX_DEVICE_REGIONS   1
 

Functions

static void metal_wait_usec (uint32_t usec_to_wait)
 

Detailed Description

Zephyr system primitives for libmetal.

Macro Definition Documentation

◆ METAL_INIT_DEFAULTS

#define METAL_INIT_DEFAULTS
Value:
{ \
.log_handler = metal_zephyr_log_handler, \
.log_level = METAL_LOG_INFO, \
}
@ METAL_LOG_INFO
informational messages.
Definition: log.h:31
void metal_zephyr_log_handler(enum metal_log_level level, const char *format,...)
Definition: log.c:27

◆ METAL_MAX_DEVICE_REGIONS

#define METAL_MAX_DEVICE_REGIONS   1

◆ metal_yield

#define metal_yield ( )    metal_cpu_yield()

Function Documentation

◆ metal_wait_usec()

static void metal_wait_usec ( uint32_t  usec_to_wait)
inlinestatic