Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
511328c3aThis file is pinned to the selected release. Download the original to open it in your design tool.
// Copyright © 2024, Julian Scheffers, see LICENSE for more information
#pragma once
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
// UART status register.
typedef struct {
// System reset.
uint32_t rst : 1;
// System shutdown.
uint32_t shdn : 1;
// Padding.
uint32_t _padding0 : 30;
} pmu_status_t;
// UART peripheral.
typedef struct {
// Status register.
pmu_status_t volatile status;
} pmu_t;
// PMU address.
extern pmu_t PMU asm("__pmu_base");