Go to the documentation of this file.
47 #ifndef _PLATFORM_SDK_H
48 #define _PLATFORM_SDK_H
53 #include "system_gr5405.h"
void sys_set_protect_irq(IRQn_Type IRQn)
Set the protected interrupt level. Interrupts with a lower priority group than the protected interrup...
sys_power_t
system power mode.
void system_pmu_calibration_stop(void)
stop calibration.
void(* clock_calib_notify_cb_t)(float SlowClockFreq)
clock calibration notify callback.
IRQn_Type sys_get_protect_irq(void)
Get the protected interrupt level.
Header file containing functions prototypes of XQSPI LL library.
void platform_rc_calibration(void)
Platform rc calibration function.
uint16_t clock_calib_notify_register(clock_calib_notify_cb_t calib_notify_cb)
Register the clock calibration completion callback.
void sys_dcdc_sysldo_dcore_init(void)
set dcdc sysldo & digocre
void system_power_mode(sys_power_t sys_power)
System power starup mode.
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.
slow_clock_type_t
slow clock type.
void pwr_mgmt_update_comm_wkup_timing_param(void)
update comm wakeup timing settings according to lf clock
void tx_power_normal_pmu_apply(void)
bool sys_pmu_is_ss_chip(void)
adjust digcore with ddvs
void platform_sdk_init(void)
platform sdk init function.
mem_power_t
memory power setting mode.
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.
table_idx_t
system clock and run mode.
void platform_init(void)
Platform init function.
void platform_clock_init(mcu_clock_type_t sys_clock, slow_clock_type_t slow_clock, uint16_t accuracy, uint16_t xo_offset)
Platform low power clock init function.
void system_pmu_init(mcu_clock_type_t clock_type)
PMU init function.
void tx_power_15dbm_pmu_apply(void)
PMU deinit function.
void warm_boot_second(void)
the second warm boot stage..
bool clock_calibration_is_done(void)
Check whether the clock calibration is completed. If it is not completed, the chip is not allowed to ...
void clock_calibration_irq_handler(void)
Handle Clock calibration interrupt request.
uint16_t clock_calib_notify_unregister(clock_calib_notify_cb_t calib_notify_cb)
Unregister the clock calibration completion callback.
This file contains HAL common definitions, enumeration, macros and structures definitions.
void warm_boot_first(void)
the first warm boot stage.
void pwr_mgmt_warm_boot(void)
Power Management warm boot.
void warm_boot(void)
Warm boot process.
void pmu_calibration_check_and_retry(void)
If the last PMU calibration failed, do the calibration again.
void system_pmu_deinit(void)
void sys_pmu_ddvs_dcore_adjust(uint8_t clock_type)
adjust digcore with ddvs
uint32_t sys_pmu_ddvs_ringo_get(void)
get ddvs ringo count
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.
void pmu_calibration_handler(void *p_arg)
PMU calibration handler.