# HG changeset patch # User Mychaela Falconia # Date 1465540025 0 # Node ID 0023033277051887b3c611edc15d6b723a9954aa # Parent bb29929d4b3d60433508110a4589f60bd0716f28 l1audio_init.c compiles once again diff -r bb29929d4b3d -r 002303327705 L1/audio_cfile/Makefile --- a/L1/audio_cfile/Makefile Fri Jun 10 06:22:47 2016 +0000 +++ b/L1/audio_cfile/Makefile Fri Jun 10 06:27:05 2016 +0000 @@ -1,7 +1,7 @@ CC= arm-elf-gcc CPPFLAGS=-I../../include -I../include -I../audio_include -I../audio_cust0 \ -I../dyn_dwl_include -I../tm_include -I../tm_cust0 -I../cust0 \ - -I../tpudrv -DMOVE_IN_INTERNAL_RAM + -I../tpudrv -I../../bsp -DMOVE_IN_INTERNAL_RAM CFLAGS= -O2 -fno-builtin -mthumb-interwork LD= arm-elf-ld diff -r bb29929d4b3d -r 002303327705 L1/audio_cfile/l1audio_init.c --- a/L1/audio_cfile/l1audio_init.c Fri Jun 10 06:22:47 2016 +0000 +++ b/L1/audio_cfile/l1audio_init.c Fri Jun 10 06:27:05 2016 +0000 @@ -11,8 +11,9 @@ /* Include files... */ /************************************/ +#include "config.h" +#include "l1_confg.h" #include "l1_macro.h" -#include "l1_confg.h" #include "l1_types.h" @@ -110,7 +111,7 @@ #endif #include "l1_defty.h" - #include "cust_os.h" + #include "../../gpf/inc/cust_os.h" #include "l1_msgty.h" #include "tpudrv.h" // TPU drivers. ("eva3.lib") #include "l1_varex.h" @@ -145,6 +146,22 @@ extern T_L1_BT_AUDIO bt_audio; #endif +/* + * FreeCalypso hack: the version of l1_confg.h in the Leonardo semi-src + * sets AUDIO_TASK to 1 unconditionally, thus it appears that by the + * time TCS211 came around, TI stopped supporting and testing the + * sans-AUDIO_TASK configuration. We do wish to support it in FreeCalypso + * though. Attempting to compile this module w/o AUDIO_TASK failed + * because some preprocessor constant definitions were missing. + * All 3 offending constants are defined in l1audio_const.h, but only + * when AUDIO_TASK is enabled. The following hack is our workaround. + */ +#if !AUDIO_TASK + #define C_BGD_RECOGN 5 + #define C_BGD_ALIGN 6 + #define NO_MELODY_SELECTED (0) +#endif + /**************************************/ /* Prototypes for L1 initialization */ /**************************************/