Files
kunlun/tools/oem/HTZD3201CCO03_OEM.ini
2024-09-28 14:37:24 +08:00

346 lines
12 KiB
INI

# HZ3201 cco board, external rf chip, external pa chip
general
bid 45 #BOARD_HTZDCCO03
mid 1 #MODULE_TYPE_CCO
vid HT
fver 1
#=============================== default rc====================================#
# overview
# 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_c_2
# 38 zc_c_1 37 zc_b_2 36 zc_b_1
# 35 zc_a_2 34 pa_led\uart1_tx 33 pb_led\uart1_rx
# 32 pc_led 31 charge_en 30 pa_c_tx_en
# 29 pa_c_rx_en 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 uart2_rx 62 rf_channel_sw2(io)
# 64 m_sta(adc_gnd) 65 adc_12v 66 adc_3.3v
# 67 pa_b_tx_en 68 zc_a_1 69 pa_b_rx_en
# 12 rf_spi_clk 27 set(mac,for cco 09 version)
rc_hdr
hw_ver 0x00000000 #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
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
3 1 10 #GPIO_GEODE_OVT
35 1 18 #GPIO_PA_ZC
37 1 19 #GPIO_PB_ZC
39 1 20 #GPIO_PC_ZC
68 1 44 #GPIO_PA_ZC_EXT
36 1 45 #GPIO_PB_ZC_EXT
38 1 46 #GPIO_PC_ZC_EXT
31 1 12 #GPIO_PM_CHARGE_EN
27 1 76 #GPIO_MAC_SET
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 1 #UART_CLI_PORT
tx 28
rx 61
1 1 0 #UART_PRINT
tx 34
0 1 2 #UART_METER_PORT
tx 6
rx 5
#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 2 #IOT_PLC_PHASE_A_LED
ledout 34
1 1 3 #IOT_PLC_PHASE_B_LED
ledout 33
2 1 4 #IOT_PLC_PHASE_C_LED
ledout 32
3 1 0 #IOT_PLC_TX_LED
ledout 1
4 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_1: Zero-crossing detection rising edge input channel 1,
# which corresponds to phase B rising edge zero-crossing
# circuit by default
# up_2: Zero-crossing detection rising edge input channel 2,
# which corresponds to phase C rising edge zero-crossing
# circuit by default
# down_0: Zero-crossing detection descending edge input channel 0,
# which by default corresponds to the zero-crossing circuit
# of phase A descending edge
# down_1: Zero-crossing detection descending edge input channel 1,
# which by default corresponds to the zero-crossing circuit
# of phase B descending edge
# down_2: Zero-crossing detection descending edge input channel 2,
# which by default corresponds to the zero-crossing circuit
# of phase C descending edge
# up_0 35
# up_1 37
# up_2 39
# down_0 68
# down_1 36
# down_2 38
pa # (PARTICULAR RESOURCE)
rx_en_0 2 #Phase A Enable receiving
tx_en_0 4 #Phase A Enable sending
rx_en_1 69 #Phase B Enable receiving
tx_en_1 67 #Phase B Enable sending
rx_en_2 29 #Phase C Enable receiving
tx_en_2 30 #Phase C Enable sending
gain_0 7 #Phase A gain control
gain_1 8 #Phase B gain control
gain_2 26 #Phase C gain control
#================= 31.20.02.00(HW_VERSION_CCO_USB_V2) =========================#
# overview
# 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_c_2
# 38 zc_c_1 37 zc_b_2 36 zc_b_1
# 35 zc_a_2 34 uart1_tx 33 run_led
# 32 uart3_tx 31 uart3_rx 30 pa_c_tx_en
# 29 pa_c_rx_en 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 uart2_rx 62 rf_channel_sw2(io)
# 64 adc_cal 65 adc_12v 66 boot0(gd32)
# 67 pa_b_tx_en 68 zc_a_1 69 pa_b_rx_en
# 12 rf_spi_clk 27 rst(gd32)
rc_hdr
hw_ver 0x1F140200 #31.20.02.00 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
# bbcpu spi gpio, query by plc core
32 255 255
31 255 255
34 255 255
66 1 74 #GPIO_VC_EXT_CHIP_BOOT
27 1 75 #GPIO_VC_EXT_CHIP_RST
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
3 1 5 #UART_EXT_CHIP
tx 32
rx 31
# disable uart0 meter port function
0 255 255
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
2 1 5 #IOT_PWR_LED
ledout 33
3 255 255 #IOT_LED_TYPE_INVALID
4 255 255 #IOT_LED_TYPE_INVALID
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 #ADC_TYPE_INVALID
#===============================13.10.08.11(HW_VERSION_CCO_DM_V2)====================================#
# overview, for hx oversea
# 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 nc
# 38 zc_c_1 37 nc 36 zc_b_1
# 35 nc 34 plc_led\uart1_tx 33 rf_led\uart1_rx
# 32 nc 31 charge_en 30 pa_c_tx_en
# 29 pa_c_rx_en 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 uart2_rx 62 rf_channel_sw2(io)
# 64 m_sta(adc_gnd) 65 adc_12v 66 adc_3.3v
# 67 pa_b_tx_en 68 zc_a_1 69 pa_b_rx_en
# 12 rf_spi_clk 27 nc
rc_hdr
hw_ver 0x0D0A080B #13.10.08.11 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
# bbcpu spi gpio, query by plc core
35 255 255 #GPIO_NO_VALID
37 255 255 #GPIO_NO_VALID
39 255 255 #GPIO_NO_VALID
32 255 255 #GPIO_NO_VALID
68 1 18 #GPIO_PA_ZC
36 1 19 #GPIO_PB_ZC
38 1 20 #GPIO_PC_ZC
ledc #LEDC resource allocation
# A:ledc channel;
# B:belongs to the core;
# C:function
# A B C
0 1 2 #IOT_PLC_PHASE_A_LED
ledout 34
1 1 10 #IOT_RF_LED
ledout 33
2 1 0 #IOT_PLC_TX_LED
ledout 0
3 1 1 #IOT_PLC_RX_LED
ledout 1
4 255 255
#===============================13.10.08.12(HW_VERSION_CCO_DM_V3)====================================#
# overview, for hx and kx oversea
# 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 rf_channel_sw1(io)
# 38 zc_c_1 37 csd 36 zc_b_1
# 35 nc 34 plc_led\uart1_tx 33 rf_led\uart1_rx
# 32 pc_led 31 charge_en 30 pa_c_tx_en
# 29 pa_c_rx_en 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_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 uart2_rx
# 62 rf_channel_sw2(io) 64 m_sta(adc_gnd) 65 adc_12v
# 66 adc_3.3v 67 pa_b_tx_en 68 zc_a_1
# 69 pa_b_rx_en 12 rf_spi_clk
rc_hdr
hw_ver 0x0D0A080C #13.10.08.12 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
# bbcpu spi gpio, query by plc core
35 255 255 #GPIO_NO_VALID
39 255 255 #GPIO_NO_VALID
37 1 133 #GPIO_RF_PA_CSD
62 1 134 #GPIO_RF_PA_CTX
68 1 18 #GPIO_PA_ZC
36 1 19 #GPIO_PB_ZC
38 1 20 #GPIO_PC_ZC
ledc #LEDC resource allocation
# A:ledc channel;
# B:belongs to the core;
# C:function
# A B C
0 1 2 #IOT_PLC_PHASE_A_LED
ledout 34
1 1 10 #IOT_RF_LED
ledout 33
2 1 0 #IOT_PLC_TX_LED
ledout 0
3 1 1 #IOT_PLC_RX_LED
ledout 1
4 255 255