GCC AVR(Atmel Studio+ AVR Studio)如何将结构体数组定义在程序存储器(flash)空间并进行读操作一、定义结构体二、添加头文件三、使用关键字 PROGMEM const 定义结构体数组四、结构体数组的读取操作
一、定义结构体先添加#include <avr/io.h>。#include <avr/io.h>然后定义如下的结构体。 typedef struct tagFORMAT_SET_STRUCT { uint8_t Decimal; int16_t Min; int16_t Max; int16_t Default; } FORMAT_SET_STRUCT,*FORMAT_SET_STRUCT_PTR;二、添加