Skip to content

Commit 0c567d7

Browse files
mozhihaoRbb666
authored andcommitted
添加rt-trace三个软件包的索引
1 parent 083efa2 commit 0c567d7

File tree

7 files changed

+207
-42
lines changed

7 files changed

+207
-42
lines changed

system/rti/Kconfig

Lines changed: 59 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
# Kconfig file for package rti
31
menuconfig PKG_USING_RTI
42
bool "RT-Thread Insight: probe tool for RT-Thread"
53
select RT_USING_HOOK
@@ -12,6 +10,7 @@ if PKG_USING_RTI
1210
string
1311
default "/packages/system/rti"
1412

13+
# 版本选择
1514
choice
1615
prompt "Version"
1716
help
@@ -20,49 +19,70 @@ if PKG_USING_RTI
2019
config PKG_USING_RTI_V100
2120
bool "v1.0.0"
2221

22+
config PKG_USING_RTI_V200
23+
bool "v2.0.0"
24+
2325
config PKG_USING_RTI_LATEST_VERSION
2426
bool "latest"
2527
endchoice
2628

2729
config PKG_RTI_VER
2830
string
2931
default "v1.0.0" if PKG_USING_RTI_V100
32+
default "v2.0.0" if PKG_USING_RTI_V200
3033
default "latest" if PKG_USING_RTI_LATEST_VERSION
31-
config PKG_RTI_APP_NAME
32-
string "App name"
33-
default "RT-Thread RTI"
34-
35-
config PKG_RTI_BUFFER_SIZE
36-
int "RTI buffer size"
37-
default 4096
38-
39-
config PKG_RTI_RAM_BASE
40-
hex "RAM base"
41-
default 0x20000000
42-
---help---
43-
The lowest RAM address used for IDs (pointers)
44-
45-
config PKG_RTI_ID_SHIFT
46-
int "Event ID offset"
47-
default 2
48-
49-
config PKG_RTI_SYS_DESC0
50-
string "System description 0"
51-
default "I#15=systick"
52-
---help---
53-
format is "I#%num%=%name%, ..." number is IRQ number, name is IRQ name
54-
55-
config PKG_RTI_SYS_DESC1
56-
string "System description 1"
57-
default ""
58-
---help---
59-
format is "I#%num%=%name%, ..." number is IRQ number, name is IRQ name
60-
61-
config PKG_USING_RTI_UART_SAMPLE
62-
bool "Using UART Sample"
63-
default n
64-
---help---
65-
Use serial port to transmit data to SystemView.
66-
67-
endif
6834

35+
# ----------------------------
36+
# v2版本仅显示CPU频率配置
37+
# ----------------------------
38+
config BOARD_SYSTICK_FREQ_IN_HZ
39+
int "CPU frequency (Hz)"
40+
default 168000000
41+
depends on PKG_USING_RTI_V200 || PKG_USING_RTI_LATEST_VERSION # 仅v2和latest版本可见
42+
help
43+
Required for v2.0.0+ version: CPU clock frequency, used for timestamp calculation.
44+
45+
# ----------------------------
46+
# v1版本显示原有其他配置
47+
# ----------------------------
48+
if PKG_USING_RTI_V100 # 仅v1.0.0版本可见
49+
50+
config PKG_RTI_APP_NAME
51+
string "App name"
52+
default "RT-Thread RTI"
53+
54+
config PKG_RTI_BUFFER_SIZE
55+
int "RTI buffer size"
56+
default 4096
57+
58+
config PKG_RTI_RAM_BASE
59+
hex "RAM base"
60+
default 0x20000000
61+
---help---
62+
The lowest RAM address used for IDs (pointers)
63+
64+
config PKG_RTI_ID_SHIFT
65+
int "Event ID offset"
66+
default 2
67+
68+
config PKG_RTI_SYS_DESC0
69+
string "System description 0"
70+
default "I#15=systick"
71+
---help---
72+
format is "I#%num%=%name%, ..." number is IRQ number, name is IRQ name
73+
74+
config PKG_RTI_SYS_DESC1
75+
string "System description 1"
76+
default ""
77+
---help---
78+
format is "I#%num%=%name%, ..." number is IRQ number, name is IRQ name
79+
80+
config PKG_USING_RTI_UART_SAMPLE
81+
bool "Using UART Sample"
82+
default n
83+
---help---
84+
Use serial port to transmit data to SystemView.
85+
86+
endif
87+
88+
endif

