#define PAGE_SIZE 256u//页空间256Byte void WriteParamBlock(uint32_t pBlock,uint8_t *pData,uint16_t Len) { uint16_t j,temp; int num = (pBlock%PAGE_SIZE)+Len; num = num - PAGE_SIZE;//是否需要“跨”页写 if(num while(Len) { temp = PAGE_SIZE-(pBlock%PAGE_SIZE);//确定当页可写的数量,最大256字节 if(Len>=temp) { FlashSpiPageProgram(pBlock,pData,temp); pData += temp; Len -= temp; pBlock += temp; } else if(Len uint16_t j,temp; int num = (pBlock%PAGE_SIZE)+Len; num = num - PAGE_SIZE;//是否需要“跨”页读 if(num while(Len) { temp = PAGE_SIZE-(pBlock%PAGE_SIZE);//确定当页可读的数量,最大256字节 if(Len>=temp) { FlashSpiRead(pBlock,pData,temp);//将此页读取完 pData += temp; Len -= temp; pBlock += temp; } else if(Len |