summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Duvert <vincent@duvert.net>2020-12-23 13:41:56 +0100
committerDamien George <damien@micropython.org>2021-01-23 17:44:27 +1100
commit45f0b6ab6300e75a17f6427ec45d812e072a9522 (patch)
tree90d6a86d5e6ebaa7da372e061fa64caa18fe01b2
parent342dc617842c7ebdc2b93dcbbfe9f0f9bb4789d3 (diff)
cc3200: Fix debug build.
* Fix a typo in the Makefile that prevented the debug build to be actually enabled when BTYPE=debug is used. * Add a missing header in modmachine.c that is used when a debug build is created.
-rw-r--r--ports/cc3200/application.mk2
-rw-r--r--ports/cc3200/mods/modmachine.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/ports/cc3200/application.mk b/ports/cc3200/application.mk
index b216ca16d..2125274ae 100644
--- a/ports/cc3200/application.mk
+++ b/ports/cc3200/application.mk
@@ -182,7 +182,7 @@ ifeq ($(BTYPE), release)
CFLAGS += -DNDEBUG
else
ifeq ($(BTYPE), debug)
-CFLAGS += -DNDEBUG
+CFLAGS += -DDEBUG
else
$(error Invalid BTYPE specified)
endif
diff --git a/ports/cc3200/mods/modmachine.c b/ports/cc3200/mods/modmachine.c
index ddecd47f2..89800810c 100644
--- a/ports/cc3200/mods/modmachine.c
+++ b/ports/cc3200/mods/modmachine.c
@@ -26,6 +26,7 @@
*/
#include <stdint.h>
+#include <stdio.h>
#include "py/runtime.h"
#include "py/mphal.h"