#define GPBCON (*(volatile unsigned long *)0x56000010) #define GPBDAT (*(volatile unsigned long *)0x56000014) int main() { GPB…
volatile 源代码
volatile是一个特征修饰符(typespecifier).volatile的作用是作为指令关键字,确保本条指令不会因编译器的优化而省略,且要求每次直接读值。
#ifndef REG_ #define REG_ #define T0CTL *(volatile unsigned int *)0x01940000 #define T0PRD *(volatile unsigned int *)0x0194…
#define GPBCON (*(volatile unsigned long *)0x56000010) #define GPBDAT (*(volatile unsigned long *)0x56000014) int main() { GPB…
extern volatile unsigned char gpsTime[6]; extern volatile unsigned char gpsDate[6]; extern volatile unsigned char gpsok;
#ifndef LPC214X_EX #define LPC214X_EX #define FIO_BASE_ADDR 0x3FFFC000 /* FIOs can be accessed through WORD, HALF-WORD or …
/************************************************ * NAME : K44b.H * * Version : 07.MARCH.2000 * ************…
/************************************************ * NAME : K44b.H * * Version : 07.MARCH.2000 * ************…
//========================================================================== // // lcd_support.c // // Cirrus EDB7xx…
/* if_nicEvb.h - NIC driver header (for EVB403) */ /* Copyright 1984-1997 Wind River Systems, Inc. */ /* modification history --…
#ifndef __SERIAL_H_ #define __SERIAL_H_ //define the address of the registers used in the uart communication #define rULCON0 (*(…