/*
  ******************************************************************************
  * @file    apt32f102_wwdt.h
  * @author  APT AE Team
  * @version V1.02
  * @date    2020/11/20
  ******************************************************************************
  *THIS SOFTWARE WHICH IS FOR ILLUSTRATIVE PURPOSES ONLY WHICH PROVIDES 
  *CUSTOMER WITH CODING INFORMATION REGARDING THEIR PRODUCTS.
  *APT CHIP SHALL NOT BE HELD RESPONSIBILITY ADN LIABILITY FOR ANY DIRECT, 
  *INDIRECT DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF 
  *SUCH SOFTWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION 
  *CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.AND APT CHIP RESERVES 
  *THE RIGHT TO MAKE CHANGES IN THE SOFTWARE WITHOUT NOTIFICATION
  ******************************************************************************
  */
 
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef _apt32f102_wwdt_H
#define _apt32f102_wwdt_H

/* Includes ------------------------------------------------------------------*/
#include "apt32f102.h"

#define WWDT_RESET_VALUE  (0x00000000)


//--------------------------------------------------------------------------------
//-----------------------------wwdt  value enum define--------------------------
//--------------------------------------------------------------------------------
/**
  * @brief  PSC DIV register
  */
typedef enum
{
    PCLK_4096_DIV0 = (0<<8),
	PCLK_4096_DIV2 = (1<<8),
	PCLK_4096_DIV4 = (2<<8),
	PCLK_4096_DIV8 = (3<<8),
}WWDT_PSCDIV_TypeDef;
/**
  * @brief  WWDT DEBUG MODE register
  */
typedef enum
{
    WWDT_DBGDIS = (0<<10),
	WWDT_DBGEN = (1<<10),
}WWDT_DBGEN_TypeDef;

#define WWDT_EVI 0X01


extern void WWDT_DeInit(void);
extern void WWDT_CONFIG(WWDT_PSCDIV_TypeDef PSCDIVX,U8_T WND_DATA,WWDT_DBGEN_TypeDef DBGENX);
extern void WWDT_CMD(FunctionalStatus NewState);
extern void WWDT_CNT_Load(U8_T cnt_data);
extern void WWDT_Int_Config(FunctionalStatus NewState);



/*************************************************************/

#endif   /**< apt32f102_wwdt_H */

/******************* (C) COPYRIGHT 2019 APT Chip *****END OF FILE****/