📄 eb42.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 : eb42.h
//* Object : AT91M42800 Evaluation Board Features Definition File.
//*
//* Compatibility : Library V3
//*
//* 1.0 11/Nov/02 JPP : Creation.
//*--------------------------------------------------------------------------------------
#ifndef eb42_h
#define eb42_h
/*---------------------------------------*/
/* AT91EB42 External Memories Definition */
/*---------------------------------------*/
/* Flash Memory : AT49BV1604 1M*16 */
#define FLASH_BASE (0x01000000)
#define FLASH_SIZE (2*1024*1024) /* byte */
/* SRAM : size is depending on the devices fitted on the board */
#define EXT_SRAM_BASE (0x02000000)
#define EXT_SRAM_DEFAULT_SIZE (256*1024)
#define EXT_SRAM_LIMIT (EXT_SRAM_BASE+EXT_SRAM_SIZE)
/*---------------------------------------------------------------------------*/
/* EBI Initialization Data */
/*---------------------------------------------------------------------------*/
/* The EBI User Interface Image which is copied by the boot. */
/* 32 MHz master clock assumed. */
/* That's hardware! Details in the Electrical Datasheet of the AT91 device. */
/* EBI Base Address is added at the end for commodity in copy code. */
/*---------------------------------------------------------------------------*/
#define EBI_CSR_0 ((unsigned int )(FLASH_BASE | 0x2529)) /* 0x01000000, 16MB, 2 tdf, 16 bits, 3 WS */
#define EBI_CSR_1 ((unsigned int )(EXT_SRAM_BASE | 0x2121)) /* 0x02000000, 16MB, 0 hold, 16 bits, 1 WS */
#define EBI_CSR_2 ((unsigned int )0x20000000) /* unused */
#define EBI_CSR_3 ((unsigned int )0x30000000) /* unused */
#define EBI_CSR_4 ((unsigned int )0x40000000) /* unused */
#define EBI_CSR_5 ((unsigned int )0x50000000) /* unused */
#define EBI_CSR_6 ((unsigned int )0x60000000) /* unused */
#define EBI_CSR_7 ((unsigned int )0x70000000) /* unused */
/*-----------------*/
/* Leds Definition */
/*-----------------*/
#define LED1 AT91C_PIO_PB8
#define LED2 AT91C_PIO_PB9
#define LED3 AT91C_PIO_PB10
#define LED4 AT91C_PIO_PB11
#define LED5 AT91C_PIO_PB12
#define LED6 AT91C_PIO_PB13
#define LED7 AT91C_PIO_PB14
#define LED8 AT91C_PIO_PB15
#define LED_MASK (LED1 | LED2 | LED3 | LED4 | LED5 | LED6 | LED7 | LED8)
/*-------------------------*/
/* Push Buttons Definition */
/*-------------------------*/
#define SW1_MASK AT91C_PIO_PB7 // TIOA0
#define SW2_MASK AT91C_PIO_PA0 // IRQ0
#define SW3_MASK AT91C_PIO_PB6 // TCKL0
#define SW4_MASK AT91C_PIO_PB21 // TCLK5
#define SW_MASK (SW1_MASK|SW2_MASK|SW3_MASK)
/*--------------------------*/
/* Serial EEPROM Definition */
/*--------------------------*/
#define SCL AT91C_PB16
#define SDA AT91C_PB17
#define PIO_SCL 16
#define PIO_SDA 17
/*-----------------*/
/*--------------*/
/* Master Clock */
/*--------------*/
#define MCK 32768000
#define MCKKHz (MCK/1000)
#define EXT_QUARTZ 32768
#endif /* eb42_h */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -