pub unsafe extern "C" fn MSS_TIM1_init(
timer: *mut TIMER_TypeDef,
mode: mss_timer_mode_t,
)Expand description
MSS_TIM1_init() initializes the MSS Timer block for use as a 32-bit timer and selects the operating mode for Timer 1. The MSS Timer block is out of reset before executing this function. MSS_TIM1_init() stops Timer 1, disables its interrupt, and sets the Timer 1 operating mode.
Note: The MSS Timer block cannot be used both as a 64-bit and 32-bit timer. When the MSS_TIM1_init() function is invoked, it overwrites any previous configuration of the MSS Timer as a 64-bit timer.
@param timer The timer parameter specifies the Timer block being used.
@param mode The mode parameter specifies whether the timer operates in Periodic or One-shot mode.
- Following are the allowed values:
- MSS_TIMER_PERIODIC_MODE
- MSS_TIMER_ONE_SHOT_MODE
@return This function does not return a value.