system/rti/package.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
},
1010
"enable": "PKG_USING_RTI",
1111
"keywords": [
12+
"insight",
1213
"rti",
1314
"system"
1415
],
@@ -21,9 +22,13 @@
2122
"site": [
2223
{
2324
"version": "v1.0.0",
24-
"URL": "https://github.com/RT-Thread-packages/rti.git",
25-
"filename": "rti-1.0.0.zip",
26-
"VER_SHA": "8621858c735086879dc445c9baf9ad34763e301d"
25+
"URL": "https://github.com/RT-Thread-packages/rti/archive/refs/tags/1.0.0.zip",
26+
"filename": "rti-1.0.0.zip"
27+
},
28+
{
29+
"version": "v2.0.0",
30+
"URL": "https://github.com/RT-Thread-packages/rti/archive/refs/tags/2.0.0.zip",
31+
"filename": "rti-2.0.0.zip"
2732
},
2833
{
2934
"version": "latest",

tools/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,6 @@ source "$PKGS_DIR/packages/tools/RVBacktrace/Kconfig"
5252
source "$PKGS_DIR/packages/tools/hpatchlite-wrapper/Kconfig"
5353
source "$PKGS_DIR/packages/tools/thread-metric/Kconfig"
5454
source "$PKGS_DIR/packages/tools/uORB/Kconfig"
55+
source "$PKGS_DIR/packages/tools/RT-Tunnel/Kconfig"
56+
source "$PKGS_DIR/packages/tools/Virtual-Terminal/Kconfig"
5557
endmenu

tools/RT-Tunnel/Kconfig

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
2+
# Kconfig file for package RT-Tunnel
3+
menuconfig PKG_USING_RT_TUNNEL
4+
bool "RT-Tunnel: Auxiliary communication with RT-Trace tool and the target."
5+
default n
6+
7+
if PKG_USING_RT_TUNNEL
8+
9+
config PKG_RT_TUNNEL_PATH
10+
string
11+
default "/packages/tools/RT-Tunnel"
12+
13+
config TUNNEL_NUM
14+
int "Tunnel number"
15+
default 3
16+
17+
config TUNNEL_BUFFER_SIZE
18+
int "Tunnel buffer size (bytes)"
19+
default 8192
20+
help
21+
Configure the buffer size for each tunnel.
22+
23+
choice
24+
prompt "Version"
25+
help
26+
Select the package version
27+
28+
config PKG_USING_RT_TUNNEL_V100
29+
bool "v1.0.0"
30+
31+
config PKG_USING_RT_TUNNEL_LATEST_VERSION
32+
bool "latest"
33+
endchoice
34+
35+
config PKG_RT_TUNNEL_VER
36+
string
37+
default "v1.0.0" if PKG_USING_RT_TUNNEL_V100
38+
default "latest" if PKG_USING_RT_TUNNEL_LATEST_VERSION
39+
40+
endif
41+

tools/RT-Tunnel/package.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"name": "RT-Tunnel",
3+
"description": "RT-Tunnel: Auxiliary communication with RT-Trace tool and the target",
4+
"description_zh": "RT-Tunnel: 辅助RT-Trace工具和目标板通信",
5+
"enable": "PKG_USING_RT_TUNNEL",
6+
"keywords": [
7+
"RT-Tunnel"
8+
],
9+
"category": "tools",
10+
"author": {
11+
"name": "RealThread",
12+
"email": "[email protected]",
13+
"github": "RealThread"
14+
},
15+
"license": "Apache-2.0",
16+
"repository": "https://github.com/RT-Thread-packages/RT-Tunnel.git",
17+
"icon": "unknown",
18+
"homepage": "https://github.com/RT-Thread-packages/RT-Tunnel.git#readme",
19+
"doc": "unknown",
20+
"site": [
21+
{
22+
"version": "v1.0.0",
23+
"URL": "https://github.com/RT-Thread-packages/RT-Tunnel/archive/refs/tags/1.0.0.zip",
24+
"filename": "RT-Tunnel-1.0.0.zip"
25+
},
26+
{
27+
"version": "latest",
28+
"URL": "https://github.com/RT-Thread-packages/RT-Tunnel.git",
29+
"filename": "RT-Tunnel-latest.zip",
30+
"VER_SHA": "master"
31+
}
32+
]
33+
}

tools/Virtual-Terminal/Kconfig

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
2+
# Kconfig file for package Virtual-Terminal
3+
menuconfig PKG_USING_VIRTUAL_TERMINAL
4+
bool "Virtual-Terminal: High-speed virtual terminal"
5+
default n
6+
7+
if PKG_USING_VIRTUAL_TERMINAL
8+
9+
config PKG_VIRTUAL_TERMINAL_PATH
10+
string
11+
default "/packages/tools/Virtual-Terminal"
12+
13+
choice
14+
prompt "Version"
15+
help
16+
Select the package version
17+
18+
config PKG_USING_VIRTUAL_TERMINAL_V100
19+
bool "v1.0.0"
20+
21+
config PKG_USING_VIRTUAL_TERMINAL_LATEST_VERSION
22+
bool "latest"
23+
endchoice
24+
25+
config PKG_VIRTUAL_TERMINAL_VER
26+
string
27+
default "v1.0.0" if PKG_USING_VIRTUAL_TERMINAL_V100
28+
default "latest" if PKG_USING_VIRTUAL_TERMINAL_LATEST_VERSION
29+
30+
endif
31+
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"name": "Virtual-Terminal",
3+
"description": "Virtual-Terminal: High-speed virtual terminal",
4+
"description_zh": "Virtual-Terminal: 高速虚拟终端",
5+
"enable": "PKG_USING_VIRTUAL_TERMINAL",
6+
"keywords": [
7+
"Virtual-Terminal"
8+
],
9+
"category": "tools",
10+
"author": {
11+
"name": "RealThread",
12+
"email": "[email protected]",
13+
"github": "RealThread"
14+
},
15+
"license": "Apache-2.0",
16+
"repository": "https://github.com/RT-Thread-packages/Virtual-Terminal.git",
17+
"icon": "unknown",
18+
"homepage": "https://github.com/RT-Thread-packages/Virtual-Terminal.git#readme",
19+
"doc": "unknown",
20+
"site": [
21+
{
22+
"version": "v1.0.0",
23+
"URL": "https://github.com/RT-Thread-packages/Virtual-Terminal/archive/refs/tags/1.0.0.zip",
24+
"filename": "Virtual-Terminal-1.0.0.zip"
25+
},
26+
{
27+
"version": "latest",
28+
"URL": "https://github.com/RT-Thread-packages/Virtual-Terminal.git",
29+
"filename": "Virtual-Terminal-latest.zip",
30+
"VER_SHA": "master"
31+
}
32+
]
33+
}

0 commit comments

Comments
 (0)