📄 board.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 01/Mar/2005
* 1.1 14/Oct/05 JPP : Change MCK
*----------------------------------------------------------------------------
*/
#ifndef Board_h
#define Board_h
#include "AT91SAM7S128.h"
#define __inline inline
#include "lib_AT91SAM7S128.h"
#define true 0
#define false -1
/*-------------------------------*/
/* 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_LOCK 32
#define FLASH_PAGE_SIZE 256
/*-----------------*/
/* Leds Definition */
/*-----------------*/
/* PIO Flash PA PB PIN */
#define PA8_LED (1<<8) /* PA8 / PGMEN0 & PWM0 TIOA0 48 */
#define PA15_LE1 (1<<15) /* PA15 / PGMEN1 & PWM1 TIOB0 47 */
#define PA19_LE2 (1<<19) /*PA19*/
#define PA27_MONITOR (1<<27)
#define NB_LEB 1
#define LED_MASK (LED1|LED2)
/*---------------*/
/*mute definition*/
/*---------------*/
#define PA12_MUTE (1<<12)
#define PA17_TEMP (1<<17)
/*--------------*/
/* Master Clock */
/*--------------*/
#define EXT_OC 18432000 // Exetrnal ocilator MAINCK
#define MCK 48000000 // MCK (PLLRC div by 2)
#define MCKKHz (MCK/1000) //
extern unsigned char reset_timer0();
extern void close_timer0();
#endif /* Board_h */
/*key value*/
#define ZERO 0x07
#define ONE 0x17
#define TWO 0x27
#define THREE 0x37
#define FOUR 0x0B
#define FIVE 0x1B
#define SIX 0x2B
#define SEVEN 0x3B
#define EIGHT 0x0D
#define NINE 0x1D
#define ENTER 0x2D
#define DELE 0x3D
#define UP 0x0E
#define DOWN 0x1E
#define RIGHT 0x2E
#define LIGHT 0x3E
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -