ra8-firmware
0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_ethosu_shim.h
Go to the documentation of this file.
1
52
53
#pragma once
54
55
#include <stddef.h>
56
#include <stdint.h>
57
58
#include "
ra8_device.h
"
59
60
/* RA8P1-only. On a device without an NPU this header declares nothing (its
61
* matching ra8_ethosu_shim.c is an empty translation unit), so it stays safe to
62
* include anywhere: using an ethosu_* symbol on the RA8D2 is then a link error,
63
* not a compile-time #error that would trip whole-tree tooling (clang-tidy). */
64
#ifdef RA8_HAS_NPU
65
66
#ifdef __cplusplus
67
extern
"C"
{
68
#endif
69
89
struct
ethosu_driver;
90
118
struct
ethosu_driver* ethosu_reserve_driver(
void
);
119
160
int
ethosu_invoke_v3(
struct
ethosu_driver* drv,
161
const
void
* custom_data_ptr,
162
int
custom_data_size,
163
const
uint64_t* base_addr,
164
const
size_t
* base_addr_size,
165
int
num_base_addr,
166
void
* user_arg);
167
192
void
ethosu_release_driver(
struct
ethosu_driver* drv);
193
194
#ifdef __cplusplus
195
}
196
#endif
197
198
#endif
/* RA8_HAS_NPU */
ra8_device.h
Compile-time device selection for the RA8 multi-chip build (RA8D2 / RA8P1).
libs
ra8_hal
inc
ra8_ethosu_shim.h
Generated by
1.16.1