44#define assert(expr) RA8_ASSERT(expr, "esp-hosted assertion")
69#include "esp_hosted_os_abstraction.h"
193#define RET_INVALID (-2)
208#define RET_FAIL_TIMEOUT (-3)
227#define HOSTED_BLOCKING (1)
246#define HOSTED_BLOCK_MAX (0xFFFFFFFF)
263#define SEC_TO_MILLISEC(x) ((x) * (1000))
285#define HOSTED_MEM_ALIGNMENT_64 (64)
304#define HOSTED_UNLIKELY(x) (__builtin_expect(!!(x), 0))
320#define HOSTED_LIKELY(x) (__builtin_expect(!!(x), 1))
374 void* result =
nullptr;
375 if (
g_h.funcs !=
nullptr) {
380 result =
g_h.funcs->_h_malloc(size);
401#define HOSTED_FREE(buff) \
404 g_h.funcs->_h_free(buff); \
454#define MEM_DUMP(s) ra8_esp_hosted_mem_dump(s)
479#define DFLT_TASK_PRIO (12)
497#define DFLT_TASK_STACK_SIZE (4096)
513#define RPC_TASK_PRIO (14)
528#define RPC_TASK_STACK_SIZE (5120)
546#define H_TIMER_TYPE_ONESHOT (1)
560#define H_TIMER_TYPE_PERIODIC (2)
578#define H_GPIO_MODE_DEF_INPUT (0)
594#define H_GPIO_MODE_DEF_OUTPUT (1)
608#define H_GPIO_PULL_UP (0)
625#define H_GPIO_PULL_DOWN (1)
647#define MAX_PAYLOAD_SIZE (MAX_TRANSPORT_BUFFER_SIZE - H_ESP_PAYLOAD_HEADER_OFFSET)
703#define H_WEAK_REF [[gnu::weak]]
ESP-IDF capability-flag compatibility for the esp-hosted port.
@ MALLOC_CAP_DMA
Reachable by a DMA engine.
void * queue_handle_t
Opaque handle to a port-owned message queue.
void * thread_handle_t
Opaque handle to a port-owned thread.
void * semaphore_handle_t
Opaque handle to a port-owned counting semaphore.
void * mutex_handle_t
Opaque handle to a port-owned mutex.
void * spinlock_handle_t
Opaque handle to a port-owned mempool lock.
static void * heap_caps_malloc(size_t size, uint32_t caps)
ESP-IDF capability-aware allocation, served from the port pool.
#define HOSTED_MEM_ALIGNMENT_64
Alignment, in bytes, demanded of transport buffers.
uint8_t gpio_pin_state_t
Logic level read back from, or driven onto, a side-band pin.
Validation and Error-Checking Macros for ra8-firmware.
struct hosted_config_t g_h
The handle the vendored core dereferences to reach the vtable.
Public entry point of the RA8D2 + ThreadX port of esp-hosted.