2012-10-26 37 views

Trả lời

2

Có, có một ví dụ trên trang web Arduino. Nhưng tôi muốn làm cho bạn biết về một số compiler bug in GCC và công việc sau đây:

/** 
* Alternative to PROGMEM storage class 
* 
* Same effect as PROGMEM storage class, but avoiding erroneous warning by 
* GCC. 
* 
* \see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34734 
*/ 
#define PROGMEM_ __attribute__((section(".progmem.data"))) 
Các vấn đề liên quan