58 if( WT_Config == NULL )
67 | ( ( WT_Config->
wtClkDiv & 0x03 ) << 4 )
100 reg_val = ( WT->CR & 0xFF );
104 reg_val |= WT_CR_WTIEN;
108 reg_val &= ~WT_CR_WTIEN;
111 WT->CR = reg_val | WT_CR_WTIFLAG;
127 tmp_reg = WT->CR & 0xFF;
128 tmp_reg &= ~( 0x1 << 7 );
132 tmp_reg |= ( 0x1 << 7 );
135 tmp_reg |= WT_CR_WTCLR;
164 WT->CR |= WT_CR_WTIFLAG;
176 return ( WT->CR & WT_STATUS_BITMASK );
186 return ( WT->CNT & 0xFFF );
Contains all macro definitions and function prototypes support for wt firmware library on A31G12x.
uint32_t HAL_WT_GetCurrentCount(void)
Get the current value of WT.
HAL_Status_Type HAL_WT_ConfigInterrupt(FunctionalState NewState)
Configure the peripheral interrupt.
uint32_t HAL_WT_GetStatus(void)
Get the timer status register of WT.
void HAL_SCU_Peripheral_EnableClock2(uint32_t u32PeriClk2, uint32_t u32Ind)
Set Each Peripheral Clock.
HAL_Status_Type HAL_WT_Init(WT_CFG_Type *WT_Config)
Initialize the WT peripheral with the specified parameters.
HAL_Status_Type HAL_WT_DeInit(void)
deinit for Watch Timer function
HAL_Status_Type HAL_WT_ClearStatus(void)
Clear the timer status register of WT.
HAL_Status_Type HAL_WT_Start(FunctionalState ctrl)
Enable WT activity.
HAL_Status_Type HAL_WT_SetRegister(uint32_t u32WTSet)
Set WT CR Register.
Contains all macro definitions and function prototypes support for scu firmware library on A31G12x.