⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lib_m40800.c

📁 ARM入门的好帮手.包含了从简单到相对较复杂的程序.
💻 C
字号:
//*----------------------------------------------------------------------------
//*         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           : lib_m40800.c
//* Object              : AT91M40800 Descriptor File.
//*
//* 1.0 01/04/00 JCZ    : Creation
//* 1.1 29/09/00 JPP    : TCB definition
//*----------------------------------------------------------------------------

#include    "lib_m40800.h"

/*-----------------*/
/* PIO Controllers */
/*-----------------*/

/* Instantiate PIO Controllers Pointers */
const StructPIO *Pio   = PIO_BASE ;

/* PIO Controller Descriptor */
const PioCtrlDesc PIO_DESC =
{
    PIO_BASE,
    PIO_ID,
    NB_PIO
} ;


/*-------------------------------*/
/* Advanced Interrupt Controller */
/*-------------------------------*/

/* IRQ0 Descriptor */
const ExtIrqDesc    IRQ0_DESC =
{
    &PIO_DESC,
    IRQ0_ID,
    PIOIRQ0
} ;

/* IRQ1 Descriptor */
const ExtIrqDesc    IRQ1_DESC =
{
    &PIO_DESC,
    IRQ1_ID,
    PIOIRQ1
} ;

/* IRQ2 Descriptor */
const ExtIrqDesc    IRQ2_DESC =
{
    &PIO_DESC,
    IRQ2_ID,
    PIOIRQ2
} ;


/* FIQ Descriptor */
const ExtIrqDesc    FIQ_DESC =
{
    &PIO_DESC,
    FIQ_ID,
    PIOFIQ,
} ;

/*-------*/
/* USART */
/*-------*/

/* Usart 0 Descriptor */
const UsartDesc USART0_DESC =
{
    USART0_BASE,
    &PIO_DESC,
    PIORXD0,
    PIOTXD0,
    PIOSCK0,
    US0_ID ,
} ;

/* Usart 1 Descriptor */
const UsartDesc USART1_DESC =
{
    USART1_BASE ,
    &PIO_DESC,
    PIORXD1,
    PIOTXD1,
    PIOSCK1,
    US1_ID ,
} ;


/*------------------------*/
/* Timer Counter Channels */
/*------------------------*/

/* Timer Counter Channel 0 Descriptor */
const TCDesc TC0_DESC =
{
    TC0_BASE,
    &PIO_DESC,
    TC0_ID,
    PIOTIOA0,
    PIOTIOB0,
    PIOTCLK0
} ;

/* Timer Counter Channel 1 Descriptor */
const TCDesc TC1_DESC =
{
    TC1_BASE,
    &PIO_DESC,
    TC1_ID,
    PIOTIOA1,
    PIOTIOB1,
    PIOTCLK1
} ;

/* Timer Counter Channel 2 Descriptor */
const TCDesc TC2_DESC =
{
    TC2_BASE,
    &PIO_DESC,
    TC2_ID,
    PIOTIOA2,
    PIOTIOB2,
    PIOTCLK2
} ;

/* Timer Counter Block Descriptor */
const TCBlockDesc TCB_DESC =
{
    &TC0_DESC,
    &TC1_DESC,
    &TC2_DESC,
} ;

/* WatchDog Descriptor */


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -