This commit is contained in:
2021-09-10 13:50:26 +02:00
parent b8086dcd70
commit 5b3e5e8d16
3 changed files with 35 additions and 15 deletions

View File

@ -4,8 +4,7 @@
#include <stdio.h>
#include <sys/types.h>
#define TEMP_PROG_FILE_NAME "/var/tmp/tmp.pof"
#define TEMP_PROG_FILE_NAME "/var/tmp/tmp.rawbin"
void defineGPIOpins();
void FPGAdontTouchFlash();
@ -17,6 +16,7 @@ void resetFPGA();
* verify memory available to copy
* open file to copy
*/
int deleteOldFile(char *mess);
int preparetoCopyFPGAProgram(FILE **fd, uint64_t fsize, char *mess);
int copyToFlash(ssize_t fsize, char *clientChecksum, char *mess);
int getDrive(char *mess);