1 /* 2 * Copyright (C) 2015-2020 Alibaba Group Holding Limited 3 */ 4 5 #ifndef AMP_BOOT_CMD_H 6 #define AMP_BOOT_CMD_H 7 8 enum { 9 AMP_BOOT_CMD_NULL, 10 AMP_BOOT_CMD_EXIT, 11 AMP_BOOT_CMD_QUERY_IMEI, 12 AMP_BOOT_CMD_QUERY_SEC, 13 AMP_BOOT_CMD_FLASH_SEC, 14 AMP_BOOT_CMD_FLASH_JS, 15 AMP_BOOT_CMD_FILE_TRANSFER, 16 AMP_BOOT_CMD_FLASH_KV, 17 AMP_BOOT_CMD_MAX, 18 AMP_BOOT_CMD_ERROR = 127, 19 }; 20 21 typedef struct { 22 char cmd_str[32]; 23 } py_boot_cmd_t; 24 25 int pyamp_boot_get_cmd(int timeout_ms); 26 void pyamp_boot_cmd_begin(int cmd); 27 void pyamp_boot_cmd_end(int cmd); 28 29 #endif