Skip to content
Commit 67caae3a authored by Johann Fischer's avatar Johann Fischer Committed by Fabio Baltieri
Browse files

usb: device_next: introduce UDC_BUF_POOL_*_DEFINE macros



Introduce UDC_BUF_POOL_*_DEFINE macros based on NET_BUF_POOL_*_DEFINE
macros but use our own version of alloc and unref callbacks to get
buffers with specific alignment and granularity. Also, do not use ref
callback because it breaks alignment.
Also introduces helper macros for defining and checking UDC
driver-compliant static buffers.

Signed-off-by: default avatarJohann Fischer <johann.fischer@nordicsemi.no>
parent bfc0cdc9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment