GR551x API Reference
V1_6_06_B5676
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.
@ RNG_OSC_CLK
RNG OSC CLOCK.
void sys_wakeup_osc_time_set(run_mode_t run_mode, uint16_t osc_us)
Set Time to wakeup oscillator before BLE Activity.
void ble_sleep_algo_dur_set(run_mode_t run_mode, uint8_t dur_hus)
Set BLE Sleep Algorithm Duration.
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 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.
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.
run_mode_t
system clock and run mode.
void ble_max_push_frame_time_set(run_mode_t run_mode, uint8_t max_push_hus)
Set Maximum BLE Pushing Frame Time.
void platform_init(void)
Platform init function.
void set_io_ldo_use_3p3_v(bool flag)
set io_ldo_3p3_enable flag
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.
hal_status_t
HAL Status structures definition.
@ 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 platform_init_push(void)
protection platform timeout through watchdog.
void rtc_calibration(void)
RTC calibration function.
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.
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.