Kaynağa Gözat

1、添加YST钱总项目打包

liyuezong 1 yıl önce
ebeveyn
işleme
bcee75fe3c
3 değiştirilmiş dosya ile 32 ekleme ve 9 silme
  1. 15 3
      pro/config/cfg.h
  2. 12 4
      pro/src/dflt.c
  3. 5 2
      pub

+ 15 - 3
pro/config/cfg.h

@@ -25,12 +25,12 @@
 //#define PRJ_TEST_AC_I1_O1
 //#define PRJ_TEST_AC_I3_O1
 //#define PRJ_TEST_AC_I3_O3
-#define PRJ_ESOUTH_DC_I1_O4_RGB5
+//#define PRJ_ESOUTH_DC_I1_O4_RGB5
 
 //#define PRJ_IP_AC_I3_O3
 //#define PRJ_INST2302_DC_OLED
 //#define PRJ_INST2106_AC_I1_O1_OLED
-
+#define PRJ_YST_AC_I1_O1
 
 //#define PRJ_IP_AC_I3_O1
 //#define PRJ_IP_AC_I1_O1
@@ -56,7 +56,6 @@
     #define USE_WATCHDOG
 #endif
 
-//#define USE_CH_CTRL_CONFIG
 
 #if (defined PRJ_XIAN_AC_I1_O1_P4) || (defined PRJ_XIAN_AC_I1_O1_P8)  //GOM037
     #define LANGUAGE                            0           //chinese
@@ -300,6 +299,19 @@
 
     #define NEW_GPIO
 
+#elif defined PRJ_YST_AC_I1_O1
+    #define LANGUAGE                            0           //chinese
+    #define SMPLE_TIME                          30          //ms
+    #define SAVE_TIME                           60000       //ms
+    #define CASCADE_CNT                         0
+
+    #define PHASE_GROUP                         6
+    #define CHANNEL_DELAY                       6
+
+    #define PROD_POWER_TYPE                     0
+
+    #define USE_CH_CTRL_CONFIG
+
 #elif (defined PRJ_IP_AC_I3_O1)
     #define LANGUAGE                            0
     #define SMPLE_TIME                          30          //ms

+ 12 - 4
pro/src/dflt.c

@@ -74,7 +74,7 @@ GlobalDeviceInfo DFLT_PARAS={
          #else
             .nwire = 0,
         #endif
-        
+
             .ipv4   = 1,
             .ipv6   = 1,
 
@@ -118,8 +118,12 @@ GlobalDeviceInfo DFLT_PARAS={
         #endif
         },
 
-        .cell = {
-            .Cellular_enable=false,
+        .cell = {  
+        #ifdef USE_Cellular
+            .Cellular_enable = true,
+        #else
+            .Cellular_enable = false,
+        #endif
             .mode = 0,
             .apn  = "cmnet",
             .username = "",
@@ -127,7 +131,11 @@ GlobalDeviceInfo DFLT_PARAS={
         },
 
     .wifi = {
-        .WIFI_enable = false,
+         #ifdef USE_.WIFI
+            .WIFI_enable = true,
+        #else
+            .WIFI_enable = false,
+        #endif
         .mode = 0,
         .WIFI_ip = "",
         .WIFI_name = "",

+ 5 - 2
pub

@@ -1,4 +1,4 @@
-
+export PATH=$PATH:/home/tronlong/T113/T113-i_v1.0/out/t113_i/tlt113-evm-emmc/longan/buildroot/host/bin
 #PRJS="PRJ_XIAN_AC_I1_O1_P4"
 #PRJS="PRJ_XIAN_AC_I1_O1_P8"
 #PRJS="PRJ_ITK_AC_I1_O1"
@@ -21,9 +21,10 @@
 #PRJS="PRJ_TEST"
 #PRJS="PRJ_TEST_AC_I1_O1"
 #PRJS="PRJ_TEST_AC_I3_O1"
-PRJS="PRJ_TEST_AC_I3_O3"
+#PRJS="PRJ_TEST_AC_I3_O3"
 #PRJS="PRJ_INST2302_DC_OLED"
 #PRJS="PRJ_INST2106_AC_I1_O1_OLED"
+PRJS="PRJ_YST_AC_I1_O1"
 
 #PRJS="PRJ_USASL_AC_I3_O1 PRJ_USASL_AC_I3_O3"
 #PRJS="PRJ_XIAN_AC_I1_O1_P4 PRJ_XIAN_AC_I1_O1_P8"
@@ -147,6 +148,8 @@ function do_copy()
         name=ac_in3_out1_test
     elif [ "$1" = "PRJ_IP_AC_I3_O3" ];then
         name=ac_in3_out3_ip
+    elif [ "$1" = "PRJ_YST_AC_I1_O1" ];then
+        name=ac_in1_out1_YST
     elif [ "$1" = "PRJ_INST2302_DC_OLED" ];then
         name=dc_in_dc_out_oled
         rm -f $appdir/Qt_Test