/* WOTCH DOG register */ #define WTCON (*(volatile unsigned long *)0x53000000) /* SDRAM regisers */ #define MEM_CTL_BASE 0x…
volatile 源代码
volatile是一个特征修饰符(typespecifier).volatile的作用是作为指令关键字,确保本条指令不会因编译器的优化而省略,且要求每次直接读值。
/* WOTCH DOG register */ #define WTCON (*(volatile unsigned long *)0x53000000) /* SDRAM regisers */ #define MEM_CTL_BASE 0x…
//========================================================================================== // Filename: uart.h // // Descrip…
/*********************************************************************** * $Workfile: lh7a404_uart.h $ * $Revision: 1.1 …
#include #include #include #include //#define test (*(unsigned char *)(0x040000)) //mister xu #define tes…
/****************************************************************************** ** …
/************************************************************************************ FILENAME: SEED-DEC2407.h ****************…
void erase_flash() { int aa; flash_adr1=(unsigned volatile char *)0x64005555; flash_adr2=(unsigned volatile char *)0x64002a…
/*************************************************************************/ /* …
/*********************************************************************** * $Workfile: lh7a404_uart.h $ * $Revision: 1.1 …