]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lib.git/commitdiff
Created a RPP configuration override test project.
authorCarlos Miguel Jenkins Pérez <carlos@jenkins.co.cr>
Wed, 29 May 2013 22:00:41 +0000 (00:00 +0200)
committerCarlos Miguel Jenkins Pérez <carlos@jenkins.co.cr>
Wed, 29 May 2013 22:00:41 +0000 (00:00 +0200)
rpp/include/rpp/rpp.h
test/rpp-layer/include/RppConfig.h [new file with mode: 0644]
test/rpp-layer/src/.gitignore [new file with mode: 0644]

index 693b280e4b4698d316d5408fd289080f36bf3068..5d5407d66493ae16e49afbbe129804612a4b217e 100644 (file)
 #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 (file)
index 0000000..9c27480
--- /dev/null
@@ -0,0 +1,41 @@
+/**
+ * RPP API configuration override file.
+ *
+ * @file RppConfig.h
+ *
+ * @copyright Copyright (C) 2013 Czech Technical University in Prague
+ *
+ * @author Carlos Jenkins <carlos@jenkins.co.cr>
+ */
+
+/*
+ * 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 (file)
index 0000000..e69de29