FreeRTOS port on GAP8/RISC-V
|
Functions | |
void | __pi_pmu_handler (void) |
static void | __pi_maestro_sequence_trigger (uint32_t sequence) |
static void | __pi_pmu_wait_end_of_sequence (uint8_t domain_id) |
static void | __pi_pmu_state_apply (uint8_t domain_id, uint8_t state, uint8_t flags) |
void | pi_pmu_init (void) |
Initializes the PMU. More... | |
int | pi_pmu_voltage_set (uint32_t voltage, uint32_t frequency_check) |
Set PUM voltage and check frequency at the same time . More... | |
void | pi_pmu_deinit (int retentive, int wakeup_state) |
De-Initializes and shut down the PMU. More... | |
void | pi_pmu_mram_poweron (void) |
void | pi_pmu_mram_poweroff (void) |
Variables | |
pmu_state_t | pmu_state |
uint32_t | g_pmu_domain_state |
volatile uint32_t | pmu_req |
|
static |
References hal_pmu_sequence_set(), PI_PMU_BLOCK_WIU_ADDR, PI_PMU_CR_WRITE, PI_PMU_PICL_BUS_ADDR, and PI_PMU_WIU_REG_IFR.
Referenced by __pi_pmu_state_apply().
void __pi_pmu_handler | ( | void | ) |
References hal_pmu_irq_flag_clear(), pmu_req, and POWER_MANAGER_DLCPD_IFR_SCU_OK_F.
|
static |
References __pi_maestro_sequence_trigger(), __pi_pmu_wait_end_of_sequence(), PI_PMU_CHIP_ID, PI_PMU_FLAGS_NO_RET, and PI_PMU_FLAGS_PADS_ON.
Referenced by pi_pmu_mram_poweron().
|
static |
uint32_t g_pmu_domain_state |
Referenced by pi_pmu_init().
volatile uint32_t pmu_req |
Referenced by __pi_pmu_handler(), and __pi_pmu_wait_end_of_sequence().
pmu_state_t pmu_state |