Quellcode durchsuchen

add: hmeta,添加适配

Wendal Chen vor 3 Monaten
Ursprung
Commit
65741b1448
1 geänderte Dateien mit 27 neuen und 0 gelöschten Zeilen
  1. 27 0
      app/port/luat_hmeta_air101.c

+ 27 - 0
app/port/luat_hmeta_air101.c

@@ -0,0 +1,27 @@
+
+#include "luat_base.h"
+#include "luat_hmeta.h"
+
+int luat_hmeta_model_name(char* buff) {
+    #ifdef AIR101
+    strcpy(buff, "Air101");
+    #elif defined(AIR103)
+    strcpy(buff, "Air103");
+    #elif defined(AIR601)
+    strcpy(buff, "Air601");
+    #else
+    strcpy(buff, "XT806");
+    #endif
+    return 0;
+}
+// 获取硬件版本号, 例如A11, A14
+int luat_hmeta_hwversion(char* buff) {
+    strcpy(buff, "A10");
+    return 0;
+}
+
+// 获取芯片组型号, 原始型号, 传入的buff最少要8字节空间
+int luat_hmeta_chip(char* buff) {
+    strcpy(buff, "XT806");
+    return 0;
+}