stm/timer.h
/**
     * configure callback on PERIOD ELAPSED event
     * @param callback function to be called
     * @param irq interrupt number
     * @param pre priority
     * @param sub priority
     */
configure callback on PERIOD ELAPSED event
@param callback function to be called
@param irq interrupt number
@param pre priority
@param sub priority
configure callback on PERIOD ELAPSED event @param callback function to be called @param irq interrupt number @param pre priority @param sub priority
void configCallback(void (*callback)(TIM_HandleTypeDef *), IRQn_Type irq, uint32_t pre, uint32_t sub) {
        HAL_TIM_RegisterCallback(&hTim, HAL_TIM_PERIOD_ELAPSED_CB_ID, callback);
        HAL_NVIC_SetPriority(irq, pre, sub);
        HAL_NVIC_EnableIRQ(irq);
    }
void configCallback ( void ( * callback ) ( TIM_HandleTypeDef * ) , IRQn_Type irq , uint32_t pre , uint32_t sub ) { HAL_TIM_RegisterCallback ( & hTim , HAL_TIM_PERIOD_ELAPSED_CB_ID , callback ) ; HAL_NVIC_SetPriority ( irq , pre , sub ) ; HAL_NVIC_EnableIRQ ( irq ) ; }
configure callback on PERIOD ELAPSED event
 @param callback function to be called
 @param irq interrupt number
 @param pre priority
 @param sub priority
configure callback on PERIOD ELAPSED event @param callback function to be called @param irq interrupt number @param pre priority @param sub priority