www.pudn.com > FreeRTOSV4.0.0.zip > tc.h, change:2005-01-13,size:12389b


//*---------------------------------------------------------------------------- 
//*         ATMEL Microcontroller Software Support  -  ROUSSET  - 
//*---------------------------------------------------------------------------- 
//* The software is delivered "AS IS" without warranty or condition of any 
//* kind, either express, implied or statutory. This includes without 
//* limitation any warranty or condition with respect to merchantability or 
//* fitness for any particular purpose, or against the infringements of 
//* intellectual property rights of others. 
//*----------------------------------------------------------------------------- 
//* File Name           : tc.h 
//* Object              : Timer Counter Header File 
//* 
//* 1.0 01/04/00 JCZ    : Creation 
//* 1.0 01/09/00 JPP    : modification TC_BEEVT, TC_BEEVT_SET_OUTPUT, 
//*                       TC_BEEVT_CLEAR_OUTPUT, TC_BEEVT_TOGGLE_OUTPUT 
//*----------------------------------------------------------------------------- 
 
#ifndef tc_h 
#define tc_h 
 
//#include    "periph/stdc/std_c.h" 
//#include    "periph/pio/lib_pio.h" 
 
/*-------------------------------------------*/ 
/* Timer User Interface Structure Definition */ 
/*-------------------------------------------*/ 
 
typedef struct 
{ 
    at91_reg        TC_CCR ;        /* Control Register */ 
    at91_reg        TC_CMR ;        /* Mode Register */ 
    at91_reg        Reserved0 ; 
    at91_reg        Reserved1 ; 
    at91_reg        TC_CV ;         /* Counter value */ 
    at91_reg        TC_RA ;         /* Register A */ 
    at91_reg        TC_RB ;         /* Register B */ 
    at91_reg        TC_RC ;         /* Register C */ 
    at91_reg        TC_SR ;         /* Status Register */ 
    at91_reg        TC_IER ;        /* Interrupt Enable Register */ 
    at91_reg        TC_IDR ;        /* Interrupt Disable Register */ 
    at91_reg        TC_IMR ;        /* Interrupt Mask Register */ 
    at91_reg        Reserved2 ; 
    at91_reg        Reserved3 ; 
    at91_reg        Reserved4 ; 
    at91_reg        Reserved5 ; 
} StructTC ; 
 
#define NB_TC_CHANNEL       3 
 
typede