但它给出了类似 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/