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

📄 board.h

📁 在UCOS-II操作系统成功移植到AT91SAM7S64的基础上
💻 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           : Board.h
* Object              : AT91SAM7S Evaluation Board Features Definition File.
*
* Creation            : JPP   16/Jun/2004
*----------------------------------------------------------------------------
*/
#ifndef Board_h
#define Board_h

#include "include/AT91SAM7S64.h"
#define __inline inline
#include "include/lib_AT91SAM7S64.h"

#define true	-1
#define false	0

/*-------------------------------*/
/* SAM7Board Memories Definition */
/*-------------------------------*/
// The AT91SAM7S64 embeds a 16-Kbyte SRAM bank, and 64 K-Byte Flash

#define  INT_SARM           0x00200000
#define  INT_SARM_REMAP	    0x00000000

#define  INT_FLASH          0x00000000
#define  INT_FLASH_REMAP    0x01000000

#define  FLASH_PAGE_NB		512
#define  FLASH_PAGE_SIZE	128

/*-----------------*/
/* Leds Definition */
/*-----------------*/
#define LED1            ((unsigned int) AT91C_PIO_PA0)

#define NB_LEB			3


/*-------------------------*/
/* st16c2500 Definition */
/*-------------------------*/
#define RESET           AT91C_PIO_PA1
#define A0              AT91C_PIO_PA27
#define A1              AT91C_PIO_PA28
#define A2              AT91C_PIO_PA29
#define IOW             AT91C_PIO_PA14
#define IOR             AT91C_PIO_PA15
#define CSA             AT91C_PIO_PA24
#define INTA            AT91C_PIO_PA30
#define CSB             AT91C_PIO_PA13
#define INTB            AT91C_PIO_PA20
#define D0              AT91C_PIO_PA7
#define D1              AT91C_PIO_PA8
#define D2              AT91C_PIO_PA9
#define D3              AT91C_PIO_PA10
#define D4              AT91C_PIO_PA11
#define D5              AT91C_PIO_PA12
#define D6              AT91C_PIO_PA26
#define D7              AT91C_PIO_PA25
//**************************************************
#define powerswithTV1              AT91C_PIO_PA19
#define powerswithTV2              AT91C_PIO_PA18
#define powerswithCommunication1              AT91C_PIO_PA17
#define powerswithCommunication2              AT91C_PIO_PA23

//***************************************************

/*------------------*/
/* USART Definition */
/*------------------*/
#define RXD0            AT91C_PIO_PA5//AT91C_PA5_RXD0
#define TXD0            AT91C_PIO_PA6//AT91C_PA6_TXD0

#define RXD1            AT91C_PIO_PA21//AT91C_PA21_RXD1
#define TXD1            AT91C_PIO_PA22//AT91C_PA22_TXD1


/*--------------*/
/* Master Clock */
/*--------------*/

#define EXT_OC          18432000   // Exetrnal ocilator MAINCK
#define MCK             47923200   // MCK (PLLRC div by 2)
#define MCKKHz          (MCK/1000) //

#endif /* Board_h */

⌨️ 快捷键说明

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