#ifndef __SN32F760_CT32B0_H
#define __SN32F760_CT32B0_H


/*_____ I N C L U D E S ____________________________________________________*/
#include <stdint.h>
#include <SN32F700_Def.h>


/*_____ D E F I N I T I O N S ______________________________________________*/
#define	CT32B0_IRQ	INTERRUPT_METHOD		//INTERRUPT_METHOD:	Enable CT32B0 timer and interrupt
																				//POLLING_METHOD: 	Enable CT32B0 timer ONLY

/*_____ M A C R O S ________________________________________________________*/
				// Enable CT32B0 PCLK
#define __CT32B0_ENABLE			SN_SYS1->AHBCLKEN_b.CT32B0CLKEN = ENABLE		
				// Disable CT32B0 PCLK
#define __CT32B0_DISABLE		SN_SYS1->AHBCLKEN_b.CT32B0CLKEN = DISABLE

/*_____ D E C L A R A T I O N S ____________________________________________*/
extern	volatile uint32_t	iwCT32B0_IrqEvent; //The bitmask usage of iwCT32Bn_IrqEvent is the same with CT32Bn_RIS

extern	void CT32B0_Init(void);
extern 	void CT32B0_NvicEnable(void);
extern 	void CT32B0_NvicDisable(void);
#endif	/*__SN32F760_CT32B0_H*/
