📄 config.h
字号:
//包含所需头文件
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ioavr.h>
#include <intrinsics.h>
/*------宏定义------*/
typedef signed char int8;
typedef unsigned char uint8;
typedef signed int int16;
typedef unsigned int uint16;
typedef signed long int32;
typedef unsigned long uint32;
#define BIT(x) (1<<(x))
#define NOP() asm("nop")
#define WDR() asm("wdr")
#ifndef TRUE
#define TRUE 1
#endif
#ifndef FALSE
#define FALSE 0
#endif
#ifndef F_CPU
#define F_CPU 7372800
#endif
#define UART_BAUD_RATE 115200
#define UBRR_VALUE ((F_CPU/16)/UART_BAUD_RATE-1)
#define FCLK_IO (F_CPU)
#define TIMER0_TICK 0.01
#define TIMER0_DATA (FCLK_IO*TIMER0_TICK/1024)
#include "board.h"
#include "debug.h"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -