Typedefs | |
typedef void(* | clock_calib_notify_cb_t) (float SlowClockFreq) |
clock calibration notify callback. More... | |
Functions | |
void | platform_sdk_init (void) |
platform sdk init function. More... | |
void | mem_pwr_mgmt_full_power_set (void) |
set the memory power state to full. This function is mainly used in some scenarios where all SRAMs need to be powered on More... | |
void | mem_pwr_mgmt_mode_set (mem_power_t mem_pwr_mode) |
Set the memory power management mode, which can be automatic mode or full power on mode. More... | |
void | mem_pwr_mgmt_mode_set_from (uint32_t start_addr, uint32_t size) |
Control the memory power supply by specifying start address and length. More... | |
void | mem_pwr_mgmt_init (void) |
memory check process More... | |
void | system_lp_table_update_twval (table_idx_t table_idx, int16_t dur_offset, int16_t ext_offset, int16_t osc_offset) |
Enable patch function. More... | |
void | system_io_leakage_protect (void) |
Leakage Protection for Chip's IO, Only used in Bali A0. More... | |
void | platform_clock_init (mcu_clock_type_t sys_clock, sdk_clock_type_t clock, uint16_t accuracy, uint16_t xo_offset) |
Platform low power clock init function. More... | |
void | platform_rc_calibration (void) |
Platform rc calibration function. More... | |
void | pwr_mgmt_warm_boot (void) |
Power Management warm boot. More... | |
void | clock_calibration_irq_handler (void) |
Handle Clock calibration interrupt request. More... | |
void | platform_init (void) |
Platform init function. More... | |
void | system_pmu_init (mcu_clock_type_t clock_type) |
PMU init function. More... | |
void | system_pmu_deinit (void) |
PMU deinit function. More... | |
void | warm_boot_first (void) |
the first warm boot stage. More... | |
void | warm_boot_second (void) |
the second warm boot stage.. More... | |
void | warm_boot (void) |
Warm boot process. More... | |
void | pmu_calibration_handler (void *p_arg) |
PMU calibration handler. More... | |
void | clock_calib_notify_register (clock_calib_notify_cb_t calib_notify_cb) |
Register the clock calibration completion notification interface. More... | |
void | system_pmu_calibration_start (uint32_t interval) |
start calibration. More... | |
void | system_pmu_calibration_stop (void) |
stop calibration. More... | |
hal_status_t | platform_flash_enable_quad (exflash_hp_init_t *hp_init) |
write flash QE More... | |
typedef void(* clock_calib_notify_cb_t) (float SlowClockFreq) |
clock calibration notify callback.
Definition at line 105 of file platform_sdk.h.
void clock_calib_notify_register | ( | clock_calib_notify_cb_t | calib_notify_cb | ) |
Register the clock calibration completion notification interface.
[in] | calib_notify_cb | : Calibration complete callback interface. |
void clock_calibration_irq_handler | ( | void | ) |
Handle Clock calibration interrupt request.
void |
void mem_pwr_mgmt_full_power_set | ( | void | ) |
set the memory power state to full. This function is mainly used in some scenarios where all SRAMs need to be powered on
void |
void mem_pwr_mgmt_init | ( | void | ) |
memory check process
void |
void mem_pwr_mgmt_mode_set | ( | mem_power_t | mem_pwr_mode | ) |
Set the memory power management mode, which can be automatic mode or full power on mode.
[in] | mem_pwr_mode | : MEM_POWER_FULL_MODE or MEM_POWER_AUTO_MODE. |
void |
void mem_pwr_mgmt_mode_set_from | ( | uint32_t | start_addr, |
uint32_t | size | ||
) |
Control the memory power supply by specifying start address and length.
[in] | start_addr | : the start address of memory that user want to config |
[in] | size | : the size of memory that user want to config |
void |
void platform_clock_init | ( | mcu_clock_type_t | sys_clock, |
sdk_clock_type_t | clock, | ||
uint16_t | accuracy, | ||
uint16_t | xo_offset | ||
) |
Platform low power clock init function.
[in] | sys_clock | System clock. |
[in] | clock | : External RTC setting or internal RNG/RNG2 setting. |
[in] | accuracy | : Low speed clock accuracy. |
[in] | xo_offset | : Clock calibration parameter. |
void |
hal_status_t platform_flash_enable_quad | ( | exflash_hp_init_t * | hp_init | ) |
write flash QE
hal status |
void platform_init | ( | void | ) |
Platform init function.
void |
void platform_rc_calibration | ( | void | ) |
Platform rc calibration function.
void |
void platform_sdk_init | ( | void | ) |
platform sdk init function.
void |
void pmu_calibration_handler | ( | void * | p_arg | ) |
PMU calibration handler.
[in] | p_arg | : no args. |
void |
void pwr_mgmt_warm_boot | ( | void | ) |
Power Management warm boot.
void |
void system_io_leakage_protect | ( | void | ) |
Leakage Protection for Chip's IO, Only used in Bali A0.
void |
void system_lp_table_update_twval | ( | table_idx_t | table_idx, |
int16_t | dur_offset, | ||
int16_t | ext_offset, | ||
int16_t | osc_offset | ||
) |
Enable patch function.
[in] | table_idx | : Start Index Number. |
[in] | dur_offset | : duration setting. |
[in] | ext_offset | : ext wakeup setting. |
[in] | osc_offset | : pre-wakeup setting. |
void |
void system_pmu_calibration_start | ( | uint32_t | interval | ) |
start calibration.
[in] | interval | : the interval of calibration process. |
void |
void system_pmu_calibration_stop | ( | void | ) |
stop calibration.
void |
void system_pmu_deinit | ( | void | ) |
PMU deinit function.
void |
void system_pmu_init | ( | mcu_clock_type_t | clock_type | ) |
PMU init function.
[in] | clock_type | : clock type to be configured. |
void |
void warm_boot | ( | void | ) |
Warm boot process.
void |
void warm_boot_first | ( | void | ) |
the first warm boot stage.
void |
void warm_boot_second | ( | void | ) |
the second warm boot stage..
void |