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

📄 board.h

📁 atmel sam7a3 串口 pdc keil下成功运行 可在7a3 开发板上运行
💻 H
字号:
/******************************************************************************/
/* Board.H: AT91SAM7A3 Evaluation Board Features Definitions                  */
/******************************************************************************/
/* This file is part of the uVision/ARM development tools.                    */
/* Copyright (c) 2005-2006 Keil Software. All rights reserved.                */
/* This software may only be used under the terms of a valid, current,        */
/* end user licence from KEIL for a compatible version of KEIL software       */
/* development tools. Nothing else gives you the right to use this software.  */
/******************************************************************************/


#ifndef __BOARD_H
#define __BOARD_H


/* Clock Definitions */
#define EXT_OSC         18432000        /* External Oscillator MAINCK */
//#define MCK             47923200        /* MCK (PLLRC div by 2) */
#define MCK             40000000        /* MCK (PLLRC div by 2) */

/* LED's Definitions */
#define LED1            (1<<20)         /* PA20 */
#define LED2            (1<<21)         /* PA21 */
#define LED3            (1<<24)         /* PA24 */
#define LED4            (1<<25)         /* PA25 */

#define LED_CNT         4
#define LED_MASK        (LED1 | LED2 |LED3 | LED4)

/* Joystick Definition */
#define JS_UP           (1<<8)          /* PB8  */
#define JS_DOWN         (1<<9)          /* PB9  */
#define JS_LEFT         (1<<12)         /* PB12 */
#define JS_RIGHT        (1<<13)         /* PB13 */
#define JS_PUSH         (1<<14)         /* PB14 */
#define JS_MASK         (JS_UP | JS_DOWN | JS_LEFT | JS_RIGHT | JS_PUSH)
/*__inline  void  ENABLE_IRQ(void)	    
 { int temp;
 __asm
  {
//  	MRS temp,CPSR
//	BIC temp,temp,#0x80
//	MSR CPSR_c,temp
  		MRS 	R1, CPSR  
  		BIC 	R1, R1, #I_BIT
  		MSR 	CPSR_c, R1
  		BX		LR
	}
}
__inline  void  DISABLE_IRQ(void)	    
 { int temp;
 __asm
  {
  	MRS temp,CPSR
	ORR temp,temp,#0x80
	MSR CPSR_c,temp
	}
}


*/
#endif /* __BOARD_H */

⌨️ 快捷键说明

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