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