新闻中心

EEPW首页 > 嵌入式系统 > 设计应用 > AVR笔记2:定义F_CPU

AVR笔记2:定义F_CPU

作者: 时间:2016-11-27 来源:网络 收藏
1.warning:#warning"F_CPUnotdefinedfor"

2.warning: "F_CPU" redefined

本文引用地址:https://www.eepw.com.cn/article/201611/322364.htm

3.c:/winavr-20100110/lib/gcc/../../avr/include/util/delay.h:86:1: warning: this is the location of the previous definition

出现以上三种错误的解决办法是将#define F_CPU 1000000

放在在#include语句之前,如下:

#define F_CPU 1000000
#include
#include



关键词: AVR笔记F_CP

评论


技术专区

关闭