|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
esp-hosted port header: full-duplex SPI transport buffer size. More...
#include <stdint.h>#include "esp_hosted_transport.h"Go to the source code of this file.
Macros | |
| #define | MAX_TRANSPORT_BUFFER_SIZE (ESP_TRANSPORT_SPI_MAX_BUF_SIZE) |
| Bytes clocked in one full-duplex SPI transaction. | |
esp-hosted port header: full-duplex SPI transport buffer size.
The vendored esp-hosted core includes this header BY NAME from host/drivers/transport/transport_drv.h whenever H_TRANSPORT_IN_USE == H_TRANSPORT_SPI. Upstream ships it under host/port/, which this project excludes (see docs/SOUP/esp-hosted-host.md); this file is its first-party replacement and must therefore keep the upstream file name and the upstream macro spelling exactly.
It supplies exactly one symbol, MAX_TRANSPORT_BUFFER_SIZE – the number of bytes clocked in a single full-duplex transaction. Both ends of the link must agree on it or every frame mis-decodes:
Deriving it from the vendored constant rather than restating 1600 keeps those three in lockstep: a future upstream bump changes one place.
Definition in file port_esp_hosted_host_spi.h.
| #define MAX_TRANSPORT_BUFFER_SIZE (ESP_TRANSPORT_SPI_MAX_BUF_SIZE) |
Bytes clocked in one full-duplex SPI transaction.
Derived from the vendored ESP_TRANSPORT_SPI_MAX_BUF_SIZE (1600) so host and co-processor cannot drift apart. Every transmit and receive buffer the SPI driver allocates is exactly this large, regardless of how few payload bytes a frame actually carries.
Definition at line 63 of file port_esp_hosted_host_spi.h.