79 if( TIMER1x == ( TIMER1n_Type* )TIMER10 )
86 if( TIMER1x == ( TIMER1n_Type* )TIMER11 )
93 if( TIMER1x == ( TIMER1n_Type* )TIMER12 )
100 if( TIMER1x == ( TIMER1n_Type* )TIMER13 )
107 if( TIMER1x == ( TIMER1n_Type* )TIMER14 )
114 if( TIMER1x == ( TIMER1n_Type* )TIMER15 )
121 if( TIMER1x == ( TIMER1n_Type* )TIMER16 )
132 | TIMER1n_CR_CKSEL_SET( pTimeCfg->
CkSel )
133 | TIMER1n_CR_MODE_SET( TimerCounterMode )
134 | TIMER1n_CR_STARTLVL_SET( pTimeCfg->
StartLevel )
136 if( pTimeCfg->
CkSel == 1 )
138 reg_val16 = reg_val16 | TIMER1n_CR_ECE_SET( pTimeCfg->
ECE );
140 TIMER1x->CR = reg_val16;
142 TIMER1x->PREDR = ( ( pTimeCfg->
Prescaler - 1 ) & TIMER1n_PRS_MASK );
143 TIMER1x->ADR = pTimeCfg->
ADR;
150 | TIMER1n_CR_CKSEL_SET( pPwmOneshotCfg->
CkSel )
151 | TIMER1n_CR_MODE_SET( TimerCounterMode )
152 | TIMER1n_CR_STARTLVL_SET( pPwmOneshotCfg->
StartLevel )
154 if( pPwmOneshotCfg->
CkSel == 1 )
156 reg_val16 = reg_val16 | TIMER1n_CR_ECE_SET( pPwmOneshotCfg->
ECE );
158 TIMER1x->CR = reg_val16;
160 TIMER1x->PREDR = ( ( pPwmOneshotCfg->
Prescaler - 1 ) & TIMER1n_PRS_MASK );
161 TIMER1x->ADR = pPwmOneshotCfg->
ADR;
162 TIMER1x->BDR = pPwmOneshotCfg->
BDR;
169 | TIMER1n_CR_CKSEL_SET( pCaptureCfg->
CkSel )
170 | TIMER1n_CR_MODE_SET( TimerCounterMode )
171 | TIMER1n_CR_CPOL_SET( pCaptureCfg->
ClrMode )
173 if( pCaptureCfg->
CkSel == 1 )
175 reg_val16 = reg_val16 | TIMER1n_CR_ECE_SET( pCaptureCfg->
ECE );
177 TIMER1x->CR = reg_val16;
179 TIMER1x->PREDR = ( ( pCaptureCfg->
Prescaler - 1 ) & TIMER1n_PRS_MASK );
180 TIMER1x->ADR = pCaptureCfg->
ADR;
197 if( TIMER1x == NULL )
206 if( TIMER1x == ( TIMER1n_Type* )TIMER10 )
213 if( TIMER1x == ( TIMER1n_Type* )TIMER11 )
220 if( TIMER1x == ( TIMER1n_Type* )TIMER12 )
227 if( TIMER1x == ( TIMER1n_Type* )TIMER13 )
234 if( TIMER1x == ( TIMER1n_Type* )TIMER14 )
241 if( TIMER1x == ( TIMER1n_Type* )TIMER15 )
248 if( TIMER1x == ( TIMER1n_Type* )TIMER16 )
276 if( TIMER1x == NULL )
281 switch( TIMER1n_IntCfg )
284 tmp = TIMER1n_MATINTEN;
287 tmp = TIMER1n_CAPINTEN;
297 TIMER1x->CR &= ( ~tmp );
316 if( TIMER1x == NULL )
323 TIMER1x->CR |= TIMER1n_ENABLE;
327 TIMER1x->CR &= ~TIMER1n_ENABLE;
349 if( TIMER1x == NULL )
354 TIMER1x->CR = u32T1nSet;
356 TIMER1x->PREDR = u32T1nClk;
HAL_Status_Type HAL_TIMER1n_Cmd(TIMER1n_Type *TIMER1x, FunctionalState NewState)
Start/Stop Timer/Counter device.
HAL_Status_Type HAL_TIMER1n_SetRegister(TIMER1n_Type *TIMER1x, uint32_t u32T1nSet, uint32_t u32T1nClk)
Set TIMER1n CR/PREDR Registers.
HAL_Status_Type HAL_TIMER1n_ConfigInterrupt(TIMER1n_Type *TIMER1x, TIMER1n_INT_Type TIMER1n_IntCfg, FunctionalState NewState)
Configure the peripheral interrupt.
Contains all macro definitions and function prototypes support for timer1n firmware library on A31G12...
HAL_Status_Type HAL_TIMER1n_DeInit(TIMER1n_Type *TIMER1x)
Close Timer/Counter device.
HAL_Status_Type HAL_TIMER1n_Init(TIMER1n_Type *TIMER1x, TIMER1n_MODE_OPT TimerCounterMode, void *TIMER1n_Config)
Initialize the TIMER1n peripheral with the specified parameters.
void HAL_SCU_Peripheral_EnableClock1(uint32_t u32PeriClk1, uint32_t Ind)
Set Each Peripheral Clock.
Contains all macro definitions and function prototypes support for scu firmware library on A31G12x.