FreeCalypso > hg > freecalypso-citrine
changeset 15:002303327705
l1audio_init.c compiles once again
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 10 Jun 2016 06:27:05 +0000 |
parents | bb29929d4b3d |
children | 2dcce7bda202 |
files | L1/audio_cfile/Makefile L1/audio_cfile/l1audio_init.c |
diffstat | 2 files changed, 20 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- 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 */ /**************************************/