mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-18 14:28:33 +03:00
add synchronous UART transmission and use it in exceptions
The default ISR (particularly the HardFault handler) print information, but this information was not displayed on the console because the UART IRQ is lower than some default blocking IRQ. Allowing to set synchronous transfer corrects this. The underlying Atmel exception library had to be modified to use the synchronous output. Making UART_PutChar always synchronous when called from an ISR is not desired because we use TRACE_ macros is some ISR. The synchronous output must be set explicitly. Change-Id: I1b4ace5185cf2dc32684934ed12bf6a8682e9bad
This commit is contained in:
@@ -52,9 +52,14 @@ signed int printf(const char *pFormat, ...);
|
||||
signed int sprintf(char *pStr, const char *pFormat, ...);
|
||||
signed int puts(const char *pStr);
|
||||
|
||||
|
||||
int fputc(int c, FILE *stream);
|
||||
int fputs(const char *s, FILE *stream);
|
||||
|
||||
#define putc(c, stream) fputc(c, stream)
|
||||
#define putchar(c) fputc(c, stdout)
|
||||
|
||||
signed int vfprintf_sync(FILE *pStream, const char *pFormat, va_list ap);
|
||||
signed int vprintf_sync(const char *pFormat, va_list ap);
|
||||
signed int printf_sync(const char *pFormat, ...);
|
||||
int fputc_sync(int c, FILE *stream);
|
||||
int fputs_sync(const char *s, FILE *stream);
|
||||
|
||||
Reference in New Issue
Block a user