Go to the documentation of this file.
53 #ifndef __GR55xx_HAL_BR_H__
54 #define __GR55xx_HAL_BR_H__
143 #ifdef HAL_ADC_MODULE_ENABLED
194 #ifdef HAL_AES_MODULE_ENABLED
245 #ifdef HAL_AON_GPIO_MODULE_ENABLED
292 #ifdef HAL_AON_WDT_MODULE_ENABLED
342 #ifdef HAL_CALENDAR_MODULE_ENABLED
391 #ifdef HAL_RTC_MODULE_ENABLED
442 #ifdef HAL_DUAL_TIMER_MODULE_ENABLED
491 #ifdef HAL_GPIO_MODULE_ENABLED
550 #ifdef HAL_HMAC_MODULE_ENABLED
599 #ifdef HAL_I2C_MODULE_ENABLED
649 #ifdef HAL_I2S_MODULE_ENABLED
698 #ifdef HAL_MSIO_MODULE_ENABLED
746 #ifdef HAL_PKC_MODULE_ENABLED
797 #ifdef HAL_PWM_MODULE_ENABLED
846 #ifdef HAL_PWR_MODULE_ENABLED
848 #ifdef HAL_SLEEP_TIMER_MODULE_ENABLED
884 #ifdef HAL_QSPI_MODULE_ENABLED
933 #ifdef HAL_SPI_MODULE_ENABLED
982 #ifdef HAL_TIMER_MODULE_ENABLED
1033 #ifdef HAL_UART_MODULE_ENABLED
1084 #ifdef HAL_WDT_MODULE_ENABLED
1134 #ifdef HAL_XQSPI_MODULE_ENABLED
1183 #ifdef HAL_EXFLASH_MODULE_ENABLED
1230 #ifdef HAL_EFUSE_MODULE_ENABLED
1279 #ifdef HAL_RNG_MODULE_ENABLED
1329 #ifdef HAL_COMP_MODULE_ENABLED
1380 #ifdef HAL_ISO7816_MODULE_ENABLED
1432 #ifdef HAL_PDM_MODULE_ENABLED
1483 #ifdef HAL_DSPI_MODULE_ENABLED
1533 #ifdef HAL_GPADC_MODULE_ENABLED
1551 hal_status_t hal_gpadc_init_ext(gpadc_handle_t *p_gpadc);
1568 hal_status_t hal_gpadc_deinit_ext(gpadc_handle_t *p_gpadc);
1579 void hal_gpadc_register_callback(gpadc_callback_t *gpadc_callback);
1584 #ifdef HAL_USB_MODULE_ENABLED
1632 #ifdef HAL_BOD_MODULE_ENABLED
hal_status_t hal_usb_init_ext(usb_handle_t *p_usb)
Initialize the USB according to the specified parameters in the usb_init_t and initialize the associa...
BOD handle Structure definition.
HAL_I2S Callback function definition.
hal_status_t hal_i2s_init_ext(i2s_handle_t *p_i2s)
Initialize the I2S according to the specified parameters in the i2s_init_t and initialize the associa...
HAL_XQSPI Callback function definition.
SPI handle Structure definition.
void hal_pwr_register_timer_elaspsed_handler(pwr_slp_elapsed_handler_t pwr_slp_elapsed_hander)
This function registers the callback function to the ROM area.
hal_status_t hal_qspi_deinit_ext(qspi_handle_t *p_qspi)
De-initialize the QSPI peripheral.
hal_status_t hal_hmac_deinit_ext(hmac_handle_t *p_hmac)
De-initialize the HMAC peripheral.
hal_status_t hal_wdt_init_ext(wdt_handle_t *p_wdt)
Initialize the WDT according to the specified parameters in the wdt_init_t of associated handle.
USB handle Structure definition.
void hal_calendar_register_callback(calendar_callback_t *calendar_callback)
This function registers the callback function to the ROM area.
hal_status_t hal_exflash_deinit_ext(void)
De-initialize the exFlash peripheral.
HAL COMP Callback function definition.
void hal_i2c_register_callback(i2c_callback_t *i2c_callback)
This function registers the callback function to the ROM area.
eFuse handle Structure definition
ISO7816 handle Structure definition.
void hal_aon_gpio_deinit_ext(uint32_t aon_gpio_pin)
De-initialize the AON_GPIOx peripheral registers to their default reset values.
HAL_ISO7816 Callback function definition.
hal_status_t hal_pdm_init_ext(pdm_handle_t *p_pdm)
Initialize the PDM according to the specified parameters in the pdm_init_t and initialize the associa...
void hal_exflash_register_callback(exflash_callback_t *exflash_callback)
This function registers the callback function to the ROM area.
void hal_wdt_register_callback(wdt_callback_t *wdt_callback)
This function registers the callback function to the ROM area.
void hal_comp_register_callback(comp_callback_t *comp_callback)
This function registers the callback function to the ROM area.
MSIO init structure definition.
void hal_gpio_deinit_ext(gpio_regs_t *GPIOx, uint32_t gpio_pin)
De-initialize the GPIOx peripheral registers to their default reset values.
hal_status_t hal_dual_timer_base_deinit_ext(dual_timer_handle_t *p_dual_timer)
De-initialize the DUAL TIMER peripheral.
I2C handle Structure definition.
void hal_aon_gpio_register_callback(aon_gpio_callback_t *aon_gpio_callback)
This function registers the callback function to the ROM area.
hal_status_t hal_uart_init_ext(uart_handle_t *p_uart)
Initialize the UART according to the specified parameters in the uart_init_t and initialize the assoc...
HAL_AON_WDT Callback function definition.
hal_status_t hal_pkc_init_ext(pkc_handle_t *p_pkc)
Initialize the PKC according to the specified parameters in the pkc_init_t and initialize the associa...
hal_status_t hal_aon_wdt_deinit_ext(aon_wdt_handle_t *p_aon_wdt)
De-initialize the AON_WDT peripheral.
HAL_RNG Callback function definition.
PKC handle Structure definition.
void hal_hmac_register_callback(hmac_callback_t *hmac_callback)
This function registers the callback function to the ROM area.
hal_status_t hal_adc_deinit_ext(adc_handle_t *p_adc)
De-initialize the ADC peripheral.
HAL_UART Callback function definition.
void hal_msio_register_callback(msio_callback_t *msio_callback)
This function registers the callback function to the ROM area.
HAL_PKC Callback function definition.
CALENDAR handle Structure definition.
void hal_rng_register_callback(rng_callback_t *rng_callback)
This function registers the callback function to the ROM area.
hal_status_t hal_bod_deinit_ext(bod_handle_t *p_bod)
De-initialize the BOD peripheral.
void hal_aon_wdt_register_callback(aon_wdt_callback_t *aon_wdt_callback)
This function registers the callback function to the ROM area.
HAL_QSPI Callback function definition.
hal_status_t hal_i2c_deinit_ext(i2c_handle_t *p_i2c)
De-initialize the I2C peripheral.
COMP handle Structure definition.
UART handle Structure definition.
hal_status_t hal_spi_deinit_ext(spi_handle_t *p_spi)
De-initialize the SPI peripheral.
hal_status_t hal_xqspi_init_ext(xqspi_handle_t *p_xqspi)
Initialize the XQSPI according to the specified parameters in the xqspi_init_t and initialize the ass...
hal_status_t hal_adc_init_ext(adc_handle_t *p_adc)
Initialize the ADC according to the specified parameters in the adc_init_t and initialize the associa...
DUAL_TIMER handle Structure definition.
HAL_GPIO Callback function definition.
void hal_msio_init_ext(msio_pad_t MSIOx, msio_init_t *p_msio_init)
Initialize the MSIOx peripheral according to the specified parameters in the msio_init_t.
hal_status_t hal_rng_init_ext(rng_handle_t *p_rng)
Initialize the RNG according to the specified parameters in the rng_init_t of associated handle.
void hal_pkc_register_callback(pkc_callback_t *pkc_callback)
This function registers the callback function to the ROM area.
void hal_iso7816_register_callback(iso7816_callback_t *iso7816_callback)
This function registers the callback function to the ROM area.
void hal_timer_register_callback(timer_base_callback_t *timer_base_callback)
This function registers the callback function to the ROM area.
HAL_EXFLASH Callback function definition.
HAL AON_GPIO Callback function definition.
hal_status_t hal_comp_init_ext(comp_handle_t *p_comp)
Initialize the COMP according to the specified parameters in the comp_init_t and initialize the assoc...
void hal_gpio_register_callback(gpio_callback_t *gpio_callback)
This function registers the callback function to the ROM area.
void hal_gpio_init_ext(gpio_regs_t *GPIOx, gpio_init_t *p_gpio_init)
Initialize the GPIOx peripheral according to the specified parameters in the p_gpio_init.
HAL_HMAC Callback function definition.
hal_status_t hal_xqspi_deinit_ext(xqspi_handle_t *p_xqspi)
De-initialize the XQSPI peripheral.
void hal_usb_register_callback(usb_callback_t *usb_callback)
This function registers the callback function to the ROM area.
hal_status_t hal_aes_init_ext(aes_handle_t *p_aes)
Initialize the AES according to the specified parameters in the aes_init_t and initialize the associa...
hal_status_t hal_init_ext(void)
This function configures time base source, NVIC and Low level hardware.
void hal_dual_timer_register_callback(dual_timer_callback_t *dual_timer_callback)
This function registers the callback function to the ROM area.
XQSPI handle Structure definition.
hal_status_t hal_wdt_deinit_ext(wdt_handle_t *p_wdt)
De-initialize the WDT peripheral.
void hal_i2s_register_callback(i2s_callback_t *i2s_callback)
This function registers the callback function to the ROM area.
hal_status_t hal_efuse_deinit_ext(efuse_handle_t *p_efuse)
De-initialize the eFuse peripheral.
I2S handle Structure definition.
hal_status_t hal_aes_deinit_ext(aes_handle_t *p_aes)
De-initialize the AES peripheral.
void hal_aes_register_callback(aes_callback_t *aes_callback)
This function registers the callback function to the ROM area.
void hal_adc_register_callback(adc_callback_t *adc_callback)
This function registers the callback function to the ROM area.
hal_status_t hal_aon_wdt_init_ext(aon_wdt_handle_t *p_aon_wdt)
Initialize the AON_WDT according to the specified parameters in the wdt_init_t of associated handle.
HAL_WDT Callback function definition.
void hal_xqspi_register_callback(xqspi_callback_t *xqspi_callback)
This function registers the callback function to the ROM area.
RNG handle Structure definition.
HAL_USB Callback function definition.
DSPI handle Structure definition.
hal_status_t hal_deinit_ext(void)
This function de-initializes common part of the HAL and stops the source of time base.
PWM handle Structure definition.
PDM handle Structure definition.
hal_status_t hal_pwr_config_timer_wakeup_ext(uint8_t mode, uint32_t value)
Configure the AON Sleep Timer mode, count and start used to wakeup MCU.
hal_status_t hal_iso7816_deinit_ext(iso7816_handle_t *p_iso7816)
De-initializes the ISO7816 according to the specified parameters in the iso7816_init_t and initialize...
msio_pad_t
MSIO pad Enumerations definition.
HMAC handle Structure definition.
hal_status_t hal_pwm_init_ext(pwm_handle_t *p_pwm)
Initialize the PWM mode according to the specified parameters in the pwm_init_t and initialize the as...
HAL_I2C Callback function definition.
GPIO init structure definition.
ADC handle Structure definition.
hal_status_t hal_i2s_deinit_ext(i2s_handle_t *p_i2s)
De-initialize the I2S peripheral.
void(* pwr_slp_elapsed_handler_t)(void)
HAL_SLP_TIM Elapsed Callback function definition.
hal_status_t hal_dspi_init_ext(dspi_handle_t *p_dspi)
Initialize the DSPI according to the specified parameters in the dspi_init_t and initialize the assoc...
void hal_efuse_register_callback(efuse_callback_t *efuse_callback)
This function registers the callback function to the ROM area.
hal_status_t
HAL Status structures definition.
hal_status_t hal_timer_base_init_ext(timer_handle_t *p_timer)
Initialize the TIMER according to the specified parameters in the timer_init_t and initialize the ass...
void hal_dspi_register_callback(dspi_callback_t *dspi_callback)
This function registers the callback function to the ROM area.
void hal_register_callback(hal_callback_t *hal_callback)
This function registers the callback function to the ROM area.
void hal_uart_register_callback(uart_callback_t *uart_callback)
This function registers the callback function to the ROM area.
AES handle Structure definition.
HAL PDM Callback function definition.
This file contains all the functions prototypes for the HAL module driver.
hal_status_t hal_rtc_init_ext(rtc_handle_t *p_rtc)
Initialize the RTC according to the specified parameters in the rtc_init_t of associated handle....
HAL_HAL Callback function definition.
hal_status_t hal_iso7816_init_ext(iso7816_handle_t *p_iso7816)
Initializes the ISO7816 according to the specified parameters in the iso7816_init_t and initialize th...
hal_status_t hal_bod_init_ext(bod_handle_t *p_bod)
Initialize the BOD according to the specified parameters in the bod_init_t and initialize the associa...
WDT handle Structure definition.
HAL_RTC Callback function definition.
hal_status_t hal_uart_deinit_ext(uart_handle_t *p_uart)
De-initialize the UART peripheral.
void hal_spi_register_callback(spi_callback_t *spi_callback)
This function registers the callback function to the ROM area.
hal_status_t hal_exflash_init_ext(void)
Initialize the exFlash according to the specified parameters in the exflash_init_t and initialize the...
void hal_aon_gpio_init_ext(aon_gpio_init_t *p_aon_gpio_init)
Initialize the AON_GPIOx peripheral according to the specified parameters in the aon_gpio_init_t.
TIMER handle Structure definition.
HAL_MSIO Callback function definition.
void(* systick_callback)(void)
hal_status_t hal_usb_deinit_ext(usb_handle_t *p_usb)
De-initialize the USB peripheral.
void hal_rtc_register_callback(rtc_callback_t *rtc_callback)
This function registers the callback function to the ROM area.
void hal_qspi_register_callback(qspi_callback_t *qspi_callback)
This function registers the callback function to the ROM area.
HAL BOD Callback function definition.
void hal_msio_deinit_ext(msio_pad_t MSIOx, uint32_t msio_pin)
De-initialize the MSIOx peripheral registers to their default reset values.
hal_status_t hal_timer_base_deinit_ext(timer_handle_t *p_timer)
De-initialize the TIMER peripheral.
hal_status_t hal_comp_deinit_ext(comp_handle_t *p_comp)
De-initialize the COMP peripheral.
hal_status_t hal_rng_deinit_ext(rng_handle_t *p_rng)
De-initialize the RNG peripheral.
struct _hal_callback hal_callback_t
HAL_HAL Callback function definition.
HAL_SPI Callback function definition.
void hal_pwm_register_callback(pwm_callback_t *pwm_callback)
This function registers the callback function to the ROM area.
hal_status_t hal_efuse_init_ext(efuse_handle_t *p_efuse)
Initialize the eFuse according to the specified parameters in the efuse_init_t and initialize the ass...
hal_status_t hal_qspi_init_ext(qspi_handle_t *p_qspi)
Initialize the QSPI according to the specified parameters in the qspi_init_t and initialize the assoc...
AON_WDT handle Structure definition.
HAL ADC Callback function definition.
hal_status_t hal_pkc_deinit_ext(pkc_handle_t *p_pkc)
De-initialize the PKC peripheral.
hal_status_t hal_pdm_deinit_ext(pdm_handle_t *p_pdm)
De-initialize the PDM peripheral.
hal_status_t hal_dspi_deinit_ext(dspi_handle_t *p_dspi)
De-initialize the DSPI peripheral.
hal_status_t hal_calendar_init_ext(calendar_handle_t *p_calendar)
Initialize the CALENDAR according to the specified parameters in the calendar_init_t of associated ha...
void hal_pdm_register_callback(pdm_callback_t *pdm_callback)
This function registers the callback function to the ROM area.
hal_status_t hal_calendar_deinit_ext(calendar_handle_t *p_calendar)
De-initialize the CALENDAR peripheral.
void hal_bod_register_callback(bod_callback_t *bod_callback)
This function registers the callback function to the ROM area.
HAL_EFUSE Callback function definition.
hal_status_t hal_rtc_deinit_ext(rtc_handle_t *p_rtc)
DeInitialize the RTC according to the specified parameters in the rtc_init_t of associated handle....
HAL_DUAL_TIMER Callback function definition.
AON_GPIO init structure definition.
HAL_CALENDAR Callback function definition.
HAL_DSPI Callback function definition.
hal_status_t hal_pwm_deinit_ext(pwm_handle_t *p_pwm)
De-initialize the PWM peripheral.
hal_status_t hal_dual_timer_base_init_ext(dual_timer_handle_t *p_dual_timer)
Initialize the DUAL TIMER according to the specified parameters in the dual_timer_init_t and initiali...
QSPI handle Structure definition.
hal_status_t hal_i2c_init_ext(i2c_handle_t *p_i2c)
Initializes the I2C according to the specified parameters in the i2c_init_t and initialize the associ...
HAL_PWM Callback function definition.
HAL_TIMER Callback function definition.
hal_status_t hal_hmac_init_ext(hmac_handle_t *p_hmac)
Initialize the HMAC according to the specified parameters in the hmac_init_t and initialize the assoc...
HAL AES Callback function definition.
hal_status_t hal_spi_init_ext(spi_handle_t *p_spi)
Initialize the SPI according to the specified parameters in the spi_init_t and initialize the associa...