35 #ifndef __HAL_DVFS_H__ 36 #define __HAL_DVFS_H__ 38 #include "hal_platform.h" 40 #ifdef HAL_DVFS_MODULE_ENABLED 92 HAL_DVFS_STATUS_NOT_PERMITTED = -5,
93 HAL_DVFS_STATUS_BUSY = -4,
94 HAL_DVFS_STATUS_UNINITIALIZED = -3,
95 HAL_DVFS_STATUS_INVALID_PARAM = -2,
96 HAL_DVFS_STATUS_ERROR = -1,
97 HAL_DVFS_STATUS_OK = 0
102 HAL_DVFS_FREQ_RELATION_L = 0,
103 HAL_DVFS_FREQ_RELATION_H = 1
104 } hal_dvfs_freq_relation_t;
118 hal_dvfs_status_t hal_dvfs_init(
void);
136 hal_dvfs_status_t hal_dvfs_target_cpu_frequency(uint32_t target_freq, hal_dvfs_freq_relation_t relation);
142 uint32_t hal_dvfs_get_cpu_frequency(
void);
151 hal_dvfs_status_t hal_dvfs_get_cpu_frequency_list(
const uint32_t **list, uint32_t *list_num);