Go to the documentation of this file.
47 #ifndef _PLATFORM_SDK_H
48 #define _PLATFORM_SDK_H
53 #include "system_gr55xx.h"
void mem_pwr_mgmt_full_power_set(void)
set the memory power state to full.
void platform_clock_init_rng(mcu_clock_type_t sys_clock, sdk_clock_type_t clock, uint16_t accuracy, uint16_t xo_offset)
Platform low power clock init function.
void ble_max_push_frame_time_set(run_mode_t run_mode, uint16_t max_push_hus)
Set Maximum BLE Pushing Frame Time.
@ RNG_OSC_CLK
RNG OSC CLOCK.
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.
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.
bool platform_rng2_calibration_is_busy(void)
Check whether RNG2 OSC calibration is on going.
@ MEM_POWER_AUTO_MODE
Auto mode.
void lfrc32k_calibration(void)
LFRC32K calibration.
void platform_init_pop(void)
protection platform timeout through watchdog.
void mem_pwr_mgmt_init(void)
memory check process
void platform_sdk_init(void)
platform sdk init function.
@ MIRROR_XO16M
MIRROR X) 16M.
hal_status_t platform_flash_enable_quad(void)
write flash QE
mem_power_t
memory power setting mode.
@ RNG_OSC_CLK2
RNG OSC CLOCK2.
uint32_t nvds_get_start_addr(void)
Get NVDS Start Address.
__STATIC_FORCEINLINE void delay_us(uint32_t number_of_us)
Function for delaying execution for number of us.
void sys_min_sleep_threshold_set(run_mode_t run_mode, uint32_t min_sleep_us)
Set Minimum System Sleep Time.
void platform_rng2_calibration_stop(bool wait)
Stop RNG2 OSC calibration.
void platform_set_rtc_crystal_delay(uint16_t wait)
Set RTC crystal oscillator stabilization time.
run_mode_t
system clock and run mode.
void platform_init(void)
Platform init function.
uint16_t ble_wakeup_osc_time_get(run_mode_t run_mode)
Get Time to wakeup oscillator before BLE Activity.
void system_pmu_init(mcu_clock_type_t clock_type)
PMU init function.
void ble_program_delay_set(run_mode_t run_mode, uint8_t hslot)
Set BLE Program Delay.
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.
@ RTC_OSC_CLK
RTC OSC CLOCK.
void warm_boot_set_exflash_readid_delay(uint32_t delay_us)
Set delay time between flash wakeup and read chip id in warm boot.
hal_status_t
HAL Status structures definition.
void ble_wakeup_osc_time_set(run_mode_t run_mode, uint16_t osc_us)
Set Time to wakeup oscillator before BLE Activity.
@ MEM_POWER_FULL_MODE
Full mode.
uint32_t platform_rng2_calibration_get(bool wait_result, bool allow_cached)
Get RNG2 OSC calibration result.
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 platform_init_push(void)
protection platform timeout through watchdog.
void system_lp_counter_set(uint8_t cnt_a, uint8_t cnt_b)
update the counter A and counter B.
void warm_boot(void)
Warm boot process.
void platform_rng2_calibration_start(void)
Start RNG2 OSC calibration.
void system_pmu_deinit(void)
PMU deinit function.
uint32_t warm_boot_get_exflash_readid_delay(void)
Get delay time between flash wakeup and read chip id in warm boot.
void ble_sleep_algo_dur_set(run_mode_t run_mode, uint16_t dur_hus)
Set BLE Sleep Algorithm Duration.
This file contains HAL common definitions, enumeration, macros and structures definitions.
void pmu_calibration_handler(void *p_arg)
PMU calibration handler.
sdk_clock_type_t
sdk clock type.