c - Atmel Studio 6.1 avr/io.h 错误没有这样的文件或目录

标签 c atmel

但它给出了类似 avr/io.h No such file or Directory 的错误

while (1) 
{
     //INIT USART
     UCSRB = 0x18;      //reciever enable , transmitter enable
     UCSRC = 0x86;      //8 bit , 1 stop bit ,
     UBRRH = 0;
     UBRRL = xtal/16/baud-1;
     while(1)
     {
         printf("Hello World");
     }
}

}

最佳答案

如果您在 AS6 中创建一个新项目,它已经实现了编译时没有任何错误的模板代码。

要么您删除了此代码并输入了错误的代码,其中 <avr/io.h丢失或您的安装已损坏。

制造

关于c - Atmel Studio 6.1 avr/io.h 错误没有这样的文件或目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19726460/

相关文章:

c - Atmel Cortex-M0+ SAMC21 在 SysTick_Config 之后挂起

c++ - 爱特梅尔/Arduino : ISR(TIMER0_OVF_vect) won't compile ("first defined" in __vector_16)

android - 连接安卓手机的usb主机设备必须是arduino吗?

c - 为 main 外部的结构元素赋值

c - 爱特梅尔微 Controller : difference between UBRR0H and UBRRnH

c++ - 有效地将 double 除以 2 的幂

python - 为什么我的 scanf 捕捉到我从 Popen 发出的命令

c++ - 空 While 循环 - Arduino

c - 如何读取文件中的数据,并将其传递给结构 ~> C

java - 尝试将 TCHAR 类型发送到接受字符串作为参数的 java 函数时,jvm 崩溃