我正在尝试从 arduino 转换为 avr-c。我收到错误消息 SREG
is undeclared。你知道什么是 SREG
吗?
最佳答案
SREG
是S状态Reg寄存器。它是 #define
在 AVR header 之一中,因此您可能缺少 #include
(可能是 avr/io.h
或avr/common.h
).
关于c - 在arduino中什么是SREG?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31253732/