Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions FLASH_PROGRAM/F4 SERIES/FLASH_SECTOR_F4.c
Original file line number Diff line number Diff line change
Expand Up @@ -275,3 +275,11 @@ float Flash_Read_NUM (uint32_t StartSectorAddress)
value = Bytes2float(buffer);
return value;
}

void Convert_To_Byte (uint32_t *Data, int numberofbytes, uint8_t *Buf)
{
for (int i=0; i<numberofbytes; i++)
{
Buf[i] = Data[i/4]>>(8*(i%4));
}
}