summaryrefslogtreecommitdiff
path: root/upload/upload.h
blob: 9f4dd872bc191ab4b2d71a8a113435b08c7c1787 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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