学前班
最后登录1970-1-1
在线时间 小时
注册时间2013-10-23
|
void SPI_FLASH_BufferWrite(u8* pBuffer, u32 WriteAddr, u16 NumByteToWrite)
{
u8 NumOfPage = 0, NumOfSingle = 0, Addr = 0, count = 0, temp = 0;
Addr = WriteAddr % SPI_FLASH_PageSize;
count = SPI_FLASH_PageSize - Addr;
NumOfPage = NumByteToWrite / SPI_FLASH_PageSize;
NumOfSingle = NumByteToWrite % SPI_FLASH_PageSize;
这个代码中Addr = WriteAddr % SPI_FLASH_PageSize;怎么理解啊,求余得到的是什么啊,谢谢
|
|