02.07.2013 Views

如何使用AVR-GCC

如何使用AVR-GCC

如何使用AVR-GCC

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

迫编译器及时更新所有的变量。<br />

更好的方法是将一个指针声明为 volatile,如下所示:<br />

volatile uint8_t *ptr;<br />

这样,一旦指针指向的变量发生变化,编译器就会重新加载最新的数值。

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!