oveRTOS C API
Embedded RTOS framework — build system, configuration, and portable C API
Loading...
Searching...
No Matches
Macros
storage.h File Reference
#include "ove/types.h"
#include "ove_config.h"
#include <stdint.h>
#include <assert.h>
Include dependency graph for storage.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define OVE_HEAP_SYNC   1
 
#define OVE_HEAP_THREAD   1
 
#define OVE_HEAP_QUEUE   1
 
#define OVE_HEAP_TIMER   1
 
#define OVE_HEAP_EVENTGROUP   1
 
#define OVE_HEAP_WORKQUEUE   1
 
#define OVE_HEAP_STREAM   1
 
#define OVE_HEAP_WATCHDOG   1
 
#define OVE_HEAP_FS   1
 
#define OVE_HEAP_AUDIO   1
 
#define OVE_HEAP_INFER   1
 
#define OVE_HEAP_NET   1
 
#define OVE_HEAP_NET_TLS   1
 
#define OVE_HEAP_NET_HTTP   1
 
#define OVE_HEAP_NET_MQTT   1
 
#define OVE_HEAP_UART   1
 
#define OVE_HEAP_SPI   1
 
#define OVE_HEAP_I2C   1
 
#define OVE_HEAP_I2S   1
 
#define OVE_STATIC_INIT_ASSERT(cond)   assert(cond)
 Assertion macro used by static constructor macros on init failure.
 
#define OVE_MUTEX_DEFINE(name)   static ove_mutex_storage_t name
 Declare a static mutex storage variable named name.
 
#define OVE_SEM_DEFINE(name)   static ove_sem_storage_t name
 Declare a static semaphore storage variable named name.
 
#define OVE_EVENT_DEFINE(name)   static ove_event_storage_t name
 Declare a static event storage variable named name.
 
#define OVE_CONDVAR_DEFINE(name)   static ove_condvar_storage_t name
 Declare a static condition variable storage variable named name.
 
#define OVE_THREAD_STACK_DEFINE_(name, size)   static uint8_t __attribute__((aligned(8))) name[(size)]
 Declare a static thread stack array named name with size size.
 
#define OVE_THREAD_STACK_DEFINE_STATIC_(name, size)    static uint8_t __attribute__((aligned(8))) name[(size)]
 
#define OVE_THREAD_STACK_MEMBER_(name, size)   uint8_t __attribute__((aligned(8))) name[size]
 Declare a non-static (class-member) thread stack array.
 
#define OVE_THREAD_DEFINE(name, stack_size_bytes)
 Declare a static thread storage variable and its stack.
 
#define OVE_QUEUE_DEFINE(name, item_sz, max)
 Declare a static queue storage variable and its backing buffer.
 
#define OVE_TIMER_DEFINE(name)   static ove_timer_storage_t name
 Declare a static timer storage variable named name.
 
#define OVE_EVENTGROUP_DEFINE(name)   static ove_eventgroup_storage_t name
 Declare a static event group storage variable named name.
 
#define OVE_WORKQUEUE_DEFINE(name, stack_size_bytes)
 Declare a static work queue storage variable and its stack.
 
#define OVE_STREAM_DEFINE(name, buf_size)
 Declare a static stream buffer storage variable and its backing buffer.
 
#define OVE_WATCHDOG_DEFINE(name)   static ove_watchdog_storage_t name
 Declare a static watchdog storage variable named name.
 
#define OVE_MODEL_DEFINE(name)   static ove_model_storage_t name
 Declare a static model storage variable named name.
 
#define OVE_MODEL_ARENA_DEFINE(name, size)   static uint8_t __attribute__((aligned(16))) name[(size)]
 Declare a 16-byte-aligned static tensor arena of size bytes.
 
#define OVE_UART_DEFINE(name, rx_buf_size)
 Declare a static UART storage variable and its RX buffer.
 
#define OVE_SPI_DEFINE(name)   static ove_spi_storage_t name
 Declare a static SPI storage variable named name.
 
#define OVE_I2C_DEFINE(name)   static ove_i2c_storage_t name
 Declare a static I2C storage variable named name.
 
#define OVE_I2S_DEFINE(name)   static ove_i2s_storage_t name
 Declare a static I2S storage variable named name.
 
#define OVE_MUTEX_DEFINE_STATIC(name)
 Declare and auto-initialise a static mutex.
 
#define OVE_RECURSIVE_MUTEX_DEFINE_STATIC(name)
 Declare and auto-initialise a static recursive mutex.
 
#define OVE_SEM_DEFINE_STATIC(name, initial, max)
 Declare and auto-initialise a static semaphore.
 
#define OVE_EVENT_DEFINE_STATIC(name)
 Declare and auto-initialise a static event object.
 
#define OVE_CONDVAR_DEFINE_STATIC(name)
 Declare and auto-initialise a static condition variable.
 
#define OVE_THREAD_DEFINE_STATIC(hname, stack_sz, fn, ctx, prio, tname)
 Declare and auto-initialise a static thread.
 
#define OVE_QUEUE_DEFINE_STATIC(name, item_sz, max)
 Declare and auto-initialise a static message queue.
 
#define OVE_TIMER_DEFINE_STATIC(name, cb, user_data, period_ms, one_shot)
 Declare and auto-initialise a static timer.
 
#define OVE_EVENTGROUP_DEFINE_STATIC(name)
 Declare and auto-initialise a static event group.
 
#define OVE_WORKQUEUE_DEFINE_STATIC(name, stack_sz, wq_name, prio)
 Declare and auto-initialise a static work queue.
 
#define OVE_WORK_DEFINE_STATIC(name, handler)
 Declare and auto-initialise a static work item.
 
#define OVE_STREAM_DEFINE_STATIC(name, buf_sz, trigger)
 Declare and auto-initialise a static stream buffer.
 
#define OVE_WATCHDOG_DEFINE_STATIC(name, timeout_ms)
 Declare and auto-initialise a static watchdog timer.
 
#define OVE_MODEL_DEFINE_STATIC(name, model_ptr, model_sz, arena_sz)
 Declare and auto-initialise a static ML model.
 
#define OVE_I2C_DEFINE_STATIC(name, inst, spd)
 Declare and auto-initialise a static I2C bus.
 
#define OVE_SPI_DEFINE_STATIC(name, cfg_ptr)
 Declare and auto-initialise a static SPI bus.
 
#define OVE_UART_DEFINE_STATIC(name, rx_buf_sz, cfg_ptr)
 Declare and auto-initialise a static UART.
 
#define OVE_I2S_DEFINE_STATIC(name, tx_dma_bytes, rx_dma_bytes, cfg_ptr)
 Declare and auto-initialise a static I2S bus with caller-supplied DMA buffers.
 
#define OVE_NETIF_DEFINE_STATIC(name)
 Declare and auto-initialise a static network interface.
 
#define OVE_SOCKET_DEFINE(name)   static ove_socket_storage_t name
 Declare a static socket storage variable named name.
 
#define OVE_TLS_DEFINE_STATIC(name)
 Declare and auto-initialise a static TLS session.
 
#define OVE_HTTP_CLIENT_DEFINE_STATIC(name)
 Declare and auto-initialise a static HTTP client.
 
#define OVE_MQTT_CLIENT_DEFINE_STATIC(name)
 Declare and auto-initialise a static MQTT client.