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
286 #ifdef ENV_USE_FREERTOS
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 ne...
void system_pmu_calibration_stop(void)
stop calibration.
void platform_rc_calibration(void)
Platform rc calibration function.
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.
hal_status_t platform_interrupt_protection_push(void)
protection interrupt handler during writing/erasing flash.
void mem_pwr_mgmt_init(void)
memory check process
XQSPI High Performance mode init structures definition.
void platform_sdk_init(void)
platform sdk init function.
mem_power_t
memory power setting mode.
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.
table_idx_t
system clock and run mode.
void platform_init(void)
Platform init function.
void system_io_leakage_protect(void)
Leakage Protection for Chip's IO, Only used in Bali A0.
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.
hal_status_t platform_flash_protection(uint32_t base_priority)
During Flash erase/write operation, Disable external interrupts with a priority less than or equal to...
void warm_boot_second(void)
the second warm boot stage.
void clock_calibration_irq_handler(void)
Handle Clock calibration interrupt request.
hal_status_t
HAL Status structures definition.
void(* clock_calib_notify_cb_t)(uint16_t SlowClockFreq)
clock calibration notify callback.
This file contains all the functions prototypes for the HAL module driver.
void clock_calib_notify_register(clock_calib_notify_cb_t calib_notify_cb)
Register the clock calibration completion notification interface.
hal_status_t platform_interrupt_protection_pop(void)
protection interrupt handler during writing/erasing flash.
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. When wanting to use higher digcore voltage, call system_pmu_increase_for_periph...
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.