Platform/ECM3532/M3/hw/hal/common/timer/src/timer_hal.c
/**
 * Change period of timer
 *
 * @param sHalTmr timer handle
 * @param ui32TmrPrd new timer period
 *
 * @return int
 */
Change period of timer
@param sHalTmr timer handle
@param ui32TmrPrd new timer period

@return int
Change period of timer @param sHalTmr timer handle @param ui32TmrPrd new timer period @return int
int32_t HalTmrChangePeriod(tHalTmr *sHalTmr, uint32_t ui32TmrPrd)
{
    UBaseType_t uxSavedInterruptStatus;
    if (!sHalTmr || !sHalTmr->sDev)
        return -EINVAL;
    uxSavedInterruptStatus = taskENTER_CRITICAL_FROM_ISR();
    sHalTmr->ui32TmrPrd = ui32TmrPrd;
    taskEXIT_CRITICAL_FROM_ISR(uxSavedInterruptStatus);
    return 0;
}
int32_t HalTmrChangePeriod ( tHalTmr * sHalTmr , uint32_t ui32TmrPrd ) { UBaseType_t uxSavedInterruptStatus ; if ( ! sHalTmr || ! sHalTmr -> sDev ) return - EINVAL ; uxSavedInterruptStatus = taskENTER_CRITICAL_FROM_ISR ( ) ; sHalTmr -> ui32TmrPrd = ui32TmrPrd ; taskEXIT_CRITICAL_FROM_ISR ( uxSavedInterruptStatus ) ; return 0 ; }
Change period of timer
 @param sHalTmr timer handle
 @param ui32TmrPrd new timer period
Change period of timer @param sHalTmr timer handle @param ui32TmrPrd new timer period