程序开头应包含头文件 <avr/pgmspace.h> 其中定义了如下几种类型┌─────────┬─────┬────────────┐ㄧ Flash 中的类型名 ㄧ 长度/bit ㄧ 对应于SRAM中的类型名 ㄧ├─────────┼─────┼────────────┤ㄧ prog_char ㄧ 8 ㄧ uint8_t ㄧ├─────────┼─────┼────────────┤ㄧ prog_int ㄧ 16 ㄧ int16_t ㄧ├─────────┼─────┼────────────┤ㄧ prog_long ㄧ 32 ㄧ int32_t ㄧ├─────────┼─────┼────────────┤ㄧ prog_long_long ㄧ 64 ㄧ int64_t ㄧ└─────────┴─────┴────────────┘ 《AVR单片机与CPLD/FPGA综合应用入门》

评论