固定数据很简单,在IAR里面只要这样定义就好了,主意地址
#pragma location = 0x01080
const u8 ARRAY[9+2][4+1]=
{
{1,19,30,125,0}, //M - R
{0,85,0,85,5}, //M - F
{0,19,30,125,0}, //M - L
{0,60,0,60,5}, //F - F
{0,185,0,185,5}, //S - F
{1,19,25,125,0}, //F - R
{0,77,10,255,0}, //S - L
{1,77,10,255,0}, //S - R
{0,19,25,125,0}, //F - L
{0,185,0,185,0}, //test data
{0,60,0,60,2}
}; |