File tree 6 files changed +35
-21
lines changed
samples/net/openthread/cli/boards
soc/telink/tlsr/telink_tlx
6 files changed +35
-21
lines changed Original file line number Diff line number Diff line change 95
95
- name : Build TL321X net/openthread/cli
96
96
run : |
97
97
cd ..
98
- west build -b tl3218x -d build_ot_cli_tl321x zephyr/samples/net/openthread/cli -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y
98
+ west build -b tl3218x -d build_ot_cli_tl321x zephyr/samples/net/openthread/cli -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y -DCONFIG_NET_BUF_TX_COUNT=12 -DCONFIG_NET_BUF_RX_COUNT=12
99
99
100
100
- name : Build TL321X net/openthread/coprocessor in RCP configuration with UART interface
101
101
run : |
@@ -107,6 +107,11 @@ jobs:
107
107
cd ..
108
108
west build -b tl3218x -d build_usb_console_tl321x zephyr/samples/subsys/usb/console -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y
109
109
110
+ - name : Build TL321x subsys/usb/cdc_acm for USB CDC
111
+ run : |
112
+ cd ..
113
+ west build -b tl3218x -d build_usb_cdc_acm_tl321x zephyr/samples/subsys/usb/cdc_acm -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y
114
+
110
115
- name : Build TL321X boards/telink/tl321x/basic
111
116
run : |
112
117
cd ..
@@ -148,6 +153,7 @@ jobs:
148
153
cp ../build_ot_cli_tl321x/zephyr/zephyr.bin telink_build_artifacts/tl321x_ot_cli.bin
149
154
cp ../build_ot_coprocessor_rcp_uart_tl321x/zephyr/zephyr.bin telink_build_artifacts/tl321x_ot_coprocessor_rcp_uart.bin
150
155
cp ../build_usb_console_tl321x/zephyr/zephyr.bin telink_build_artifacts/tl321x_usb_console.bin
156
+ cp ../build_usb_cdc_acm_tl321x/zephyr/zephyr.bin telink_build_artifacts/tl321x_usb_cdc_acm.bin
151
157
cp ../build_retention_basic_tl321x/zephyr/zephyr.bin telink_build_artifacts/tl321x_retention_basic.bin
152
158
cp ../build_ot_echo_client_pm_deep_tl321x/zephyr/zephyr.bin telink_build_artifacts/tl321x_ot_echo_client_pm_retention.bin
153
159
cp ../build_crypto_mbedtls_tl321x/zephyr/zephyr.bin telink_build_artifacts/tl321x_mbedtls.bin
Original file line number Diff line number Diff line change @@ -21,10 +21,6 @@ LOG_MODULE_REGISTER(adc_tlx, CONFIG_ADC_LOG_LEVEL);
21
21
#include <adc.h>
22
22
#include <zephyr/drivers/pinctrl.h>
23
23
24
- #if CONFIG_SOC_RISCV_TELINK_TL321X
25
- #define adc_input_pin_def_e adc_input_pin_e
26
- #endif
27
-
28
24
/* Set ADC resolution value */
29
25
static inline void adc_set_resolution (adc_res_e res )
30
26
{
@@ -155,15 +151,7 @@ static signed short adc_tlx_get_code(void)
155
151
signed short adc_code ;
156
152
157
153
#if CONFIG_SOC_RISCV_TELINK_TL321X || CONFIG_SOC_RISCV_TELINK_TL721X
158
- extern unsigned char g_adc_rx_fifo_index ;
159
-
160
- if (g_adc_rx_fifo_index == 0 ) {
161
- adc_code = reg_adc_rxfifo_dat (g_adc_rx_fifo_index );
162
- g_adc_rx_fifo_index = 1 ;
163
- } else {
164
- adc_code = reg_adc_rxfifo_dat (g_adc_rx_fifo_index );
165
- g_adc_rx_fifo_index = 0 ;
166
- }
154
+ adc_code = adc_get_code ();
167
155
#endif
168
156
return adc_code ;
169
157
}
Original file line number Diff line number Diff line change
1
+ # usb
2
+ CONFIG_USB_DEVICE_STACK=y
3
+ CONFIG_USB_DEVICE_INITIALIZE_AT_BOOT=n
4
+
1
5
# Telink relative thread features
2
6
CONFIG_NET_PKT_TXTIME=y
3
7
CONFIG_NET_PKT_TIMESTAMP=y
4
8
CONFIG_OPENTHREAD_NUM_MESSAGE_BUFFERS=35
5
9
6
- CONFIG_OPENTHREAD_THREAD_VERSION_1_1=y
7
- CONFIG_OPENTHREAD_SRP_CLIENT=n
10
+ CONFIG_OPENTHREAD_NUM_MESSAGE_BUFFERS=150
11
+ CONFIG_IEEE802154_TLX_MAC_FLASH=y
12
+
8
13
CONFIG_OPENTHREAD_JOINER=n
9
14
CONFIG_OPENTHREAD_LINK_METRICS_SUBJECT=n
10
15
CONFIG_OPENTHREAD_BORDER_ROUTER=n
11
16
CONFIG_OPENTHREAD_COMMISSIONER=n
12
- CONFIG_OPENTHREAD_PING_SENDER=n
13
17
CONFIG_OPENTHREAD_DHCP6_CLIENT=n
14
18
CONFIG_OPENTHREAD_DNS_CLIENT=n
15
19
CONFIG_OPENTHREAD_SLAAC=n
@@ -22,4 +26,3 @@ CONFIG_OPENTHREAD_COAPS=n
22
26
CONFIG_OPENTHREAD_ENABLE_SERVICE=n
23
27
CONFIG_OPENTHREAD_CSL_RECEIVE_TIME_AHEAD=480
24
28
CONFIG_OPENTHREAD_MAX_CHILDREN=5
25
- CONFIG_IEEE802154_TLX_MAC_FLASH=y
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (c) 2024 Telink Semiconductor
3
+ *
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+
7
+ / {
8
+ chosen {
9
+ zephyr,shell-uart = &cdc_acm_uart0;
10
+ };
11
+ };
12
+
13
+ &zephyr_udc0 {
14
+ cdc_acm_uart0: cdc_acm_uart0 {
15
+ compatible = "zephyr,cdc-acm-uart";
16
+ };
17
+ };
Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ void soc_early_init_hook(void)
178
178
179
179
#if CONFIG_SOC_RISCV_TELINK_TL321X
180
180
case CLK_96MHZ :
181
- PLL_192M_CCLK_96M_HCLK_48M_PCLK_48M_MSPI_48M ;
181
+ PLL_192M_CCLK_96M_HCLK_48M_PCLK_48M_MSPI_64M ;
182
182
break ;
183
183
#endif /* CONFIG_SOC_RISCV_TELINK_TL321X */
184
184
#if CONFIG_SOC_RISCV_TELINK_TL721X
@@ -251,7 +251,7 @@ void soc_tlx_restore(void)
251
251
#endif /* CONFIG_SOC_RISCV_TELINK_TL721X */
252
252
#if CONFIG_SOC_RISCV_TELINK_TL321X
253
253
case CLK_96MHZ :
254
- PLL_192M_CCLK_96M_HCLK_48M_PCLK_48M_MSPI_48M ;
254
+ PLL_192M_CCLK_96M_HCLK_48M_PCLK_48M_MSPI_64M ;
255
255
break ;
256
256
#endif /* CONFIG_SOC_RISCV_TELINK_TL321X */
257
257
#if CONFIG_SOC_RISCV_TELINK_TL721X
Original file line number Diff line number Diff line change @@ -239,7 +239,7 @@ manifest:
239
239
- hal
240
240
- name : hal_telink
241
241
url : https://github.com/telink-semi/hal_telink
242
- revision : 8e116bb74c344c043500425793d76c4d3ae21565
242
+ revision : 38c66795ef4a79453330a1aed85d1217843a8d05
243
243
path : modules/hal/telink
244
244
groups :
245
245
- hal
You can’t perform that action at this time.
0 commit comments