aboutsummaryrefslogtreecommitdiff
path: root/src/stm32
diff options
context:
space:
mode:
authorGareth McMullin2011-02-06 19:36:01 +1300
committerGareth McMullin2011-02-06 19:36:01 +1300
commit5788445ab242e04d592626dfdbf4367fff9b3914 (patch)
tree8765e6d7cb47bb05a9dbd982b297cdb05e521adc /src/stm32
parent8aefe82df06b9a9f4cf7f65a4ff45b0a65866f84 (diff)
Changed to use sprintf/sscanf by default.
Overridden by STM32 platform.h to use newling siprintf/siscanf.
Diffstat (limited to 'src/stm32')
-rw-r--r--src/stm32/platform.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/stm32/platform.h b/src/stm32/platform.h
index daeafa8..5249bdf 100644
--- a/src/stm32/platform.h
+++ b/src/stm32/platform.h
@@ -117,5 +117,10 @@ extern const char *morse_msg;
int platform_init(void);
void morse(const char *msg, char repeat);
+/* Use newlib provided integer only stdio functions */
+#define sscanf siscanf
+#define sprintf siprintf
+#define vasprintf vasiprintf
+
#endif