diff options
Diffstat (limited to 'upload/upload.h')
-rw-r--r-- | upload/upload.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/upload/upload.h b/upload/upload.h new file mode 100644 index 0000000..9f4dd87 --- /dev/null +++ b/upload/upload.h @@ -0,0 +1,20 @@ +#ifndef MTK_UPLOAD_H +#define MTK_UPLOAD_H + +#define MTK7697_BAUD 115200 + +static const char* MTK_SERIAL_PORT_PATH = "/dev/ttyHS0"; + +typedef struct { + int serialPort; + int errorCount; + int cCount; + int retry; + int startTime; +} FlashState; + +bool mtk_verifyInitSequence(FlashState* s); + +void mtk_configureGpio(); + +#endif |