diff components/uart_drv @ 307:6d1eac845d3e

make it possible to enable SERIAL_DYNAMIC_SWITCH on the configure.sh line
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 02 Nov 2017 05:49:53 +0000
parents 967319e95535
children
line wrap: on
line diff
--- a/components/uart_drv	Thu Nov 02 05:42:39 2017 +0000
+++ b/components/uart_drv	Thu Nov 02 05:49:53 2017 +0000
@@ -3,6 +3,11 @@
 CFLAGS="-mn -mt -o -x -mw -me -pw2"
 CPPFLAGS="-DTOOL_CHOICE=0 -D_TMS470"
 
+if [ "$SERIAL_DYNAMIC_SWITCH" = 1 ]
+then
+	CPPFLAGS="$CPPFLAGS -DSERIAL_DYNAMIC_SWITCH"
+fi
+
 # Includes
 
 CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_app"