summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/printf.c
diff options
context:
space:
mode:
authorDave Hylands <dhylands@gmail.com>2015-07-28 11:13:33 -0700
committerDamien George <damien.p.george@gmail.com>2015-07-30 00:38:32 +0100
commit92d4b51ad5d828930334f87d9619a78b5877a384 (patch)
treeb055ba812bfce720130c6c52272bde38e80a00c9 /stmhal/printf.c
parent7e7fb0b7a3d716062281c2366de97a41a1ea87c1 (diff)
downloadmicropython-92d4b51ad5d828930334f87d9619a78b5877a384.tar.gz
micropython-92d4b51ad5d828930334f87d9619a78b5877a384.zip
stmhal: Add STM32F7DISC and associated changes.
Diffstat (limited to 'stmhal/printf.c')
-rw-r--r--stmhal/printf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/stmhal/printf.c b/stmhal/printf.c
index fed57a7762..87cf4f0f9e 100644
--- a/stmhal/printf.c
+++ b/stmhal/printf.c
@@ -62,6 +62,7 @@ int DEBUG_printf(const char *fmt, ...) {
#endif
// need this because gcc optimises printf("%c", c) -> putchar(c), and printf("a") -> putchar('a')
+#undef putchar // Some stdlibs have a #define for putchar
int putchar(int c) {
char chr = c;
mp_hal_stdout_tx_strn_cooked(&chr, 1);