📄 main.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 : main.h
//* Object :
//*
//* 1.0 27/03/03 HIi : Creation
//* 1.01 03/05/04 HIi : AT9C_VERSION incremented to 1.01
//* 1.02 15/06/04 HIi : AT9C_VERSION incremented to 1.02 ==>
//* Add crc32 to verify dataflash download
//* 1.03 25/05/05 GGi : AT9C_VERSION incremented to 1.03 ==> 9261 version
//*----------------------------------------------------------------------------
#ifndef main_h
#define main_h
#define TRUE (1==1)
#define FALSE (1==0)
#define AT91C_MASTER_CLOCK Fmclk
#define AT91C_MASTER_CLOCK_FOR_I2S Fmclk
#define AT91C_BAUD_RATE 115200
#define AT91C_VERSION "VER 1.0"
/*-------------------*/
/* LCD DEFINITIONS */
/*-------------------*/
#define CONFIG_AT91SAM9261 1 /* Using AT91SAM9261 Chip */
#define CONFIG_AT91SAM9261EK 1 /* on an AT91SAM9261EK Board */
// Add LCD stuff
#define CONFIG_LCD 1
#define CONFIG_LCD_LOGO
//#define LCD_TEST_PATTERN
#define LCD_INFO
#define LCD_INFO_BELOW_LOGO
//#define CFG_INVERT_COLORS
#define CFG_WHITE_ON_BLACK
#define LCD_MONOCHROME 0
#define LCD_COLOR2 1
#define LCD_COLOR4 2
#define LCD_COLOR8 3
#define LCD_COLOR16 4
#define AT91C_FRAME_BUFFER 0x22000000
#define AT91C_ATMEL_LOGO 0x22020000
#define AT91C_ATMEL_WAVE 0x22030000
/*-------------------*/
/* TYPES DEFINITIONS */
/*-------------------*/
typedef unsigned char u_char;
typedef unsigned short u_short;
typedef unsigned int u_int;
typedef unsigned int uint;
typedef unsigned long u_long;
typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
typedef unsigned int uint32_t;
typedef unsigned char uchar;
typedef unsigned short ushort;
typedef unsigned long ulong;
// Global variables and functions definition
extern unsigned int AT91F_Wait4KeyPressed(void);
extern void AT91F_DisplayLCD (char *str, ushort x, ushort y);
extern void lcd_clearscreen (void);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -