35 #ifndef __HAL_DVFS_H__ 36 #define __HAL_DVFS_H__ 38 #include "hal_platform.h" 40 #ifdef HAL_DVFS_MODULE_ENABLED The DVFS function executed successfully.
Definition: hal_dvfs.h:97
hal_dvfs_freq_relation_t
This enum defines the relationship between the target frequency and the final frequency.
Definition: hal_dvfs.h:101
hal_dvfs_status_t hal_dvfs_target_cpu_frequency(uint32_t target_freq, hal_dvfs_freq_relation_t relation)
This function adjusts the CPU frequency to a suitable target frequency according to the passed-in rel...
Non-initialized.
Definition: hal_dvfs.h:94
The operation is not permitted.
Definition: hal_dvfs.h:92
Device or resource is busy.
Definition: hal_dvfs.h:93
hal_dvfs_status_t hal_dvfs_init(void)
The function initializes the DVFS framework.
The DVFS function detected a common error.
Definition: hal_dvfs.h:96
The lowest frequency at or above the target level.
Definition: hal_dvfs.h:102
hal_dvfs_status_t
This enum defines return status of certain DVFS HAL APIs.
Definition: hal_dvfs.h:91
uint32_t hal_dvfs_get_cpu_frequency(void)
This function gets the current CPU frequency.
The highest frequency below or at the target level.
Definition: hal_dvfs.h:103
hal_dvfs_status_t hal_dvfs_get_cpu_frequency_list(const uint32_t **list, uint32_t *list_num)
This function gets all adjustable CPU frequencies listed in the OPP table.
Invalid parameter value.
Definition: hal_dvfs.h:95