📄 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.
//*
//* 1.0 23/05/00 PF : Creation
//*----------------------------------------------------------------------------
#ifndef eb42_h
#define eb42_h
#include "parts/m42800/m42800.h" /* library definition */
/*---------------------------------------*/
/* AT91EB63 External Memories Definition */
/*---------------------------------------*/
/* Flash Memory : AT49BV1604 1M*16 */
#define FLASH_BASE ((u_int *)0x01000000)
#define FLASH_SIZE (2*1024*1024)
/* SRAM : size is depending on the devices fitted on the board */
#define EXT_SRAM_BASE ((u_int *)0x02000000)
#define EXT_SRAM_DEFAULT_SIZE (256*1024)
/*-----------------*/
/* Leds Definition */
/*-----------------*/
#define LED1 PB8
#define LED2 PB9
#define LED3 PB10
#define LED4 PB11
#define LED5 PB12
#define LED6 PB13
#define LED7 PB14
#define LED8 PB15
#define LED_PIO_CTRL 1
#define LED_MASK 0x0000FF00
#define LED_ON PIO_CLEAR_OUT
#define LED_OFF PIO_SET_OUT
/*-------------------------*/
/* Push Buttons Definition */
/*-------------------------*/
#define SW1_MASK PB7
#define SW2_MASK PA0
#define SW3_MASK PB6
#define SW4_MASK PB21
#define SW_MASK (SW1_MASK|SW2_MASK|SW3_MASK)
#define PIO_SW1 7
#define PIO_SW2 0
#define PIO_SW3 6
#define PIO_SW4 21
#define SW1_PIO_CTRL PIOB_CTRL
#define SW2_PIO_CTRL PIOA_CTRL
#define SW3_PIO_CTRL PIOB_CTRL
#define SW4_PIO_CTRL PIOB_CTRL
/*--------------------------*/
/* Serial EEPROM Definition */
/*--------------------------*/
#define SCL PB16
#define SDA PB17
#define PIO_SCL 16
#define PIO_SDA 17
/*--------------*/
/* Battery */
/*--------------*/
#define FASTCHG_CTRL PB18
#define FASTCHG_ON 0x0
#define FASTCHG_OFF 0x1
/*-----------------*/
/* A/D Converter */
/*-----------------*/
#define AD_NCONVST PB19
#define START_CONV 0x0
/*--------------*/
/* Master Clock */
/*--------------*/
#define MCK 32768000
#define MCKKHz (MCK/1000)
#endif /* eb42_h */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -