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

Macros

#define LOG2_MAXDCO
 
#define FLL_MAXM
 
#define ARCHI_FLL_MAXDCO_FREQ
 
#define PI_FLL_INPUT_FREQ
 
#define PI_FLL_ITG_PER
 
#define PI_FLL_MAX_MUL
 

Functions

static uint32_t __pi_fll_mult_div_from_frequency_get (uint32_t freq, uint32_t *mult, uint32_t *div)
 
void pi_fll_init (uint8_t fll_id, uint32_t frequency)
 Initialize an FLL. More...
 
int32_t pi_fll_frequency_set (uint8_t fll_id, uint32_t frequency, uint8_t check)
 Set FLL to given frequency. More...
 
uint32_t pi_fll_frequency_get (uint8_t fll_id, uint8_t real)
 Get FLL frequency. More...
 

Variables

static uint32_t g_fll_frequency [ARCHI_NB_FLL]
 

Macro Definition Documentation

#define ARCHI_FLL_MAXDCO_FREQ
#define FLL_MAXM
#define LOG2_MAXDCO
#define PI_FLL_INPUT_FREQ
#define PI_FLL_ITG_PER

Referenced by pi_fll_init().

#define PI_FLL_MAX_MUL

Function Documentation

static uint32_t __pi_fll_mult_div_from_frequency_get ( uint32_t  freq,
uint32_t *  mult,
uint32_t *  div 
)
static
uint32_t pi_fll_frequency_get ( uint8_t  fll_id,
uint8_t  real 
)
Parameters
fll_idFLL domain.
realCompute current frequency.
Note
If real param is set, current frequency is computed from HW registers.
Returns
Frequency value.

References __pi_fll_frequency_from_mult_div_get(), g_fll_frequency, hal_fll_conf1_div_get(), and hal_fll_status_mult_factor_get().

Variable Documentation

uint32_t g_fll_frequency[ARCHI_NB_FLL]
static