summaryrefslogtreecommitdiff
path: root/flash/uart_boot/flash.h
blob: 9c69ad46a53679f7ad4cbadc81f7def4541fcf3c (plain)
1
2
3
4
5
6
7
8
9
10
#ifndef _FLASH_H
#define _FLASH_H

int ReadID(tUartHandle serial_handle, UINT32 base, UINT8* pManufacturerID, UINT8* pDeviceID);
int EraseSector(tUartHandle serial_handle, UINT32 address);
int EraseChip(tUartHandle serial_handle, UINT32 base);
int ProgramBytes(tUartHandle serial_handle, UINT32 address, UINT8* pData, UINT32 size);

#endif