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