|
108 | 108 | <require condition="CORE"/> |
109 | 109 | <require condition="CortexDevice_ITM"/> |
110 | 110 | </condition> |
| 111 | + <condition id="CORE UART_CMSIS"> |
| 112 | + <description>CMSIS-Compiler CORE component and CMSIS-Driver USART</description> |
| 113 | + <require condition="CORE"/> |
| 114 | + <require Cclass="CMSIS Driver" Cgroup="USART"/> |
| 115 | + </condition> |
111 | 116 |
|
112 | 117 | <condition id="ARMCC CORE"> |
113 | 118 | <description>ARMCC and CORE component</description> |
|
155 | 160 | <require condition="CORE"/> |
156 | 161 | <require Cclass="CMSIS" Cgroup="RTOS2"/> |
157 | 162 | </condition> |
| 163 | + |
| 164 | + <condition id="STDIO UART CMSIS"> |
| 165 | + <description>STDIO retarget to CMSIS Driver UART</description> |
| 166 | + <accept Cclass="CMSIS-Compiler" Cgroup="STDERR" Csub="UART" Cvariant="CMSIS"/> |
| 167 | + <accept Cclass="CMSIS-Compiler" Cgroup="STDIN" Csub="UART" Cvariant="CMSIS"/> |
| 168 | + <accept Cclass="CMSIS-Compiler" Cgroup="STDOUT" Csub="UART" Cvariant="CMSIS"/> |
| 169 | + </condition> |
158 | 170 | </conditions> |
159 | 171 | <taxonomy> |
160 | 172 | <description Cclass="CMSIS-Compiler" doc="documentation/html/index.html">Compiler Specific Interfaces</description> |
|
219 | 231 | <description>Standard C Library Retarget Core</description> |
220 | 232 | <files> |
221 | 233 | <file category="sourceC" name="source/core/armcc/retarget_io.c"/> |
| 234 | + <file category="sourceC" name="source/core/stdio_cmsis_uart.c" condition="STDIO UART CMSIS"/> |
| 235 | + <file category="header" name="config/stdio_cmsis_uart_config.h" attr="config" version="1.0.0" condition="STDIO UART CMSIS"/> |
222 | 236 | </files> |
223 | 237 | </component> |
224 | 238 | <component Cclass="CMSIS-Compiler" Cgroup="CORE" Cversion="1.1.0" condition="GCC CortexDevice"> |
225 | 239 | <description>Standard C Library Retarget Core</description> |
226 | 240 | <files> |
227 | 241 | <file category="sourceC" name="source/core/gcc/retarget_syscalls.c"/> |
| 242 | + <file category="sourceC" name="source/core/stdio_cmsis_uart.c" condition="STDIO UART CMSIS"/> |
| 243 | + <file category="header" name="config/stdio_cmsis_uart_config.h" attr="config" version="1.0.0" condition="STDIO UART CMSIS"/> |
228 | 244 | </files> |
229 | 245 | </component> |
230 | 246 | <component Cclass="CMSIS-Compiler" Cgroup="CORE" Cversion="1.1.0" condition="CLANG CortexDevice"> |
231 | 247 | <description>Standard C Library Retarget Core</description> |
232 | 248 | <files> |
233 | 249 | <file category="sourceC" name="source/core/clang/retarget_syscalls.c"/> |
| 250 | + <file category="sourceC" name="source/core/stdio_cmsis_uart.c" condition="STDIO UART CMSIS"/> |
| 251 | + <file category="header" name="config/stdio_cmsis_uart_config.h" attr="config" version="1.0.0" condition="STDIO UART CMSIS"/> |
234 | 252 | </files> |
235 | 253 | </component> |
236 | 254 | <component Cclass="CMSIS-Compiler" Cgroup="CORE" Cversion="1.2.0" condition="IAR CortexDevice"> |
237 | 255 | <description>Standard C Library Retarget Core</description> |
238 | 256 | <files> |
239 | 257 | <file category="sourceC" name="source/core/iar/retarget_io.c"/> |
| 258 | + <file category="sourceC" name="source/core/stdio_cmsis_uart.c" condition="STDIO UART CMSIS"/> |
| 259 | + <file category="header" name="config/stdio_cmsis_uart_config.h" attr="config" version="1.0.0" condition="STDIO UART CMSIS"/> |
240 | 260 | </files> |
241 | 261 | </component> |
242 | 262 |
|
|
304 | 324 | <file category="sourceC" name="source/stderr/stderr_itm.c"/> |
305 | 325 | </files> |
306 | 326 | </component> |
| 327 | + <component Cclass="CMSIS-Compiler" Cgroup="STDERR" Csub="UART" Cvariant="CMSIS" Capiversion="1.1.0" Cversion="1.0.0" condition="CORE UART_CMSIS"> |
| 328 | + <description>Redirect STDERR to a CMSIS-Driver USART</description> |
| 329 | + <RTE_Components_h> |
| 330 | + #define RTE_CMSIS_Compiler_STDERR /* CMSIS-Compiler STDERR */ |
| 331 | + #define RTE_CMSIS_Compiler_STDERR_UART_CMSIS /* CMSIS-Compiler STDERR: UART: CMSIS */ |
| 332 | + </RTE_Components_h> |
| 333 | + <files> |
| 334 | + <file category="header" name="config/stderr_cmsis_uart_config.h" attr="config" version="1.0.0"/> |
| 335 | + </files> |
| 336 | + </component> |
307 | 337 |
|
308 | 338 | <!-- STDIN --> |
309 | 339 | <component Cclass="CMSIS-Compiler" Cgroup="STDIN" Csub="Custom" Capiversion="1.1.0" Cversion="1.1.0" custom="1" condition="CORE"> |
|
336 | 366 | <file category="sourceC" name="source/stdin/stdin_itm.c"/> |
337 | 367 | </files> |
338 | 368 | </component> |
| 369 | + <component Cclass="CMSIS-Compiler" Cgroup="STDIN" Csub="UART" Cvariant="CMSIS" Capiversion="1.1.0" Cversion="1.0.0" condition="CORE UART_CMSIS"> |
| 370 | + <description>Retrieve STDIN from a CMSIS-Driver USART</description> |
| 371 | + <RTE_Components_h> |
| 372 | + #define RTE_CMSIS_Compiler_STDIN /* CMSIS-Compiler STDIN */ |
| 373 | + #define RTE_CMSIS_Compiler_STDIN_UART_CMSIS /* CMSIS-Compiler STDIN: UART: CMSIS */ |
| 374 | + </RTE_Components_h> |
| 375 | + <files> |
| 376 | + <file category="header" name="config/stdin_cmsis_uart_config.h" attr="config" version="1.0.0"/> |
| 377 | + </files> |
| 378 | + </component> |
339 | 379 |
|
340 | 380 | <!-- STDOUT --> |
341 | 381 | <component Cclass="CMSIS-Compiler" Cgroup="STDOUT" Csub="Custom" Capiversion="1.1.0" Cversion="1.1.0" custom="1" condition="CORE"> |
|
378 | 418 | <file category="sourceC" name="source/stdout/stdout_itm.c"/> |
379 | 419 | </files> |
380 | 420 | </component> |
| 421 | + <component Cclass="CMSIS-Compiler" Cgroup="STDOUT" Csub="UART" Cvariant="CMSIS" Capiversion="1.1.0" Cversion="1.0.0" condition="CORE UART_CMSIS"> |
| 422 | + <description>Redirect STDOUT to a CMSIS-Driver USART</description> |
| 423 | + <RTE_Components_h> |
| 424 | + #define RTE_CMSIS_Compiler_STDOUT /* CMSIS-Compiler STDOUT */ |
| 425 | + #define RTE_CMSIS_Compiler_STDOUT_UART_CMSIS /* CMSIS-Compiler STDOUT: UART: CMSIS */ |
| 426 | + </RTE_Components_h> |
| 427 | + <files> |
| 428 | + <file category="header" name="config/stdout_cmsis_uart_config.h" attr="config" version="1.0.0"/> |
| 429 | + </files> |
| 430 | + </component> |
381 | 431 |
|
382 | 432 | <!-- TTY --> |
383 | 433 | <component Cclass="CMSIS-Compiler" Cgroup="TTY" Csub="Custom" Capiversion="1.1.0" Cversion="1.1.0" custom="1" condition="ARMCC CORE"> |
|
0 commit comments