BLE Communication timer and core configuration function

Functions

hal_status_t hal_pwr_get_timer_current_value (uint32_t timer_type, uint32_t *p_value)
 Get the current value of specified timer. More...
 

Detailed Description

Function Documentation

◆ hal_pwr_get_timer_current_value()

hal_status_t hal_pwr_get_timer_current_value ( uint32_t  timer_type,
uint32_t *  p_value 
)

Get the current value of specified timer.

Note
Only available on GR551xx_B2 and later versions.
Parameters
[in]timer_typeThis parameter can be one of the following values:
[out]p_valuePointer to an integer storing current value
Return values
HAL_OKOperation is OK.
HAL_ERRORParameter error or operation not supported.
HAL_BUSYDriver is busy.
HAL_TIMEOUTTimeout occurred.