|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
Named Time Unit Constants for Delay / Timeout / Tick Math. More...
#include <stdint.h>Go to the source code of this file.
Enumerations | |
| enum | ra8_time_unit_t : uint32_t { k_ra8_ns_per_us = 1000UL , k_ra8_us_per_ms = 1000UL , k_ra8_ms_per_sec = 1000UL , k_ra8_ns_per_ms = 1000000UL , k_ra8_us_per_sec = 1000000UL , k_ra8_ns_per_sec = 1000000000UL , k_ra8_sec_per_min = 60UL , k_ra8_min_per_hour = 60UL , k_ra8_hour_per_day = 24UL , k_ra8_sec_per_hour = 3600UL , k_ra8_sec_per_day = 86400UL } |
| Integer conversion factors between common time units. More... | |
| enum | ra8_clock_hz_t : uint32_t { k_ra8_xtal_hz = 24000000UL , k_ra8_loco_hz = 32768UL , k_ra8_moco_hz = 8000000UL , k_ra8_hoco_hz = 20000000UL , k_ra8_pll1p_hz = 1000000000UL , k_ra8_pll1q_hz = 333333333UL , k_ra8_pll1r_hz = 400000000UL , k_ra8_cpuclk0_hz = 1000000000UL , k_ra8_cpuclk1_hz = 250000000UL , k_ra8_iclk_hz = 250000000UL , k_ra8_pclka_hz = 125000000UL , k_ra8_pclkb_hz = 62500000UL , k_ra8_pclkc_hz = 125000000UL , k_ra8_pclkd_hz = 250000000UL , k_ra8_pclke_hz = 250000000UL , k_ra8_bclk_hz = 125000000UL , k_ra8_fclk_hz = 125000000UL , k_ra8_mriclk_hz = 250000000UL , k_ra8_iclk_max_hz = 250000000UL } |
| Expected clock frequencies after PLL bring-up. More... | |
| enum | ra8_timeout_ms_t : uint32_t { k_ra8_timeout_none_ms = 0UL , k_ra8_timeout_short_ms = 10UL , k_ra8_timeout_default_ms = 100UL , k_ra8_timeout_long_ms = 1000UL , k_ra8_timeout_very_long_ms = 10000UL } |
| Canonical timeouts used across drivers. More... | |
Named Time Unit Constants for Delay / Timeout / Tick Math.
Collects every magic number related to time (microseconds, milliseconds, Hz) into a single typed-enum vocabulary so firmware code never writes a raw 1000, 1000000, or 0.001f.
Example rewrite:
Definition in file ra8_time_constants.h.
| enum ra8_clock_hz_t : uint32_t |
Expected clock frequencies after PLL bring-up.
These are the target values the CGC driver programmes. Real-world values are measured at runtime via the CAC (Clock Accuracy Check) and validated to be within +/- 0.1% before any time-critical peripheral is enabled. Adjust here and the CGC driver will follow.
Definition at line 74 of file ra8_time_constants.h.
| enum ra8_time_unit_t : uint32_t |
Integer conversion factors between common time units.
Definition at line 41 of file ra8_time_constants.h.
| enum ra8_timeout_ms_t : uint32_t |
Canonical timeouts used across drivers.
Centralised so the whole firmware agrees on "short", "default", "long" timeouts. Individual drivers may override for good reason but the default should come from here.
Definition at line 115 of file ra8_time_constants.h.