ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_cgc_internal.h
Go to the documentation of this file.
1
35
36#pragma once
37
38#include <stdint.h>
39
40#include "ra8_attributes.h"
41#include "ra8_err.h"
42
61
86
111
Annotation-attribute framework macros for ra8-firmware.
#define RA8_PRIV
Module-private helper: shared across TUs but only inside one library.
ra8_err_t priv_ra8_cgc_ensure_hoco_running_for_usb_ck(void)
Ensure HOCO is running so a USBCKCR/USB60CKCR/ESWCKCR SREQ->SRDY handshake can drain.
ra8_err_t priv_ra8_cgc_wait_oscsf_clear(uint8_t bit)
Bounded poll on a single OSCSF flag becoming clear.
Definition ra8_cgc.c:243
ra8_err_t priv_ra8_cgc_wait_oscsf_set(uint8_t bit)
Bounded poll on a single OSCSF flag becoming set.
Definition ra8_cgc.c:233
ra8_cgc_byte_const_t
Bit-width / Hz-conversion constants used across the CGC driver.
@ k_ra8_cgc_hz_per_mhz
Hz per MHz.
@ k_ra8_cgc_quarters_per_unit
PLL multiplier 0.25 step.
@ k_ra8_cgc_mr_min_hz
Below this, MR*FREQ field = 0.
Error Code Definitions for ra8-firmware.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
Definition ra8_err.h:546