global.h

来自「avr AT45DB161D 通信程序,4MFlash,程序已经调试通过,希望对」· C头文件 代码 · 共 20 行

H
20
字号
#ifndef _GLOBAL_H
#define _GLOBAL_H
#include<stdlib.h> 
typedef char int8_t;
typedef unsigned char  u08 ; 
typedef unsigned char  uint8_t;
typedef unsigned int   u16 ;
typedef unsigned int   uint16_t;
typedef unsigned long  u32 ;
typedef unsigned long  uint32_t; 
#define outb(a, b) (a=b)

//MCU时钟频率
#define F_CPU   16000000
#define _MCU_CLOCK_FREQUENCY_ 16000000
//默认的系统BAUD
#define baud    115200
//#define MCUBAUD9600 1

#endif  

⌨️ 快捷键说明

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