c - 在arduino中什么是SREG?

标签 c arduino avr atmelstudio

我正在尝试从 arduino 转换为 avr-c。我收到错误消息 SREG is undeclared。你知道什么是 SREG 吗?

最佳答案

SREGS状态Reg寄存器。它是 #define 在 AVR header 之一中,因此您可能缺少 #include(可能是 avr/io.havr/common.h).

关于c - 在arduino中什么是SREG?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31253732/

相关文章:

c - AVR C 结合 ADC 读数生成 PWM 输出的问题

c - 这种转换如何在 C 中工作?

c - 我在哪里可以获得命令行参数?

c - C语言的noPoll Web套接字库总是连接失败

c++ - 了解 C/C++ 中用于输出参数的指针

arduino - 获取 MAC 地址 Xbee Arduino

c++ - 如何比较 C++ 中的内存位?

c - 使用时间溢出中断时出现故障

c - 有符号整数的未定义行为和 Apple 安全编码指南

c++ - Arduino-PROGMEM avr/pgmspace.h出现问题