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

📄 board.h

📁 Working with DS1820 temperature sensor on SAM7 mC. Watch for timings!
💻 H
字号:
/* This is the decription for Olimex proto board SAM7-H256
 * Description version 0.1
 * Microcontroller AT91SAM7S256
 * 
 * TODO: UARTs, SPI, SD-reader, UART port, SW-buttons. 
 */
#ifndef Board_h
#define Board_h

#define __inline static inline

#include "include/AT91SAM7S64.h"
#include "include/lib_AT91SAM7S64.h"

#define true	-1
#define false	0

/*-------------------------------*/
/* SAM7 Board 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

//Pins descriptions
#define GREEN			(1<<7)						// green LED on pcb   
#define YELLOW			(1<<17)						// yellow LED on pcb

//#define SW1 			(1<<19)						// PA19
//#define SW2 			(1<<20)						// PA19

#define   MUXA1			(1<<0)
#define   MUXA0			(1<<1)
#define   BLACKRELAY	(1<<2)
#define   REDRELAY		(1<<9)
#define   BIT3        0x00000008
#define   BIT4        0x00000010
#define   BIT5        0x00000020
#define   BIT6        0x00000040
#define   LED			(1<<7)
#define   RELAY			(1<<8)
#define   WIRE			(1<<10)  //觐眙桡箴桊箦蝰

⌨️ 快捷键说明

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