ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
board_periph_mstp_internal.h
Go to the documentation of this file.
1
32
33#pragma once
34
35#include <stdint.h>
36
37#include "ra8_attributes.h"
38
39#ifdef __cplusplus
40extern "C" {
41#endif
42
56typedef enum : uint64_t {
57 k_board_mstp_win_base = 0x40203000UL,
60
78
100RA8_PRIV void priv_board_mstp_apply_write(uint64_t off, unsigned size, uint32_t value);
101
123RA8_PRIV uint32_t priv_board_mstp_read_reg(uint64_t off, unsigned size);
124
147RA8_PRIV bool priv_board_mstp_addr_stopped(uint64_t addr);
148
167RA8_PRIV void priv_board_mstp_note_gated_access(uint64_t addr, bool is_write);
168
181
194
202
203#ifdef __cplusplus
204}
205#endif
void priv_board_mstp_note_gated_access(uint64_t addr, bool is_write)
Record that an MMIO access to a module-stopped peripheral was dropped.
board_mstp_geom_t
R_MSTP register-window geometry (HUM Ch 11.2.6..11.2.10 p 443-450).
@ k_board_mstp_win_span
MSTPCRA..E = 5 x uint32 = 20 B.
@ k_board_mstp_win_base
R_MSTP base (Secure alias).
uint32_t priv_board_mstp_read_reg(uint64_t off, unsigned size)
Read the tracked MSTPCRA..MSTPCRE shadow (the read-back path).
uint32_t priv_board_mstp_gated_write_count(void)
Number of writes dropped because their peripheral was module-stopped.
uint32_t priv_board_mstp_gated_read_count(void)
Number of reads zeroed because their peripheral was module-stopped.
const char * priv_board_mstp_last_gated_name(void)
Label of the peripheral whose access was most recently gated off.
void priv_board_mstp_reset(void)
Restore MSTPCRA..MSTPCRE to their all-stopped reset values.
bool priv_board_mstp_addr_stopped(uint64_t addr)
Report whether the peripheral instance owning addr is module-stopped.
void priv_board_mstp_apply_write(uint64_t off, unsigned size, uint32_t value)
Apply a firmware write to the MSTPCRA..MSTPCRE shadow.
Annotation-attribute framework macros for ra8-firmware.
#define RA8_PRIV
Module-private helper: shared across TUs but only inside one library.