Commit 33472d31 by Enrico Pozzobon

Trying better to remove DEBUG flags

parent b0ec33ff
...@@ -3,7 +3,8 @@ platform = ststm32 ...@@ -3,7 +3,8 @@ platform = ststm32
framework = arduino framework = arduino
board = bluepill_f103c8_128k board = bluepill_f103c8_128k
upload_protocol = jlink upload_protocol = jlink
build_flags = -O2 build_flags = -O2 -UDEBUG -DNDEBUG
-D NUM_ANALOG_INPUTS=10 -D NUM_ANALOG_INPUTS=10
-D NUM_ANALOG_FIRST=20 -D NUM_ANALOG_FIRST=20
build_unflags = -Os build_unflags = -Os
build_type = release
...@@ -2,5 +2,6 @@ ...@@ -2,5 +2,6 @@
platform = espressif32 platform = espressif32
framework = arduino framework = arduino
board = esp32dev board = esp32dev
build_flags = -O2 build_flags = -O2 -UDEBUG -DNDEBUG
build_unflags = -Os build_unflags = -Os
build_type = release
...@@ -107,7 +107,9 @@ C_DEFS = \ ...@@ -107,7 +107,9 @@ C_DEFS = \
-DVDD_VALUE=3300 \ -DVDD_VALUE=3300 \
-DPREFETCH_ENABLE=0 \ -DPREFETCH_ENABLE=0 \
-DART_ACCLERATOR_ENABLE=0 \ -DART_ACCLERATOR_ENABLE=0 \
-DSTM32F746xx -DSTM32F746xx \
-DNDEBUG \
-UDEBUG
# AS includes # AS includes
......
...@@ -13,5 +13,6 @@ board_build.f_cpu = 600000000L ...@@ -13,5 +13,6 @@ board_build.f_cpu = 600000000L
upload_speed = 750000 upload_speed = 750000
; compiler optimizations to favour speed over size ; compiler optimizations to favour speed over size
build_flags = -O3 build_flags = -O3 -UDEBUG -DNDEBUG
build_unflags = -Os build_unflags = -Os
build_type = release
...@@ -2,3 +2,5 @@ ...@@ -2,3 +2,5 @@
platform = atmelavr platform = atmelavr
framework = arduino framework = arduino
board = uno board = uno
build_flags = -Os -UDEBUG -DNDEBUG
build_type = release
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment