changeset 167:5b0e7f9b3d05

components: new -D additions from Magnetite
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 19 Jun 2019 03:57:35 +0000
parents 7409b22cac61
children aa2956979fcb
files components/bootloader components/drivers_flash components/main
diffstat 3 files changed, 15 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/components/bootloader	Sun Apr 07 00:56:07 2019 +0000
+++ b/components/bootloader	Wed Jun 19 03:57:35 2019 +0000
@@ -17,6 +17,13 @@
 ASMFLAGS="$ASMFLAGS -dOP_WCP=0"
 ASMFLAGS="$ASMFLAGS -dWCP_PROF=0"
 
+if [ "$RF" = 12 ]
+then
+	ASMFLAGS="$ASMFLAGS -dVCXO_26MHZ=1"
+else
+	ASMFLAGS="$ASMFLAGS -dVCXO_26MHZ=0"
+fi
+
 asm_file $SRCDIR/bootloader.s
 
 ASMFLAGS="-mt -me"
--- a/components/drivers_flash	Sun Apr 07 00:56:07 2019 +0000
+++ b/components/drivers_flash	Wed Jun 19 03:57:35 2019 +0000
@@ -2,7 +2,7 @@
 
 CFLAGS="-me -pw2 -mn -x -mt -o2 -mw"
 CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
-CPPFLAGS="-DTOOL_CHOICE=0 -D_TMS470"
+CPPFLAGS="-DTOOL_CHOICE=0 -D_TMS470 -DMMI=$MMI"
 
 # Includes
 
--- a/components/main	Sun Apr 07 00:56:07 2019 +0000
+++ b/components/main	Wed Jun 19 03:57:35 2019 +0000
@@ -91,6 +91,13 @@
 	ASMFLAGS="$ASMFLAGS -dC155_TARGET=0"
 fi
 
+if [ "$RF" = 12 ]
+then
+	ASMFLAGS="$ASMFLAGS -dVCXO_26MHZ=1"
+else
+	ASMFLAGS="$ASMFLAGS -dVCXO_26MHZ=0"
+fi
+
 asm_file $SRCDIR/int.s
 
 fi