HPM APP
HPMicro Application solution
rtconfig.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2023 hpmicro
3  * SPDX-License-Identifier: BSD-3-Clause
4  *
5  */
6 
7 #ifndef RT_CONFIG_H__
8 #define RT_CONFIG_H__
9 
10 /* RT-Thread Configuration */
11 
12 #include "finsh_config.h"
13 /* RT-Thread Kernel */
14 
15 #define RT_NAME_MAX 16
16 #define RT_ALIGN_SIZE 4
17 #define RT_THREAD_PRIORITY_MAX 32
18 #define RT_TICK_PER_SECOND 1000
19 #define RT_USING_OVERFLOW_CHECK
20 #define RT_USING_HOOK
21 #define RT_USING_IDLE_HOOK
22 #define RT_IDLE_HOOK_LIST_SIZE 4
23 #define IDLE_THREAD_STACK_SIZE 256
24 #define RT_USING_TIMER_SOFT
25 #define RT_TIMER_THREAD_PRIO 4
26 #define RT_TIMER_THREAD_STACK_SIZE 512
27 
28 /* kservice optimization */
29 
30 #define RT_DEBUG
31 #define RT_DEBUG_COLOR
32 #define RT_DEBUG_INIT_CONFIG
33 #define RT_DEBUG_INIT 1
34 
35 /* Inter-Thread communication */
36 
37 #define RT_USING_SEMAPHORE
38 #define RT_USING_MUTEX
39 #define RT_USING_EVENT
40 #define RT_USING_MAILBOX
41 #define RT_USING_MESSAGEQUEUE
42 
43 /* Memory Management */
44 
45 #define RT_USING_MEMPOOL
46 #define RT_USING_SMALL_MEM
47 #define RT_USING_HEAP
48 #define RT_HEAP_SIZE (16 * 1024)
49 
50 /* Kernel Device Object */
51 
52 /* #define RT_USING_DEVICE */
53 #define RT_USING_CONSOLE
54 #define RT_CONSOLEBUF_SIZE 128
55 #define RT_CONSOLE_DEVICE_NAME "uart0"
56 #define RT_PRINTF_LONGLONG
57 #define RT_VER_NUM 0x40004
58 
59 /* RT-Thread Components */
60 
61 #define RT_USING_COMPONENTS_INIT
62 #define RT_USING_USER_MAIN
63 #define RT_MAIN_THREAD_STACK_SIZE (4096)
64 #define RT_MAIN_THREAD_PRIORITY 10
65 
66 /* C++ features */
67 
68 
69 /* Command shell */
70 #define RT_USING_FINSH
71 #define FINSH_USING_MSH
72 #define FINSH_USING_MSH_ONLY
73 #define FINSH_THREAD_PRIORITY 21
74 #define FINSH_THREAD_STACK_SIZE 1024
75 #define FINSH_USING_SYMTAB
76 #define FINSH_USING_DESCRIPTION
77 #define FINSH_THREAD_NAME "tshell"
78 #define FINSH_USING_HISTORY
79 #define FINSH_HISTORY_LINES 5
80 #define FINSH_CMD_SIZE 80
81 #define FINSH_ARG_MAX 10
82 
83 /* Device Drivers */
84 
85 #define RT_USING_DEVICE_IPC
86 #define RT_PIPE_BUFSZ 512
87 #define RT_USING_SERIAL
88 #define RT_SERIAL_USING_DMA
89 #define RT_SERIAL_RB_BUFSZ 64
90 #define RT_USING_PIN
91 #define RT_USING_RTC
92 /* #define RT_USING_SDIO */
93 #define RT_SDIO_STACK_SIZE 512
94 #define RT_SDIO_THREAD_PRIORITY 15
95 #define RT_MMCSD_STACK_SIZE 2048
96 #define RT_MMCSD_THREAD_PREORITY 22
97 #define RT_MMCSD_MAX_PARTITION 16
98 #define RT_SDIO_DEBUG
99 #define RT_USING_WDT
100 
101 /* Using USB */
102 
103 
104 /* POSIX layer and C standard library */
105 
106 #define RT_USING_LIBC
107 #define RT_USING_POSIX
108 #define RT_LIBC_DEFAULT_TIMEZONE 8
109 
110 /* Network */
111 
112 /* Socket abstraction layer */
113 
114 
115 /* Network interface device */
116 
117 
118 /* light weight TCP/IP stack */
119 
120 
121 /* AT commands */
122 
123 
124 /* VBUS(Virtual Software BUS) */
125 
126 
127 /* Utilities */
128 
129 
130 /* RT-Thread Utestcases */
131 
132 
133 /* RT-Thread online packages */
134 
135 /* IoT - internet of things */
136 
137 
138 /* Wi-Fi */
139 
140 /* Marvell WiFi */
141 
142 
143 /* Wiced WiFi */
144 
145 
146 /* IoT Cloud */
147 
148 
149 /* security packages */
150 
151 
152 /* language packages */
153 
154 
155 /* multimedia packages */
156 
157 
158 /* tools packages */
159 
160 
161 /* system packages */
162 
163 /* acceleration: Assembly language or algorithmic acceleration packages */
164 
165 
166 /* Micrium: Micrium software products porting for RT-Thread */
167 
168 
169 /* peripheral libraries and drivers */
170 
171 
172 /* AI packages */
173 
174 
175 /* miscellaneous packages */
176 
177 /* samples: kernel and components samples */
178 
179 
180 /* entertainment: terminal games and other interesting software packages */
181 
182 
183 /* Onboard Peripheral Drivers */
184 
185 /* On-chip Peripheral Drivers */
186 
187 #define BSP_USING_UART
188 #define BSP_USING_UART0
189 /* #define BSP_USING_UART2 */
190 #define BSP_USING_RTC
191 /* #define BSP_USING_SDIO */
192 #define BSP_USING_SDIO1
193 
194 #endif