comparison gsm-fw/gpf/inc/gpfconf.h @ 317:06ee56829697

GPF: frame.c compiles
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Fri, 11 Apr 2014 05:37:27 +0000
parents
children
comparison
equal deleted inserted replaced
316:79080922d8e4 317:06ee56829697
1 /*
2 * This header file is a FreeCalypso addition; ditto for the
3 * #include "gpfconf.h" lines which had to be added near the beginning
4 * of just about every original GPF header file.
5 *
6 * In their original form, GPF sources and headers required all of the
7 * library compile-time configuration settings (i.e., those config
8 * settings which affect the library build, rather than stuff set in
9 * the separately-linked configuration module) to be given as -D arguments
10 * on the compilation command line. It would have been fine if these
11 * -D definitions were needed only for the build of GPF libs themselves,
12 * but the #ifdef logic in the header files means that these -D defs
13 * were also needed for every user of these GPF headers as well!
14 *
15 * This bizarre quirk of the GPF headers is fully consistent with TI's
16 * general approach of supplying an insanely long list of -I's and -D's
17 * on the cl470 compilation command line for every single module,
18 * first through BuSyB-generated makefiles, then later through SBuild
19 * voodoo. Needless to say, we wish no part of that lunacy in FreeCalypso.
20 *
21 * Because of the nature of the preprocessor definitions needed for GPF
22 * (some are totally fixed, others may be tweaked for debugging, but
23 * none are of the target/feature-dependent sort), I decided to create
24 * this gpfconf.h header file instead of adding this junk to the
25 * config.h mechanism.
26 */
27
28 /* the following two are needed unquestionably */
29 #define _TARGET_ 1
30 #define _NUCLEUS_ 1
31
32 /*
33 * GPF build configuration settings like debug and memory supervision
34 * are selected here. For now I'm setting the "official" configuration
35 * to match that of the GPF libs in the Leonardo semi-src, the one that
36 * runs on the GTA02 modem as leo2moko production-quality firmware.
37 */
38 #define NU_DEBUG 1