• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2021 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 #ifndef UPDATER_HDC_DEFINE_H
16 #define UPDATER_HDC_DEFINE_H
17 #include "common.h"
18 
19 namespace Hdc {
20 const string CMDSTR_UPDATE_SYSTEM = "update";
21 const string CMDSTR_FLASH_PARTITION = "flash";
22 const string CMDSTR_ERASE_PARTITION = "erase";
23 const string CMDSTR_FORMAT_PARTITION = "format";
24 
25 // update
26 const int CMD_UPDATER_UPDATE_INIT = CMD_APP_INIT + 200;
27 const int CMD_UPDATER_FLASH_INIT = CMD_UPDATER_UPDATE_INIT + 1;
28 const int CMD_UPDATER_CHECK = CMD_UPDATER_UPDATE_INIT + 2;
29 const int CMD_UPDATER_BEGIN = CMD_UPDATER_UPDATE_INIT + 3;
30 const int CMD_UPDATER_DATA = CMD_UPDATER_UPDATE_INIT + 4;
31 const int CMD_UPDATER_FINISH = CMD_UPDATER_UPDATE_INIT + 5;
32 const int CMD_UPDATER_ERASE = CMD_UPDATER_UPDATE_INIT + 6;
33 const int CMD_UPDATER_FORMAT = CMD_UPDATER_UPDATE_INIT + 7;
34 const int CMD_UPDATER_PROGRESS = CMD_UPDATER_UPDATE_INIT + 8;
35 
36 const int TASK_UPDATER = TASK_APP + 1;
37 }  // namespace Hdc
38 #endif  // UPDATER_HDC_DEFINE_H
39