52 #define WT_DIV2E7 (0x0uL << 4) 53 #define WT_DIV2E13 (0x1uL << 4) 54 #define WT_DIV2E14 (0x2uL << 4) 55 #define WT_DIV2E14DR (0x3uL << 4) 58 #define WT_INTDIS (0x0uL << 3) 59 #define WT_INTEN (0x1uL << 3) 62 #define WT_CR_WTIEN ((uint32_t)(1 << 3)) // WT Interrupt Enable bit 63 #define WT_INTERRUPT_BITMASK 0x0008 66 #define WT_CR_WTIFLAG ((uint32_t)(1 << 1)) // WT Interrupt Flag bit 67 #define WT_STATUS_BITMASK 0x0002 69 #define WT_CR_WTCLR ((uint32_t)(1 << 0)) // WT counter and divider clear bit 105 #define WT_EN() (WT->CR_b.WTEN = 1) 106 #define WT_DIS() (WT->CR_b.WTEN = 0) 112 #define WT_GetCnt() (WT->CNT) 120 #define WT_SetWT_DR( u32WTData ) (WT->DR = u32WTData) 126 #define WTInt_GetFg() (WT->CR_b.WTIFLAG) 132 #define WTInt_ClrFg() (WT->CR_b.WTIFLAG = 1)
HAL_Status_Type HAL_WT_Init(WT_CFG_Type *WT_Config)
Initialize the WT peripheral with the specified parameters.
HAL_Status_Type HAL_WT_Start(FunctionalState ctrl)
Enable WT activity.
uint32_t HAL_WT_GetStatus(void)
Get the timer status register of WT.
HAL_Status_Type HAL_WT_ConfigInterrupt(FunctionalState NewState)
Configure the peripheral interrupt.
uint32_t HAL_WT_GetCurrentCount(void)
Get the current value of WT.
HAL_Status_Type HAL_WT_ClearStatus(void)
Clear the timer status register of WT.
Contains the ABOV typedefs for C standard types. It is intended to be used in ISO C conforming develo...
HAL_Status_Type HAL_WT_SetRegister(uint32_t u32WTSet)
Set WT CR Register.
HAL_Status_Type HAL_WT_DeInit(void)
deinit for Watch Timer function