|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
PSEL codes for peripheral pin routing on the RA8D2. More...
#include <stdint.h>Go to the source code of this file.
Enumerations | |
| enum | ra8_psel_t : uint8_t { k_ra8_psel_gpio = 0x00U , k_ra8_psel_agt = 0x01U , k_ra8_psel_gpt_trig = 0x02U , k_ra8_psel_gpt0 = 0x03U , k_ra8_psel_sci_async = 0x04U , k_ra8_psel_sci_sync = 0x05U , k_ra8_psel_spi = 0x06U , k_ra8_psel_iic = 0x07U , k_ra8_psel_rtc_clkout = 0x09U , k_ra8_psel_cac_adc = 0x0AU , k_ra8_psel_bus = 0x0BU , k_ra8_psel_sci_de = 0x0DU , k_ra8_psel_sci_alt = 0x0EU , k_ra8_psel_ceu = 0x0FU , k_ra8_psel_can = 0x10U , k_ra8_psel_ssie = 0x12U , k_ra8_psel_usb_fs = 0x13U , k_ra8_psel_usb_hs = 0x14U , k_ra8_psel_sdhi = 0x15U , k_ra8_psel_ether_mii = 0x16U , k_ra8_psel_ether_rmii = 0x17U , k_ra8_psel_ether_rgmii = 0x18U , k_ra8_psel_glcdc = 0x19U , k_ra8_psel_pdm = 0x1BU , k_ra8_psel_qspi = 0x1CU , k_ra8_psel_ulpt = 0x1EU , k_ra8_psel_adc_b = 0x00U , k_ra8_psel_dac = 0x00U } |
| Peripheral-function select codes (written to PSEL[4:0]). More... | |
PSEL codes for peripheral pin routing on the RA8D2.
Supplements ra8_port_constants.h with peripheral-function codes that go into the PmnPFS.PSEL[28:24] field when you want a pin to act as a peripheral input/output instead of a plain GPIO.
The codes come from RA8D2 Hardware User's Manual section 20.4 ("Peripheral I/O Table") – only the common ones are listed here; extend as drivers need more.
Usage:
Definition in file ra8_gpio_constants.h.
| enum ra8_psel_t : uint8_t |
Peripheral-function select codes (written to PSEL[4:0]).
The PSEL field is 5 bits wide. Values below are taken from HUM Ch 20 "I/O Ports" section 20.6 "Peripheral Select Settings for Each Product" (R01UH1065EJ0130, p 855-870). Each entry is the binary code that appears in the per-port PSEL[4:0] tables (Table 20.7..Table 20.21).
When a driver needs a code not listed here, add it and cite the HUM section number in the doc comment.
Definition at line 51 of file ra8_gpio_constants.h.