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

📄 lib_m42800.h

📁 ARM入门的好帮手.包含了从简单到相对较复杂的程序.
💻 H
字号:
//*----------------------------------------------------------------------------
//*         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_m42800.h
//* Object              : AT91M42800 Architecture Definition File
//*
//* 1.0 25/05/00  PF    : Creation
//* 1.1 10/06/01  PF    : Add st.h inclusion
//*----------------------------------------------------------------------------

#ifndef lib_m42800_h
#define lib_m42800_h

#include    "parts/m42800/m42800.h"

/*----------*/
/* ARM Core */
/*----------*/
#include    "periph/arm7tdmi/arm.h"

/*----------------------------*/
/* System Timer     Registers */
/*----------------------------*/
#include    "periph/system_timer/lib_st.h"

/* Descriptor */
extern const STDesc     ST_DESC ;       /* Sytem Timer Descriptor */
/*------------------------------*/
/* Power Management Controller  */
/*------------------------------*/
#include    "periph/power_saving/lib_power_save.h"

/*-------------------------------*/
/* Advanced Interrupt Controller */
/*-------------------------------*/
#include    "periph/aic/lib_aic.h"
#include    "periph/aic/ext_irq/lib_ext_irq.h"

/* Descriptor */
extern const ExtIrqDesc    IRQ0_DESC ;  /* IRQ0 Descriptor */
extern const ExtIrqDesc    IRQ1_DESC ;  /* IRQ1 Descriptor */
extern const ExtIrqDesc    IRQ2_DESC ;  /* IRQ2 Descriptor */
extern const ExtIrqDesc    IRQ3_DESC ;  /* IRQ3 Descriptor */
extern const ExtIrqDesc    FIQ_DESC ;   /* FIQ Descriptor */

/*-------------------------*/
/* Parallel I/O Controller */
/*-------------------------*/
#include    "periph/pio/lib_pio.h"

extern void pioa_asm_irq_handler ( void ) ;
extern void piob_asm_irq_handler ( void ) ;

/* Descriptor */
extern const PioCtrlDesc PIOA_DESC ;        /* PIO Controller A Descriptor */
extern const PioCtrlDesc PIOB_DESC ;        /* PIO Controller B Descriptor */


/*--------*/
/* USARTs */
/*--------*/
/* Definition file */
#include    "periph/usart/lib_usart.h"

/* USART descriptor */
extern const UsartDesc USART0_DESC ;        /* USART 0 Descriptor */
extern const UsartDesc USART1_DESC ;        /* USART 1 Descriptor */

/*---------------*/
/* Timer Counter */
/*---------------*/
#include    "periph/timer_counter/lib_tc.h"

/* Descriptors */
extern const TCDesc TC0_DESC ;          /* Timer Counter Channel 0 Descriptor */
extern const TCDesc TC1_DESC ;          /* Timer Counter Channel 1 Descriptor */
extern const TCDesc TC2_DESC ;          /* Timer Counter Channel 2 Descriptor */
extern const TCDesc TC3_DESC ;          /* Timer Counter Channel 3 Descriptor */
extern const TCDesc TC4_DESC ;          /* Timer Counter Channel 4 Descriptor */
extern const TCDesc TC5_DESC ;          /* Timer Counter Channel 5 Descriptor */

extern const TCBlockDesc TCB0_DESC ;    /* Timer Counter Block 0 Descriptor */
extern const TCBlockDesc TCB1_DESC ;    /* Timer Counter Block 1 Descriptor */

/*-----*/
/* SPI */
/*-----*/
#include    "periph/spi/lib_spi.h"

/* Descriptor */
extern const SpiDesc    SPIA_DESC ;
extern const SpiDesc    SPIB_DESC ;

#endif /* lib_m42800_h */

⌨️ 快捷键说明

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