添加硬件识别码 0x0D0A0113
This commit is contained in:
		| @@ -1205,6 +1205,7 @@ uint8_t iot_hardware_version_check_sg(uint32_t hw_version) | ||||
|     case HW_VERSION_3PS_SPG_DM_FLASH_EXT_V1: | ||||
|     case HW_VERSION_YP_3PS_DM_V1: | ||||
|     case HW_VERSION_YP_STA_DM_V1: | ||||
|     case HW_VERSION_STA_DM_V7: | ||||
|         return ERR_OK; | ||||
|     default: | ||||
|         return ERR_FAIL; | ||||
| @@ -1499,6 +1500,7 @@ bool_t iot_board_is_overseas_rf_band(void) | ||||
|         hw_version == HW_VERSION_STA_DM_V4 || | ||||
|         hw_version == HW_VERSION_CCO_DM_V3 || | ||||
|         hw_version == HW_VERSION_STA_DM_V5 || | ||||
|         hw_version == HW_VERSION_STA_DM_V7 || | ||||
|         hw_version == HW_VERSION_STA_3PS_DM_V4) { | ||||
|         return true; | ||||
|     } else { | ||||
|   | ||||
| @@ -321,6 +321,11 @@ extern "C" { | ||||
|  */ | ||||
| #define HW_VERSION_PV_STA_RSD_EI12_V1_0 0x600A0100 | ||||
|  | ||||
| /* dual mode sta version 7, for Indonesia oversea */ | ||||
| #define HW_VERSION_STA_DM_V7         0x0D0A0113  //13.10.1.19 | ||||
|  | ||||
|  | ||||
|  | ||||
| /* board id should not change and keep same as xxx_OEM.ini */ | ||||
| typedef enum board_id_t { | ||||
|     BOARD_WQRDCCO01 = 1, | ||||
|   | ||||
| @@ -240,60 +240,6 @@ ledc    #LEDC resource allocation | ||||
|     2   1   8   #IOT_PLC_NET_LED | ||||
|     ledout  38 | ||||
|  | ||||
| #==================== 13.40.01.11(HW_VERSION_STA_LOAD_V3) ==================# | ||||
| # overview | ||||
| # gpio  function            gpio    function            gpio    function | ||||
| #   11  nc                  10      nc                  9       nc | ||||
| #   42  nc                  43      nc                  39      pa_lic_ctr | ||||
| #   38  nc                  37      nc                  36      nc | ||||
| #   35  nc                  34      nc                  33      nc | ||||
| #   32  set                 31      charge_en           30      load_send | ||||
| #   29  sta_out             28      uart2_tx            46      nc | ||||
| #   45  nc                  44      nc                  47      nc | ||||
| #   48  nc                  49      nc                  27      multi | ||||
| #   1   tx_led              0       rx_led              3       pa_testp | ||||
| #   2   pa_rx_en            4       pa_tx_en            7       pa_lan_gain_ctr0 | ||||
| #   6   uart0_tx            5       uart0_rx            8       pa_lan_gain_ctr1 | ||||
| #   26  pa_lan_gain_ctr2    50      nc                  51      nc | ||||
| #   52  nc                  53      nc                  54      nc | ||||
| #   55  nc                  56      nc                  57      nc | ||||
| #   58  nc                  59      nc                  61      nc | ||||
| #   62  nc                  64      m_sta(adc_0)        65      adc_12v | ||||
| #   66  adc_3.3v            67      d_rst(soft reset)   68      zc_a_up | ||||
| #   69  event               12      nc | ||||
|  | ||||
| rc_hdr | ||||
|     hw_ver      0x0D28010B  #13.40.01.11 | ||||
|     mode        1 | ||||
|     d_hw_ver    0x00000000 | ||||
|  | ||||
| gpio    #GPIO resource allocation | ||||
| #  A:gpio number; | ||||
| #  B:belongs to the core; | ||||
| #  C:function (to see iot_board_api.h about gpio type) | ||||
| #   A   B   C | ||||
| #   bbcpu spi gpio, query by plc core | ||||
|     12  255 255 #GPIO_SPI_RF_CLK | ||||
|     11  255 255 #GPIO_SPI_RF_MOSI | ||||
|     10  255 255 #GPIO_SPI_RF_MISO | ||||
|     9   255 255 #GPIO_SPI_RF_CS | ||||
|  | ||||
|     34  255 255 #GPIO_RF_CLK | ||||
|  | ||||
|     30  1   82  #GPIO_TSFM_LOAD_TRIGGER | ||||
|  | ||||
|     27  1   127 #GPIO_MULTI_PULSE | ||||
|  | ||||
| pwm    #pwm resource allocation | ||||
| #  A:pwm channel; | ||||
| #  B:belongs to the core; | ||||
| #  C:function (to see iot_board_api.h about pwm type) | ||||
| #   A   B   C | ||||
| #   小负载流程中, | ||||
| #   获取GPIO30和PWM(PWM_CH_TYPE_TSFM_LOAD_CTRL)通道, | ||||
| #   然后软件主动绑定。 | ||||
|     1   1   3   #PWM_CH_TYPE_TSFM_LOAD_CTRL | ||||
|  | ||||
| #=============================== 13.10.01.12(HW_VERSION_STA_CKQ_DM_V1) ==============# | ||||
| # overview | ||||
| # gpio  function            gpio    function            gpio    function | ||||
| @@ -371,89 +317,7 @@ pwm    #pwm resource allocation | ||||
| #   然后软件主动绑定。 | ||||
|     1   1   3   #PWM_CH_TYPE_TSFM_LOAD_CTRL | ||||
|  | ||||
| #================== 13.10.2.13(HW_VERSION_STA_DM_V4) ================# | ||||
| # overview, for hx oversea | ||||
| # gpio  function            gpio    function            gpio    function | ||||
| #   11  rf_spi_di           10      rf_spi_do           9       rf_spi_cs | ||||
| #   42  rf_mclk             43      rf_fclk             39      pa_lic_ctr | ||||
| #   38  charge_en           37      nc                  36      nc | ||||
| #   35  nc                  34      rf_clk              33      nc | ||||
| #   32  nc                  31      nc                  30      nc | ||||
| #   29  nc                  28      uart2_tx            46      rf_agc_gain | ||||
| #   45  rf_enable           44      rf_txnrx            47      rf_dq0 | ||||
| #   48  rf_dq1              49      rf_dq2              27      nc | ||||
| #   1   tx/rx led           0       net_led             3       testp | ||||
| #   2   pa_rx_en            4       pa_tx_en            7       pa_lan_gain_ctr0 | ||||
| #   6   uart0_tx            5       uart0_rx            8       pa_lan_gain_ctr1 | ||||
| #   26  pa_lan_gain_ctr2    50      rf_dq3              51      rf_dq4 | ||||
| #   52  rf_dq5              53      rf_dq6              54      rf_dq7 | ||||
| #   55  rf_dq8              56      rf_dq9              57      rf_dq10 | ||||
| #   58  rf_dq11             59      rf_pd               61      rf_channel_sw(io) | ||||
| #   62  rf_channel_sw(io)   64      m_sta(adc_gnd)      65      adc_12v | ||||
| #   66  event               67      d_rst(soft reset)   68      zc_a | ||||
| #   69  adc_3.3v            12      rf_spi_clk | ||||
| rc_hdr | ||||
|     hw_ver      0x0D0A020D  #13.10.2.13 | ||||
|     mode        1 | ||||
|     d_hw_ver    0x00000000 | ||||
|  | ||||
| gpio | ||||
| #  A:gpio number; | ||||
| #  B:belongs to the core; | ||||
| #  C:function (to see iot_board_api.h about gpio type) | ||||
| #   A   B   C | ||||
|     31  255 255  #GPIO_NO_VALID | ||||
|     32  255 255  #GPIO_NO_VALID | ||||
|     29  255 255  #GPIO_NO_VALID | ||||
|     69  255 255  #GPIO_NO_VALID | ||||
|     66  1    0   #GPIO_PLC_EVENT | ||||
|     38  1    12  #GPIO_PM_CHARGE_EN | ||||
|  | ||||
| adc #ADC resource allocation | ||||
| #  A:adc channel; | ||||
| #  B:belongs to the core; | ||||
| #  C:function (to see iot_board_api.h about adc type) | ||||
| #   A   B   C | ||||
|     2   255   255 | ||||
|     5   1     1   #ADC_PM_3V   (Temporary annotation: Shielded supercapacitor) | ||||
|  | ||||
| #================== 13.10.2.14(HW_VERSION_STA_3PS_DM_V4) ================# | ||||
| # overview, for hx oversea | ||||
| # gpio  function            gpio    function            gpio    function | ||||
| #   11  rf_spi_di           10      rf_spi_do           9       rf_spi_cs | ||||
| #   42  rf_mclk             43      rf_fclk             39      pa_lic_ctr | ||||
| #   38  charge_en           37      nc                  36      nc | ||||
| #   35  nc                  34      rf_clk              33      nc | ||||
| #   32  nc                  31      nc                  30      nc | ||||
| #   29  nc                  28      uart2_tx            46      rf_agc_gain | ||||
| #   45  rf_enable           44      rf_txnrx            47      rf_dq0 | ||||
| #   48  rf_dq1              49      rf_dq2              27      nc | ||||
| #   1   tx/rx led           0       net_led             3       testp | ||||
| #   2   pa_rx_en            4       pa_tx_en            7       pa_lan_gain_ctr0 | ||||
| #   6   uart0_tx            5       uart0_rx            8       pa_lan_gain_ctr1 | ||||
| #   26  pa_lan_gain_ctr2    50      rf_dq3              51      rf_dq4 | ||||
| #   52  rf_dq5              53      rf_dq6              54      rf_dq7 | ||||
| #   55  rf_dq8              56      rf_dq9              57      rf_dq10 | ||||
| #   58  rf_dq11             59      rf_pd               61      rf_channel_sw(io) | ||||
| #   62  rf_channel_sw(io)   64      m_sta(adc_gnd)      65      adc_12v | ||||
| #   66  adc_3.3v            67      d_rst(soft reset)   68      zc_a | ||||
| #   69  event               12      rf_spi_clk | ||||
| rc_hdr | ||||
|     hw_ver      0x0D0A020E  #13.10.2.14 | ||||
|     mode        1 | ||||
|     d_hw_ver    0x00000000 | ||||
|  | ||||
| gpio | ||||
| #  A:gpio number; | ||||
| #  B:belongs to the core; | ||||
| #  C:function (to see iot_board_api.h about gpio type) | ||||
| #   A   B   C | ||||
|     31  255 255  #GPIO_NO_VALID | ||||
|     32  255 255  #GPIO_NO_VALID | ||||
|     29  255 255  #GPIO_NO_VALID | ||||
|     38  1    12  #GPIO_PM_CHARGE_EN | ||||
|  | ||||
| #================== 13.10.2.15(HW_VERSION_STA_DM_V5) ================# | ||||
| #================== 13.10.2.15(HW_VERSION_STA_3PS_DM_V5) ================# | ||||
| # overview, for hx oversea | ||||
| # gpio  function               gpio    function            gpio    function | ||||
| #   11  rf_spi_di              10      rf_spi_do           9       rf_spi_cs | ||||
| @@ -529,3 +393,641 @@ gpio | ||||
|     35  1   69  #GPIO_SPI_FLASH_CS | ||||
|  | ||||
|     27  1   127 #GPIO_MULTI_PULSE | ||||
|  | ||||
| #=============================== 13.10.02.18(HW_VERSION_STA_3PS_RF_DM_V1) ====================================# | ||||
| # overview, HZ3211RF v2, embedded rf and pa chip | ||||
| # gpio  function            gpio    function            gpio    function | ||||
| #   71  adc_12v             39      tx_led              38      rx_led | ||||
| #   37  flash_spi_miso      36      flash_spi_cs        35      flash_spi_clk | ||||
| #   34  flash_spi_mosi      33      nc                  32      nc | ||||
| #   31  set(sta)            28      event               46      agc_gain(RF) | ||||
| #   45  enable(RF)          44      txnrx(RF)           47      DIQ0 | ||||
| #   48  DIQ1                49      DIQ2                1       nc | ||||
| #   0   nc                  3       nc                  2       d_rst(soft reset) | ||||
| #   4   sta_out             7       uart2_tx(log)       6       uart0_tx | ||||
| #   5   uart0_rx            8       charge              26      zc_a | ||||
| #   73  nc                  72      nc                  67      rf_channel_sw1(io) | ||||
| #   68  rf_channel_sw2(io)  69      m_sta(adc_gnd)      70      adc_3.3v | ||||
|  | ||||
| rc_hdr | ||||
|     hw_ver      0x0D0A0212  #13.10.02.18   Hardware identification, HEX | ||||
|     mode        0 | ||||
|     d_hw_ver    0xffffffff | ||||
|  | ||||
| gpio    #GPIO resource allocation | ||||
| #  A:gpio number; | ||||
| #  B:belongs to the core; | ||||
| #  C:function (to see iot_board_api.h about gpio type) | ||||
| #   A   B   C | ||||
|     #RF SPI (chip internal bus) | ||||
|     9   1   107 #GPIO_SPI_RF_CLK | ||||
|     10  1   110 #GPIO_SPI_RF_MOSI | ||||
|     11  1   109 #GPIO_SPI_RF_MISO | ||||
|     12  1   108 #GPIO_SPI_RF_CS | ||||
|  | ||||
|     31  1   17  #GPIO_GOLDEN_SET | ||||
|     5   1   24  #GPIO_GOLDEN_RXD0 | ||||
|     6   1   34  #GPIO_GOLDEN_TXD0 | ||||
|     4   1   1   #GPIO_STA_OUT | ||||
|     28  1   0   #GPIO_PLC_EVENT | ||||
|     8   1   12  #GPIO_PM_CHARGE_EN | ||||
|     26  1   18  #GPIO_PA_ZC | ||||
|     2   1   13  #GPIO_RST_CTRL | ||||
|  | ||||
|     35  1   68  #GPIO_SPI_FLASH_CLK | ||||
|     34  1   70  #GPIO_SPI_FLASH_MOSI | ||||
|     37  1   71  #GPIO_SPI_FLASH_MISO | ||||
|     36  1   69  #GPIO_SPI_FLASH_CS | ||||
|  | ||||
| uart    #UART resource allocation | ||||
| #  A:uart number; | ||||
| #  B:belongs to the core; | ||||
| #  C:function (to see iot_uart_api.h about uart type) | ||||
| #   A   B   C | ||||
|     2   1   0   #UART_PRINT | ||||
|     tx  7       #gpio number corresponding to uart TX signal | ||||
|  | ||||
|     0   1   2   #UART_METER_PORT | ||||
|     tx  6       #gpio number corresponding to uart TX signal | ||||
|     rx  5       #gpio number corresponding to uart RX signal | ||||
|  | ||||
|     5   1   1   #UART_CLI_PORT | ||||
|  | ||||
| #spi     #SPI resource allocation, controlled by gpio resource now. | ||||
| #  A:spi number; | ||||
| #  B:belongs to the core; | ||||
| #  C:function | ||||
| #   A   B   C | ||||
| #   bbcpu use spi1 to connect external rf chip, fixed value used now. | ||||
| #   1   2   0   #SPI_PORT_TYPE_PYH_RF | ||||
| #   cs  12 | ||||
| #   clk 9 | ||||
| #   miso 11 | ||||
| #   mosi 10 | ||||
|  | ||||
| ledc    #LEDC resource allocation | ||||
| #  A:ledc channel; | ||||
| #  B:belongs to the core; | ||||
| #  C:function | ||||
| #  ledout:The GPIO number corresponding to the output signal of LEDC | ||||
| #         (LEDC has only one signal, so it is unified ledOUT) | ||||
| #   A   B   C | ||||
|     0   1   0   #IOT_PLC_TX_LED | ||||
|     ledout  39 | ||||
|  | ||||
|     1   1   1   #IOT_PLC_RX_LED | ||||
|     ledout  38 | ||||
|  | ||||
| adc #ADC resource allocation | ||||
| #  A:adc channel; | ||||
| #  B:belongs to the core; | ||||
| #  C:function (to see iot_board_api.h about adc type) | ||||
| #   A   B   C | ||||
|     5   1   2   #ADC_PM_GND | ||||
|     9   1   0   #ADC_PM_12V, ADC_CHANNEL7's value is 9 | ||||
|     8   1   1   #ADC_PM_3V, ADC_CHANNEL6's value is 8 | ||||
|  | ||||
| #zc  # (PARTICULAR RESOURCE) Chip level zero crossing detection resource | ||||
| #      allocation, controlled by gpio resource now. | ||||
| # up_0: Zero-crossing detection rising edge input channel 0, | ||||
| #       which corresponds to phase A rising edge zero-crossing | ||||
| #       circuit by default | ||||
| #   up_0    0 | ||||
|  | ||||
| pa  # (PARTICULAR RESOURCE) | ||||
| #  A:PA function name; | ||||
| #  B:PA gpio number; | ||||
| #   A       B | ||||
|     rx_en_0 80  #enlic_pad_0. Phase A Enable receiving | ||||
|     tx_en_0 81  #enlic_pad_1. Phase A Enable sending | ||||
|     gain_0  82  #glna_pad_0. Phase A gain control | ||||
|     gain_1  83  #glna_pad_1. Phase B gain control | ||||
|     gain_2  84  #glna_pad_2. Phase C gain control | ||||
|  | ||||
| #===================== 13.10.02.19(HW_VERSION_STA_GU_DM_V1) =====================# | ||||
| # overview | ||||
| # gpio  function            gpio    function            gpio    function | ||||
| #   11  rf_spi_di           10      rf_spi_do           9       rf_spi_cs | ||||
| #   42  rf_mclk             43      rf_fclk             32      set(sta) | ||||
| #   31  charge_en           29      sta_out             28      uart2_tx | ||||
| #   46  rf_agc_gain         45      rf_enable           44      rf_txnrx | ||||
| #   47  rf_dq0              48      rf_dq1              49      rf_dq2 | ||||
| #   1   tx_led              0       rx_led              3       pa_testp(warning) | ||||
| #   2   pa_rx_en            4       pa_tx_en            7       pa_lan_gain_ctr0 | ||||
| #   6   uart0_tx            5       uart0_rx            8       pa_lan_gain_ctr1 | ||||
| #   26  pa_lan_gain_ctr2    50      rf_dq3              51      rf_dq4 | ||||
| #   52  rf_dq5              53      rf_dq6              54      rf_dq7 | ||||
| #   55  rf_dq8              56      rf_dq9              57      rf_dq10 | ||||
| #   58  rf_dq11             59      rf_pd               61      rf_channel_sw(io) | ||||
| #   62  rf_channel_sw(io)   64      m_sta(adc_gnd)      65      adc_12v | ||||
| #   66  adc_3.3v            67      d_rst(soft reset)   68      zc_a | ||||
| #   69  event               12      rf_spi_clk          39      pa_lic_ctr | ||||
| #   34  rf_clk | ||||
|  | ||||
| rc_hdr | ||||
|     hw_ver      0x0D0A0213  #13.10.02.19   Hardware identification, HEX | ||||
|     mode        1 | ||||
|     d_hw_ver    0x00000000 | ||||
|  | ||||
| #=============================== 13.10.01.11(HW_VERSION_BSRM_DM_V2) ===============================# | ||||
| # overview, HZ3201 board | ||||
| # gpio  function            gpio    function            gpio    function | ||||
| #   11  rf_spi_mosi         10      rf_spi_miso         9       rf_spi_cs | ||||
| #   42  rf_mclk             43      rf_fclk             39      zc_a | ||||
| #   38  uart1_tx            37      uart1_rx            36      pwr_det | ||||
| #   35  event               34      rf_clk              33      nc | ||||
| #   32  nc                  31      nc                  30      nc | ||||
| #   29  nc                  28      uart2_tx            46      rf_agc_gain | ||||
| #   45  rf_enable           44      rf_txnrx            47      rf_dq0 | ||||
| #   48  rf_dq1              49      rf_dq2              1       tx_led | ||||
| #   0   rx_led              3       pa_testp(warning)   2       pa_a_rx_en | ||||
| #   4   pa_a_tx_en          7       pa_lan_gain_ctr0    6       uart0_tx | ||||
| #   5   uart0_rx            8       pa_lan_gain_ctr1    26      pa_lan_gain_ctr2 | ||||
| #   50  rf_dq3              51      rf_dq4              52      rf_dq5 | ||||
| #   53  rf_dq6              54      rf_dq7              55      rf_dq8 | ||||
| #   56  rf_dq9              57      rf_dq10             58      rf_dq11 | ||||
| #   59  rf_pd               61      pa_lic_ctr          62      rf_channel_sw2 | ||||
| #   64  adc0_a+             65      adc1_a-             66      adc2_b+ | ||||
| #   67  adc3_b-             68      adc4_c+             69      adc5_c- | ||||
| #   12  rf_spi_clk | ||||
|  | ||||
| rc_hdr | ||||
|     hw_ver      0x0D0A010B  #13.10.01.11   Hardware identification, HEX | ||||
|     mode        0 | ||||
|     d_hw_ver    0xffffffff | ||||
|  | ||||
| gpio    #GPIO resource allocation | ||||
| #  A:gpio number; | ||||
| #  B:belongs to the core; | ||||
| #  C:function(to see iot_board_api.h about gpio type) | ||||
| #   A   B   C | ||||
| #   bbcpu spi gpio, query by plc core | ||||
|     9   1   108 #GPIO_SPI_RF_CS | ||||
|     11  1   110 #GPIO_SPI_RF_MOSI | ||||
|     10  1   109 #GPIO_SPI_RF_MISO | ||||
|     12  1   107 #GPIO_SPI_RF_CLK | ||||
|  | ||||
|     39  1   18  #GPIO_PA_ZC | ||||
|     36  1   123 #GPIO_P12V_DETECTION | ||||
|     35  1   0   #GPIO_PLC_EVENT | ||||
|     34  1   121 #GPIO_RF_CLK | ||||
|     61  1   120 #GPIO_LIC_CTRL | ||||
|  | ||||
|     3   1   10  #GPIO_GEODE_OVT | ||||
|  | ||||
| uart    #UART resource allocation | ||||
| #  A:uart number; | ||||
| #  B:belongs to the core; | ||||
| #  C:function (to see iot_uart_api.h about uart type) | ||||
| #   A   B   C | ||||
|     2   1   0   #UART_PRINT | ||||
|     tx  28 | ||||
|  | ||||
|     1   1   2   #UART_METER_PORT | ||||
|     tx  38 | ||||
|     rx  37 | ||||
|  | ||||
|     5   1   1   #UART_CLI_PORT | ||||
|  | ||||
| #spi     #SPI resource allocation, controlled by gpio resource now. | ||||
| #  A:spi number; | ||||
| #  B:belongs to the core; | ||||
| #  C:function | ||||
| #   A   B   C | ||||
| #   bbcpu use spi1 to connect external rf chip, fixed value used now. | ||||
| #   1   2   0   #SPI_PORT_TYPE_PYH_RF | ||||
| #   cs  9 | ||||
| #   clk 12 | ||||
| #   miso 10 | ||||
| #   mosi 11 | ||||
|  | ||||
| ledc    #LEDC resource allocation | ||||
| #  A:ledc channel; | ||||
| #  B:belongs to the core; | ||||
| #  C:function | ||||
| #   A   B   C | ||||
|     0   1   0   #IOT_PLC_TX_LED | ||||
|     ledout  1 | ||||
|  | ||||
|     1   1   1   #IOT_PLC_RX_LED | ||||
|     ledout  0 | ||||
|  | ||||
| adc #ADC resource allocation | ||||
| #  A:adc channel; | ||||
| #  B:belongs to the core; | ||||
| #  C:function (to see iot_board_api.h about adc type) | ||||
| #   A   B   C | ||||
|  | ||||
| #zc  # (PARTICULAR RESOURCE) Chip level zero crossing detection resource | ||||
| #      allocation, controlled by gpio resource now. | ||||
| # up_0: Zero-crossing detection rising edge input channel 0, | ||||
| #       which corresponds to phase A rising edge zero-crossing | ||||
| #       circuit by default | ||||
| #   up_0    39 | ||||
|  | ||||
| pa  # (PARTICULAR RESOURCE) | ||||
|     rx_en_0 2   #Phase A Enable receiving | ||||
|     tx_en_0 4   #Phase A Enable sending | ||||
|     gain_0  7   #Phase A gain control | ||||
|     gain_1  8   #Phase B gain control | ||||
|     gain_2  26  #Phase C gain control | ||||
|  | ||||
| #===================== 13.10.01.15(HW_VERSION_STA_CKQ_DM_V2) =====================# | ||||
| # overview | ||||
| # gpio  function              gpio    function            gpio    function | ||||
| #   11  rf_spi_di             10      rf_spi_do           9       rf_spi_cs | ||||
| #   42  rf_mclk               43      rf_fclk             39      pa_lic_ctr | ||||
| #   38  nc                    37      csd                 36      nc | ||||
| #   35  nc                    34      rf_clk              33      nc | ||||
| #   32  set(sta)              31      nc                  30      nc | ||||
| #   29  sta_out               28      uart2_tx            46      rf_agc_gain | ||||
| #   45  rf_enable             44      rf_txnrx            47      rf_dq0 | ||||
| #   48  rf_dq1                49      rf_dq2              27      nc | ||||
| #   1   tx_led                0       rx_led              3       pa_testp(warning) | ||||
| #   2   pa_rx_en              4       pa_tx_en            7       pa_lan_gain_ctr0 | ||||
| #   6   uart0_tx              5       uart0_rx            8       pa_lan_gain_ctr1 | ||||
| #   26  pa_lan_gain_ctr2      50      rf_dq3              51      rf_dq4 | ||||
| #   52  rf_dq5                53      rf_dq6              54      rf_dq7 | ||||
| #   55  rf_dq8                56      rf_dq9              57      rf_dq10 | ||||
| #   58  rf_dq11               59      rf_pd               61      rf_channel_sw_cps(io) | ||||
| #   62  rf_channel_sw_ctx(io) 64      m_sta(adc_gnd)      65      adc_12v | ||||
| #   66  nc                    67      d_rst(soft reset)   68      zc_a | ||||
| #   69  event                 12      rf_spi_clk | ||||
|  | ||||
| rc_hdr | ||||
|     hw_ver      0x0D0A010F  #13.10.0.15   Hardware identification, HEX | ||||
|     mode        1 | ||||
|     d_hw_ver    0x00000000 | ||||
|  | ||||
| gpio    #GPIO resource allocation | ||||
| #  A:gpio number; | ||||
| #  B:belongs to the core; | ||||
| #  C:function (to see iot_board_api.h about gpio type) | ||||
| #   A   B   C | ||||
|     31  255 255  #GPIO_NO_VALID | ||||
|     37  1   133  #GPIO_RF_PA_CSD | ||||
|     62  1   134  #GPIO_RF_PA_CTX | ||||
|  | ||||
| adc #ADC resource allocation | ||||
| #  A:adc channel; | ||||
| #  B:belongs to the core; | ||||
| #  C:function (to see iot_board_api.h about adc type) | ||||
| #   A   B   C | ||||
|     2   255   255 | ||||
|  | ||||
| #===================== 13.10.02.22(HW_VERSION_STA_3PS_DM_V6) =====================# | ||||
| # overview | ||||
| # gpio  function              gpio    function            gpio    function | ||||
| #   11  rf_spi_di             10      rf_spi_do           9       rf_spi_cs | ||||
| #   42  rf_mclk               43      rf_fclk             39      pa_lic_ctr | ||||
| #   38  nc                    37      csd                 36      nc | ||||
| #   35  nc                    34      rf_clk              33      nc | ||||
| #   32  gpio_12v_det          31      nc                  30      nc | ||||
| #   29  pwr_led               28      uart2_tx            46      rf_agc_gain | ||||
| #   45  rf_enable             44      rf_txnrx            47      rf_dq0 | ||||
| #   48  rf_dq1                49      rf_dq2              27      nc | ||||
| #   1   tx_led                0       rx_led              3       pa_testp(warning) | ||||
| #   2   pa_rx_en              4       pa_tx_en            7       pa_lan_gain_ctr0 | ||||
| #   6   uart0_tx              5       uart0_rx            8       pa_lan_gain_ctr1 | ||||
| #   26  pa_lan_gain_ctr2      50      rf_dq3              51      rf_dq4 | ||||
| #   52  rf_dq5                53      rf_dq6              54      rf_dq7 | ||||
| #   55  rf_dq8                56      rf_dq9              57      rf_dq10 | ||||
| #   58  rf_dq11               59      rf_pd               61      rf_channel_sw_cps(io) | ||||
| #   62  rf_channel_sw_ctx(io) 64      m_sta(adc_gnd)      65      adc_12v | ||||
| #   66  nc                    67      nc                  68      zc_a | ||||
| #   69  nc                    12      rf_spi_clk | ||||
|  | ||||
| rc_hdr | ||||
|     hw_ver      0x0D0A0216  #13.10.02.22   Hardware identification, HEX | ||||
|     mode        1 | ||||
|     d_hw_ver    0x00000000 | ||||
|  | ||||
| gpio    #GPIO resource allocation | ||||
| #  A:gpio number; | ||||
| #  B:belongs to the core; | ||||
| #  C:function (to see iot_board_api.h about gpio type) | ||||
| #   A   B   C | ||||
|     29  255 255  #GPIO_NO_VALID | ||||
|     31  255 255  #GPIO_NO_VALID | ||||
|     32  1   123  #GPIO_P12V_DETECTION | ||||
|     37  1   133  #GPIO_RF_PA_CSD | ||||
|     62  1   134  #GPIO_RF_PA_CTX | ||||
|     67  255 255  #GPIO_NO_VALID | ||||
|     69  255 255  #GPIO_NO_VALID | ||||
|  | ||||
| adc #ADC resource allocation | ||||
| #  A:adc channel; | ||||
| #  B:belongs to the core; | ||||
| #  C:function (to see iot_board_api.h about adc type) | ||||
| #   A   B   C | ||||
|     1   255 255 | ||||
|     2   255 255 | ||||
|  | ||||
| ledc    #LEDC resource allocation | ||||
| #  A:ledc channel; | ||||
| #  B:belongs to the core; | ||||
| #  C:function | ||||
| #  ledout:The GPIO number corresponding to the output signal of LEDC | ||||
| #         (LEDC has only one signal, so it is unified ledOUT) | ||||
| #   A   B   C | ||||
|     2   1   8   #IOT_PLC_NET_LED | ||||
|     ledout  29 | ||||
|  | ||||
| #================== 13.10.01.16(HW_VERSION_STA_3PS_SPG_DM_FLASH_EXT_V2) ================# | ||||
| # overview | ||||
| # add:38 37 36 35 flash spi | ||||
| # remove:32 set(sta),29 sta_out | ||||
| # gpio  function                gpio    function            gpio    function | ||||
| #   11  rf_spi_di               10      rf_spi_do           9       rf_spi_cs | ||||
| #   42  rf_mclk                 43      rf_fclk             39      pa_lic_ctr | ||||
| #   38  flash_spi_clk           37      flash_spi_mosi      36      flash_spi_miso | ||||
| #   35  flash_spi_cs            34      rf_clk              33      nc | ||||
| #   32  nc                      31      charge_en           30      nc | ||||
| #   29  nc                      28      uart2_tx            46      rf_agc_gain | ||||
| #   45  rf_enable               44      rf_txnrx            47      rf_dq0 | ||||
| #   48  rf_dq1                  49      rf_dq2              27      nc | ||||
| #   1   tx_led                  0       rx_led              3       pa_testp(warning) | ||||
| #   2   pa_rx_en                4       pa_tx_en            7       pa_lan_gain_ctr0 | ||||
| #   6   uart0_tx                5       uart0_rx            8       pa_lan_gain_ctr1 | ||||
| #   26  pa_lan_gain_ctr2        50      rf_dq3              51      rf_dq4 | ||||
| #   52  rf_dq5                  53      rf_dq6              54      rf_dq7 | ||||
| #   55  rf_dq8                  56      rf_dq9              57      rf_dq10 | ||||
| #   58  rf_dq11                 59      rf_pd               61      rf_channel_sw(io) | ||||
| #   62  rf_channel_sw(io)       64      m_sta(adc_gnd)      65      adc_12v | ||||
| #   66  adc_3.3v                67      d_rst(soft reset)   68      zc_a | ||||
| #   69  event                   12      rf_spi_clk | ||||
| rc_hdr | ||||
|     hw_ver      0x0D0A0110  #13.10.01.16 | ||||
|     mode        1 | ||||
|     d_hw_ver    0x00000000 | ||||
|  | ||||
| gpio | ||||
| #  A:gpio number; | ||||
| #  B:belongs to the core; | ||||
| #  C:function (to see iot_board_api.h about gpio type) | ||||
| #   A   B   C | ||||
|     38  1   68  #GPIO_SPI_FLASH_CLK | ||||
|     37  1   70  #GPIO_SPI_FLASH_MOSI | ||||
|     36  1   71  #GPIO_SPI_FLASH_MISO | ||||
|     35  1   69  #GPIO_SPI_FLASH_CS | ||||
|  | ||||
|     32  255 255 #GPIO_NO_VALID | ||||
|     29  255 255 #GPIO_NO_VALID | ||||
|  | ||||
| #============ 13.10.01.17(HW_VERSION_STA_3PS_SPG_DM_FLASH_EXT_V3) ===========# | ||||
| # overview | ||||
| # add:38 37 36 35 flash spi,30 load_send | ||||
| # remove:32 set(sta),29 sta_out | ||||
| # gpio  function                gpio    function            gpio    function | ||||
| #   11  rf_spi_di               10      rf_spi_do           9       rf_spi_cs | ||||
| #   42  rf_mclk                 43      rf_fclk             39      pa_lic_ctr | ||||
| #   38  flash_spi_clk           37      flash_spi_mosi      36      flash_spi_miso | ||||
| #   35  flash_spi_cs            34      rf_clk              33      nc | ||||
| #   32  nc                      31      charge_en           30      load_send | ||||
| #   29  nc                      28      uart2_tx            46      rf_agc_gain | ||||
| #   45  rf_enable               44      rf_txnrx            47      rf_dq0 | ||||
| #   48  rf_dq1                  49      rf_dq2              27      nc | ||||
| #   1   tx_led                  0       rx_led              3       pa_testp(warning) | ||||
| #   2   pa_rx_en                4       pa_tx_en            7       pa_lan_gain_ctr0 | ||||
| #   6   uart0_tx                5       uart0_rx            8       pa_lan_gain_ctr1 | ||||
| #   26  pa_lan_gain_ctr2        50      rf_dq3              51      rf_dq4 | ||||
| #   52  rf_dq5                  53      rf_dq6              54      rf_dq7 | ||||
| #   55  rf_dq8                  56      rf_dq9              57      rf_dq10 | ||||
| #   58  rf_dq11                 59      rf_pd               61      rf_channel_sw(io) | ||||
| #   62  rf_channel_sw(io)       64      m_sta(adc_gnd)      65      adc_12v | ||||
| #   66  adc_3.3v                67      d_rst(soft reset)   68      zc_a | ||||
| #   69  event                   12      rf_spi_clk | ||||
| rc_hdr | ||||
|     hw_ver      0x0D0A0111  #13.10.01.17 | ||||
|     mode        1 | ||||
|     d_hw_ver    0x0D0A0110 | ||||
|  | ||||
| gpio | ||||
| #  A:gpio number; | ||||
| #  B:belongs to the core; | ||||
| #  C:function (to see iot_board_api.h about gpio type) | ||||
| #   A   B   C | ||||
|     30  1   82  #GPIO_TSFM_LOAD_TRIGGER | ||||
|  | ||||
| pwm    #pwm resource allocation | ||||
| #  A:pwm channel; | ||||
| #  B:belongs to the core; | ||||
| #  C:function (to see iot_board_api.h about pwm type) | ||||
| #   A   B   C | ||||
| #   小负载流程中, | ||||
| #   获取GPIO30和PWM(PWM_CH_TYPE_TSFM_LOAD_CTRL)通道, | ||||
| #   然后软件主动绑定。 | ||||
|     1   1   3   #PWM_CH_TYPE_TSFM_LOAD_CTRL | ||||
|  | ||||
| #================= 13.10.01.18(HW_VERSION_STA_3PS_SPG_DM_FLASH_EXT_V4) ================# | ||||
| # overview | ||||
| # add: 27 multi, 38 37 36 35 flash spi, 30 load_send | ||||
| # gpio  function                gpio    function            gpio    function | ||||
| #   11  rf_spi_di               10      rf_spi_do           9       rf_spi_cs | ||||
| #   42  rf_mclk                 43      rf_fclk             39      pa_lic_ctr | ||||
| #   38  flash_spi_clk           37      flash_spi_mosi      36      flash_spi_miso | ||||
| #   35  flash_spi_cs            34      rf_clk              33      nc | ||||
| #   32  set(sta)                31      charge_en           30      load_send | ||||
| #   29  sta_out                 28      uart2_tx            46      rf_agc_gain | ||||
| #   45  rf_enable               44      rf_txnrx            47      rf_dq0 | ||||
| #   48  rf_dq1                  49      rf_dq2              27      multi | ||||
| #   1   tx_led                  0       rx_led              3       pa_testp(warning) | ||||
| #   2   pa_rx_en                4       pa_tx_en            7       pa_lan_gain_ctr0 | ||||
| #   6   uart0_tx                5       uart0_rx            8       pa_lan_gain_ctr1 | ||||
| #   26  pa_lan_gain_ctr2        50      rf_dq3              51      rf_dq4 | ||||
| #   52  rf_dq5                  53      rf_dq6              54      rf_dq7 | ||||
| #   55  rf_dq8                  56      rf_dq9              57      rf_dq10 | ||||
| #   58  rf_dq11                 59      rf_pd               61      rf_channel_sw(io) | ||||
| #   62  rf_channel_sw(io)       64      m_sta(adc_gnd)      65      adc_12v | ||||
| #   66  adc_3.3v                67      d_rst(soft reset)   68      zc_a | ||||
| #   69  event                   12      rf_spi_clk | ||||
| rc_hdr | ||||
|     hw_ver      0x0D0A0112  #13.10.01.18 | ||||
|     mode        1 | ||||
|     d_hw_ver    0x0D0A010D | ||||
|  | ||||
| gpio | ||||
| #  A:gpio number; | ||||
| #  B:belongs to the core; | ||||
| #  C:function (to see iot_board_api.h about gpio type) | ||||
| #   A   B   C | ||||
|     30  1   82  #GPIO_TSFM_LOAD_TRIGGER | ||||
|  | ||||
| pwm    #pwm resource allocation | ||||
| #  A:pwm channel; | ||||
| #  B:belongs to the core; | ||||
| #  C:function (to see iot_board_api.h about pwm type) | ||||
| #   A   B   C | ||||
| #   小负载流程中, | ||||
| #   获取GPIO30和PWM(PWM_CH_TYPE_TSFM_LOAD_CTRL)通道, | ||||
| #   然后软件主动绑定。 | ||||
|     1   1   3   #PWM_CH_TYPE_TSFM_LOAD_CTRL | ||||
|  | ||||
| #================= 13.10.02.23(HW_VERSION_STA_3PS_RF_DM_LOAD_V1) =================# | ||||
| # overview, HZ3211RF v2, embedded rf and pa chip | ||||
| # gpio  function            gpio  function            gpio  function | ||||
| #   71  adc_12v             39    tx_led              38    rx_led | ||||
| #   37  flash_spi_miso      36    flash_spi_cs        35    flash_spi_clk | ||||
| #   34  flash_spi_mosi      33    nc                  32    multi | ||||
| #   31  rxd1                28    event               46    agc_gain(RF) | ||||
| #   45  enable(RF)          44    txnrx(RF)           47    nc | ||||
| #   48  nc                  49    DIQ2                1     nc | ||||
| #   0   nc                  3     load_send           2     d_rst(soft reset) | ||||
| #   4   txd1                7     uart2_tx(log)       6     uart0_tx | ||||
| #   5   uart0_rx            8     charge              26    zc_c | ||||
| #   73  nc                  72    nc                  67    rf_channel_sw1(io) | ||||
| #   68  rf_channel_sw2(io)  69    m_sta(adc_gnd)      70    adc_3.3v | ||||
| rc_hdr | ||||
|     hw_ver      0x0D0A0217  #13.10.02.23   Hardware identification, HEX | ||||
|     mode        1 | ||||
|     d_hw_ver    0x0D0A0212 | ||||
|  | ||||
| gpio    #GPIO resource allocation | ||||
| #  A:gpio number; | ||||
| #  B:belongs to the core; | ||||
| #  C:function (to see iot_board_api.h about gpio type) | ||||
| #   A   B   C | ||||
|     3   1   82  #GPIO_TSFM_LOAD_TRIGGER | ||||
|     32  1   127 #GPIO_MULTI_PULSE | ||||
|  | ||||
| pwm    #pwm resource allocation | ||||
| #  A:pwm channel; | ||||
| #  B:belongs to the core; | ||||
| #  C:function (to see iot_board_api.h about pwm type) | ||||
| #   A   B   C | ||||
| #   小负载流程中, | ||||
| #   获取GPIO3和PWM(PWM_CH_TYPE_TSFM_LOAD_CTRL)通道, | ||||
| #   然后软件主动绑定。 | ||||
|     1   1   3   #PWM_CH_TYPE_TSFM_LOAD_CTRL | ||||
|  | ||||
| uart    #UART resource allocation | ||||
| #  A:uart number; | ||||
| #  B:belongs to the core; | ||||
| #  C:function (to see iot_uart_api.h about uart type) | ||||
| #   A   B   C | ||||
|     1   1   17   #UART_METER_PORT_2 | ||||
|     tx  4 | ||||
|     rx  31 | ||||
|  | ||||
|  | ||||
|  | ||||
| #=============================== default rc====================================# | ||||
| # overview | ||||
| # gpio  function                gpio    function            gpio    function | ||||
| #   11  rf_spi_di               10      rf_spi_do           9       rf_spi_cs | ||||
| #   42  rf_mclk                 43      rf_fclk             39      pa_lic_ctr | ||||
| #   38  att_spi_clk             37      att_spi_mosi        36      att_spi_miso | ||||
| #   35  att_spi_cs              34      rf_clk              33      nc | ||||
| #   32  csd                     31      charge_en           30      att_nrst | ||||
| #   29  nc                      28      uart2_tx            46      rf_agc_gain | ||||
| #   45  rf_enable               44      rf_txnrx            47      rf_dq0 | ||||
| #   48  rf_dq1                  49      rf_dq2              27      nc | ||||
| #   1   tx_led                  0       rx_led              3       pa_testp(warning) | ||||
| #   2   pa_rx_en                4       pa_tx_en            7       pa_lna_gain_ctr0 | ||||
| #   6   uart0_tx                5       uart0_rx            8       pa_lna_gain_ctr1 | ||||
| #   26  pa_lna_gain_ctr2        50      rf_dq3              51      rf_dq4 | ||||
| #   52  rf_dq5                  53      rf_dq6              54      rf_dq7 | ||||
| #   55  rf_dq8                  56      rf_dq9              57      rf_dq10 | ||||
| #   58  rf_dq11                 59      rf_pd               61      cps | ||||
| #   62  ctx                     64      m_sta(adc_gnd)      65      adc_12v | ||||
| #   66  adc_3.3v                67      nc                  68      zc_a | ||||
| #   69  nc                      12      rf_spi_clk | ||||
|  | ||||
| rc_hdr | ||||
|     hw_ver      0x0D0A0113  #00.00.00.00   Hardware identification, HEX | ||||
|     mode        0 | ||||
|     d_hw_ver    0xffffffff | ||||
|  | ||||
| gpio    #GPIO resource allocation | ||||
| #  A:gpio number; | ||||
| #  B:belongs to the core; | ||||
| #  C:function (to see iot_board_api.h about gpio type) | ||||
| #   A   B   C | ||||
| #   bbcpu spi gpio, query by plc core | ||||
|     12  1   107 #GPIO_SPI_RF_CLK | ||||
|     11  1   110 #GPIO_SPI_RF_MOSI | ||||
|     10  1   109 #GPIO_SPI_RF_MISO | ||||
|     9   1   108 #GPIO_SPI_RF_CS | ||||
|  | ||||
|     3   1   10  #GPIO_GEODE_OVT | ||||
|  | ||||
|     32  1   17  #GPIO_GOLDEN_SET | ||||
|     5   1   24  #GPIO_GOLDEN_RXD0 | ||||
|     6   1   34  #GPIO_GOLDEN_TXD0 | ||||
|  | ||||
|     31  1   12  #GPIO_PM_CHARGE_EN | ||||
|     68  1   18  #GPIO_PA_ZC | ||||
|     39  1   120 #GPIO_LIC_CTRL | ||||
|  | ||||
|     34  1   121 #GPIO_RF_CLK | ||||
|  | ||||
|     38  1   62  #GPIO_METER_CLK_CTRL | ||||
|     37  1   64  #GPIO_METER_MOSI_CTRL | ||||
|     36  1   63  #GPIO_METER_MISO_CTRL | ||||
|     35  1   61  #GPIO_METER_CS_CTRL | ||||
|     30  1   40  #GPIO_METER_RST_CTRL | ||||
|  | ||||
|     32  1   133  #GPIO_RF_PA_CSD | ||||
|     62  1   134  #GPIO_RF_PA_CTX | ||||
|  | ||||
| uart    #UART resource allocation | ||||
| #  A:uart number; | ||||
| #  B:belongs to the core; | ||||
| #  C:function (to see iot_uart_api.h about uart type) | ||||
| #   A   B   C | ||||
|     2   1   0   #UART_PRINT | ||||
|     tx  28      #gpio number corresponding to uart TX signal | ||||
|  | ||||
|     0   1   2   #UART_METER_PORT | ||||
|     tx  6       #gpio number corresponding to uart TX signal | ||||
|     rx  5       #gpio number corresponding to uart RX signal | ||||
|  | ||||
|     5   1   1   #UART_CLI_PORT | ||||
|  | ||||
| #spi     #SPI resource allocation, controlled by gpio resource now. | ||||
| #  A:spi number; | ||||
| #  B:belongs to the core; | ||||
| #  C:function | ||||
| #   A   B   C | ||||
| #   bbcpu use spi1 to connect external rf chip, fixed value used now. | ||||
| #   1   2   0   #SPI_PORT_TYPE_PYH_RF | ||||
| #   cs  9 | ||||
| #   clk 12 | ||||
| #   miso 10 | ||||
| #   mosi 11 | ||||
|  | ||||
| ledc    #LEDC resource allocation | ||||
| #  A:ledc channel; | ||||
| #  B:belongs to the core; | ||||
| #  C:function | ||||
| #  ledout:The GPIO number corresponding to the output signal of LEDC | ||||
| #         (LEDC has only one signal, so it is unified ledOUT) | ||||
| #   A   B   C | ||||
|     0   1   0   #IOT_PLC_TX_LED | ||||
|     ledout  1 | ||||
|  | ||||
|     1   1   1   #IOT_PLC_RX_LED | ||||
|     ledout  0 | ||||
|  | ||||
| adc #ADC resource allocation | ||||
| #  A:adc channel; | ||||
| #  B:belongs to the core; | ||||
| #  C:function (to see iot_board_api.h about adc type) | ||||
| #   A   B   C | ||||
|     0   1   2   #ADC_PM_GND  (Temporary annotation) | ||||
|     1   1   0   #ADC_PM_12V  (Temporary annotation) | ||||
|     2   1   1   #ADC_PM_3V   (Temporary annotation: Shielded supercapacitor) | ||||
|  | ||||
| #zc  # (PARTICULAR RESOURCE) Chip level zero crossing detection resource | ||||
| #      allocation, controlled by gpio resource now. | ||||
| # up_0: Zero-crossing detection rising edge input channel 0, | ||||
| #       which corresponds to phase A rising edge zero-crossing | ||||
| #       circuit by default | ||||
| #   up_0    68 | ||||
|  | ||||
| pa  # (PARTICULAR RESOURCE) | ||||
|     rx_en_0 2   #Phase A Enable receiving | ||||
|     tx_en_0 4   #Phase A Enable sending | ||||
|     gain_0  7   #Phase A gain control 0 | ||||
|     gain_1  8   #Phase A gain control 1 | ||||
|     gain_2  26  #Phase A gain control 2 | ||||
		Reference in New Issue
	
	Block a user