|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
SD-card font-store bus description + provisioning policy. More...
#include <ra8_sdfont.h>
Data Fields | |
| uint8_t | spi_channel |
| SCI channel in Simple-SPI mode (Pmod2 = SCI0 = 0). | |
| ra8_port_pin_t | sck |
| SPI clock pin. | |
| ra8_port_pin_t | cipo |
| Controller-In / Peripheral-Out pin. | |
| ra8_port_pin_t | copi |
| Controller-Out / Peripheral-In pin. | |
| ra8_port_pin_t | cs |
| Chip-select pin, driven as a GPIO output. | |
| uint32_t | pclka_hz |
| PCLKA rate (Hz) feeding the SCI baud divider. | |
| const char * | filename |
| 8.3 file to load; NULL selects "FONT.OTF". | |
| const uint8_t * | provision_blob |
| Fallback font written if the file is absent; NULL disables provisioning (read-only load). | |
| uint32_t | provision_len |
| Length of provision_blob in bytes. | |
SD-card font-store bus description + provisioning policy.
Describes the SCI Simple-SPI bus the SD card sits on and the fallback font used for self-provisioning. The chip-select pin is driven as a plain GPIO output because SD SPI-mode holds CS asserted across a whole command + data trailer, which the SCI hardware chip-select controller (which pulses per word) cannot do.
Definition at line 92 of file ra8_sdfont.h.
| ra8_port_pin_t ra8_sdfont_cfg_t::cipo |
Controller-In / Peripheral-Out pin.
Definition at line 95 of file ra8_sdfont.h.
Referenced by internal_bringup_spi().
| ra8_port_pin_t ra8_sdfont_cfg_t::copi |
Controller-Out / Peripheral-In pin.
Definition at line 96 of file ra8_sdfont.h.
Referenced by internal_bringup_spi().
| ra8_port_pin_t ra8_sdfont_cfg_t::cs |
Chip-select pin, driven as a GPIO output.
Definition at line 97 of file ra8_sdfont.h.
Referenced by internal_bringup_spi().
| const char* ra8_sdfont_cfg_t::filename |
8.3 file to load; NULL selects "FONT.OTF".
Definition at line 99 of file ra8_sdfont.h.
Referenced by ra8_sdfont_load().
| uint32_t ra8_sdfont_cfg_t::pclka_hz |
PCLKA rate (Hz) feeding the SCI baud divider.
Definition at line 98 of file ra8_sdfont.h.
Referenced by internal_bringup_spi().
| const uint8_t* ra8_sdfont_cfg_t::provision_blob |
Fallback font written if the file is absent; NULL disables provisioning (read-only load).
Definition at line 100 of file ra8_sdfont.h.
Referenced by internal_open_or_provision().
| uint32_t ra8_sdfont_cfg_t::provision_len |
Length of provision_blob in bytes.
Definition at line 102 of file ra8_sdfont.h.
Referenced by internal_open_or_provision().
| ra8_port_pin_t ra8_sdfont_cfg_t::sck |
| uint8_t ra8_sdfont_cfg_t::spi_channel |
SCI channel in Simple-SPI mode (Pmod2 = SCI0 = 0).
Definition at line 93 of file ra8_sdfont.h.
Referenced by internal_bringup_spi().