sbi and cbi were macros in older versions of avr-gcc. You can include <compat/deprecated.h> to correct the problem, or change the code. Instead of
Code:
sbi(PORTx, i);
cbi(PORTx, i);
you would use
Code:
PORTx |= (1 << i);
PORTx &= ~(1 << i);
've moved up to the latest release of WinAVR. Unmodified my old code compiles as it did with the previous version. If I cause a header file to be changed, the compiler then reports a problem with fdevopen(). Firstly:
../main.c:211: warning: passing arg 1 of `fdevopen' from incompatible pointer type
../main.c:211: warning: passing arg 2 of `fdevopen' from incompatible pointer type
then it complains there are too many arguments.
Has something happened to fdevopen?
If I remove the 3rd argument (the "0") the error disappears.
If I then compile again with no further changes, it's all OK again.
Any ideas anyone?
TIA,
Rog.
The 3rd argument of fdevopen has been removed since a few avr-libc versions, it was unused anyway.
For backwards compatibility, you can compile with
-D__STDIO_FDEVOPEN_COMPAT_12
on the command-line.
没有合适的资源?快使用搜索试试~ 我知道了~
资源详情
资源评论
资源推荐
收起资源包目录
RGB LED.zip (75个子文件)
RGB LED
adc.lst 23KB
Int0.o 3KB
main.hex 13KB
RGB.o 5KB
KEY.H 114B
Lcd2002.o 9KB
Timer2.lst 913B
RGB.IMB 4KB
RGB.PR 8KB
Timer1.c 3KB
595driver.C 286B
sdelay.o 7KB
RGB.IMD 368B
Timer1.h 229B
main.c 7KB
Timer2.h 131B
Spi.lst 3KB
main.lst 50KB
Serial.lst 3KB
Timer.h 206B
main.elf 21KB
Spi.o 3KB
main.map 38KB
Lcd2002.lst 15KB
Timer.c 739B
main.eep 13B
.dep
Serial.o.d 78B
main.o.d 177B
Key.o.d 84B
Spi.o.d 84B
Lcd2002.o.d 116B
Int0.o.d 88B
Timer0.lst 5KB
KEY.C 382B
Timer2.o 5KB
sdelay.lst 24KB
RGB.PRI 50KB
RGB.PO 776B
Int0.c 1KB
RGB.IAB 4KB
SPI.H 136B
RGB.lst 2KB
595driver.h 123B
LCD2002.C 3KB
math.h 16KB
PORT.H 1KB
SERIAL.H 469B
Key.o 3KB
Sdelay.h 278B
LCD2002.H 423B
Timer2.c 85B
ADC.c 3KB
RGB.PS 42KB
adc.o 6KB
Timer0.o 5KB
Sdelay.c 2KB
main.h 1KB
Int0.h 308B
ADC.H 524B
RGB.WK3 53KB
Int0.lst 3KB
Timer0.h 128B
Makefile 17KB
Key.lst 3KB
main.sym 4KB
main.o 16KB
RGB.IAD 368B
main.lss 111KB
serial.c 1KB
Serial.o 3KB
SPI.C 431B
RGB.PFI 100B
Timer0.c 884B
modify.txt 1KB
Makefile.bak 11KB
共 75 条
- 1
alvarocfc
- 粉丝: 105
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0