kopia lustrzana https://github.com/bristol-seds/pico-tracker
Added dummy handlers to prevent warnings when semihosting is disabled
rodzic
b1bfe5d033
commit
72b5f7a23e
|
@ -33,9 +33,11 @@
|
|||
#ifndef __SEMIHOSTING__
|
||||
|
||||
/* Dummy function handlers */
|
||||
#define semihost_putchar(c)
|
||||
#define semihost_puts(s)
|
||||
#define semihost_printf(...)
|
||||
#define semihost_putchar(c) (void)(c)
|
||||
#define semihost_puts(s) (void)(s)
|
||||
#define semihost_printf(...) __dummy_printf(__VA_ARGS__)
|
||||
|
||||
void __dummy_printf(const char *format, ...);
|
||||
|
||||
#else
|
||||
|
||||
|
@ -51,6 +53,8 @@ void __putchar(char c);
|
|||
void __puts(const char* s);
|
||||
void __printf(const char *format, ...);
|
||||
|
||||
|
||||
|
||||
#endif /* __SEMIHOSTING__ */
|
||||
|
||||
#endif /* SEMIHOSTING_H */
|
||||
|
|
|
@ -51,3 +51,6 @@ void __printf(const char *format, ...) {
|
|||
vprintf(format, args);
|
||||
}
|
||||
}
|
||||
void __dummy_printf(const char* format, ...) {
|
||||
(void)format;
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue