FreeRTOS port on GAP8/RISC-V
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gap9/pmsis/drivers/pmu/pmu.c File Reference

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
 

Function Documentation

static void __pi_maestro_sequence_trigger ( uint32_t  sequence)
static
void __pi_pmu_handler ( void  )
static void __pi_pmu_state_apply ( uint8_t  domain_id,
uint8_t  state,
uint8_t  flags 
)
static

Variable Documentation

uint32_t g_pmu_domain_state

Referenced by pi_pmu_init().

volatile uint32_t pmu_req
pmu_state_t pmu_state