Skip to content

Commit

Permalink
add: 实现luat_hmeta_chip函数
Browse files Browse the repository at this point in the history
  • Loading branch information
wendal committed Dec 5, 2024
1 parent 86b5604 commit d8f39af
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions project/luatos/src/luat_hmeta_ec7xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,30 @@ int luat_hmeta_hwversion(char* buff2) {
}
return -1;
}

int luat_hmeta_chip(char* buff) {
#ifdef TYPE_EC718UM
strcpy(buff, "EC718UM");
#elif defined(TYPE_EC718PM)
strcpy(buff, "EC718PM");
#elif defined(TYPE_EC718HM)
strcpy(buff, "EC718HM");
#elif defined(TYPE_EC718PM)
strcpy(buff, "EC718PM");
#elif defined(TYPE_EC718U)
strcpy(buff, "EC718U");
#elif defined(TYPE_EC718PV)
strcpy(buff, "EC718PV");
#elif defined(TYPE_EC718P)
strcpy(buff, "EC718P");
#elif defined(TYPE_EC718E)
strcpy(buff, "EC718E");
#elif defined(TYPE_EC718S)
strcpy(buff, "EC718S");
#elif defined(TYPE_EC716E)
strcpy(buff, "EC716E");
#elif defined(TYPE_EC716S)
strcpy(buff, "EC716S");
#endif
return 0;
}

0 comments on commit d8f39af

Please sign in to comment.