You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
// File name : tc_reg.h
|
|
|
// Version : V0.1
|
|
|
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
|
#ifndef __TC_REG_H__
|
|
|
#define __TC_REG_H__
|
|
|
|
|
|
#include "type.h"
|
|
|
|
|
|
|
|
|
typedef struct
|
|
|
{
|
|
|
__IO unsigned short TCCR;//0x0
|
|
|
__IO unsigned short TCMR;//0x2
|
|
|
__IO unsigned short TCCNTR;//0x4
|
|
|
__IO unsigned short TCSR;//0x6
|
|
|
|
|
|
}TC_TypeDef;
|
|
|
|
|
|
#define TC_WAIT (1<<11)
|
|
|
#define TC_DOZE (1<<10)
|
|
|
#define TC_STOP (1<<9)
|
|
|
#define TC_DBG (1<<8)
|
|
|
#define TC_IS (1<<7)
|
|
|
#define TC_IF (1<<3)
|
|
|
#define TC_IE (1<<2)
|
|
|
#define TC_CU (1<<1)
|
|
|
#define TC_RN (1<<0)
|
|
|
|
|
|
#define TC_WDP_SHIFT (4)
|
|
|
|
|
|
#endif /* __TC_REG_H__ */
|