From 7f39c8116fb986513347b7d9de54524203d35977 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Carlos=20Miguel=20Jenkins=20P=C3=A9rez?= Date: Thu, 30 May 2013 00:00:41 +0200 Subject: [PATCH] Created a RPP configuration override test project. --- rpp/include/rpp/rpp.h | 4 +++ test/rpp-layer/include/RppConfig.h | 41 ++++++++++++++++++++++++++++++ test/rpp-layer/src/.gitignore | 0 3 files changed, 45 insertions(+) create mode 100644 test/rpp-layer/include/RppConfig.h create mode 100644 test/rpp-layer/src/.gitignore diff --git a/rpp/include/rpp/rpp.h b/rpp/include/rpp/rpp.h index 693b280..5d5407d 100644 --- a/rpp/include/rpp/rpp.h +++ b/rpp/include/rpp/rpp.h @@ -16,7 +16,11 @@ #include "base.h" /* Include configuration */ +#ifdef __RPP_CONFIG_OVERRIDE +#include "RppConfig.h" +#else #include "rpp/RppConfig.h" +#endif /* Include modules */ #if rppCONFIG_INCLUDE_DIN == 1 diff --git a/test/rpp-layer/include/RppConfig.h b/test/rpp-layer/include/RppConfig.h new file mode 100644 index 0000000..9c27480 --- /dev/null +++ b/test/rpp-layer/include/RppConfig.h @@ -0,0 +1,41 @@ +/** + * RPP API configuration override file. + * + * @file RppConfig.h + * + * @copyright Copyright (C) 2013 Czech Technical University in Prague + * + * @author Carlos Jenkins + */ + +/* + * This is a configuration override file. + */ +#define __RPP_CONFIG_OVERRIDE + +/* + * Modules include RPP configuration options + */ +#define rppCONFIG_INCLUDE_DIN 1 +#define rppCONFIG_INCLUDE_LOUT 1 +#define rppCONFIG_INCLUDE_AIN 1 +#define rppCONFIG_INCLUDE_AOUT 1 +#define rppCONFIG_INCLUDE_HBR 1 +#define rppCONFIG_INCLUDE_MOUT 1 +#define rppCONFIG_INCLUDE_HOUT 1 +#define rppCONFIG_INCLUDE_CAN 1 +#define rppCONFIG_INCLUDE_LIN 1 +#define rppCONFIG_INCLUDE_FR 1 +#define rppCONFIG_INCLUDE_SCI 1 +#define rppCONFIG_INCLUDE_ETH 1 +#define rppCONFIG_INCLUDE_SDC 1 +#define rppCONFIG_INCLUDE_SDR 1 + +/** + * Compile against the DRV library. + * Set to 0 to compile a dummy library without backend. + * Setting to 0 is useful to test RPP library compile errors. + */ +#define rppCONFIG_DRV 0 + + diff --git a/test/rpp-layer/src/.gitignore b/test/rpp-layer/src/.gitignore new file mode 100644 index 0000000..e69de29 -- 2.39.2