Go to the documentation of this file.
48 #ifndef _PLATFORM_SDK_H
49 #define _PLATFORM_SDK_H
54 #include "system_gr55xx.h"
64 #define XO_CRYSTAL_FREQ 32000000 //XO 32MHz
65 #define CLK_CAL_STAT_BUSY 0x00
66 #define CLK_CAL_STAT_DONE 0x01
67 #define CLK_CAL_STAT_OVERFLOW 0x100
288 #ifdef ENV_USE_FREERTOS
void system_pmu_calibration_stop(void)
stop calibration.
void platform_rc_calibration(void)
Platform rc calibration function.
@ RNG_OSC_CLK
RNG OSC CLOCK.
uint16_t clock_calib_notify_register(clock_calib_notify_cb_t calib_notify_cb)
Register the clock calibration completion callback.
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.
void pwr_mgmt_update_comm_wkup_timing_param(void)
update comm wakeup timing settings according to lf clock
@ MEM_POWER_AUTO_MODE
Auto mode.
XQSPI High Performance mode init structures definition.
void platform_sdk_init(void)
platform sdk init function.
mem_power_t
memory power setting mode.
@ RNG_OSC_CLK2
RNG OSC CLOCK2.
void system_pmu_calibration_start(uint32_t interval)
start calibration.
bool system_pmu_increase_for_peripheral(void)
PMU increase function, will increase about 0.35v digcore.
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.
void(* clock_calib_notify_cb_t)(float SlowClockFreq)
clock calibration notify callback.
table_idx_t
system clock and run mode.
void platform_init(void)
Platform init function.
void platform_clock_init_with_rtc(mcu_clock_type_t sys_clock, uint16_t accuracy, uint16_t xo_offset)
Platform low power clock init function with External RTC setting.
hal_status_t platform_flash_enable_quad(exflash_hp_init_t *hp_init)
write flash QE
void system_pmu_init(mcu_clock_type_t clock_type)
PMU init function.
void warm_boot_second(void)
the second warm boot stage.
@ RTC_OSC_CLK
RTC OSC CLOCK.
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.
hal_status_t
HAL Status structures definition.
This file contains all the functions prototypes for the HAL module driver.
@ MEM_POWER_FULL_MODE
Full mode.
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.
bool system_pmu_restore_for_peripheral(void)
PMU restore function.
@ MIRROR_XO16M
MIRROR X) 16M.
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.
This file contains HAL common definitions, enumeration, macros and structures definitions.
void platform_clock_init_with_rng2(mcu_clock_type_t sys_clock, uint16_t accuracy, uint16_t xo_offset)
Platform low power clock init function with internal RNG/RNG2 setting.
void pmu_calibration_handler(void *p_arg)
PMU calibration handler.
sdk_clock_type_t
sdk clock type.