]> rtime.felk.cvut.cz Git - jenkicar/rpp-simulink.git/commitdiff
Including RPP library header on all files and conditional compiling function based...
authorCarlos Miguel Jenkins Pérez <carlos@jenkins.co.cr>
Mon, 20 May 2013 20:58:35 +0000 (22:58 +0200)
committerCarlos Miguel Jenkins Pérez <carlos@jenkins.co.cr>
Mon, 20 May 2013 20:58:35 +0000 (22:58 +0200)
17 files changed:
doc/reports/report1/report1.t2t
rpp/lib/rpp/generate.py
rpp/lib/rpp/src/rpp.c
rpp/lib/rpp/src/rpp_ain.c
rpp/lib/rpp/src/rpp_aout.c
rpp/lib/rpp/src/rpp_can.c
rpp/lib/rpp/src/rpp_din.c
rpp/lib/rpp/src/rpp_dout.c
rpp/lib/rpp/src/rpp_eth.c
rpp/lib/rpp/src/rpp_fr.c
rpp/lib/rpp/src/rpp_hbr.c
rpp/lib/rpp/src/rpp_hout.c
rpp/lib/rpp/src/rpp_lin.c
rpp/lib/rpp/src/rpp_mout.c
rpp/lib/rpp/src/rpp_sci.c
rpp/lib/rpp/src/rpp_sdc.c
rpp/lib/rpp/src/rpp_sdr.c

index f222aa77cf8689a2e89400d5164916a0b4e71497..ce4c500bad30bb7172862400a884ae694e0e1ae6 100644 (file)
@@ -31,6 +31,14 @@ Code generation for automotive rapid prototyping platform using Matlab/Simulink
 
 
 
+= Hardware =[hardware]
+
+
+
+== External Memory SDRAM ==[external_memory_sdram]
+
+
+
 = Conclusions =[conclusions]
 
 
index e62730208ad08145d5e264b73918cb5882719e1e..0905f3d008aed34bfc972516cae2d73d9cf1d489 100755 (executable)
@@ -28,6 +28,7 @@ header = '''\
  *     {abstract}
  *
  * References:
+ *     {prefix}{mne}.h
  *     RPP API documentation.
  */
 
@@ -85,9 +86,12 @@ def generate_file(where, prefix, mne, ext, abstract, type_name):
                      '#endif /* __RPP_{mneu}_H */\n\n').format(**locals()))
         else:
             f.write(header.format(**locals()))
-            f.write(('void rpp_{mne}_init() {{\n'
+            f.write(('#include "rpp.h"\n\n'
+                     '#if rppCONFIG_INCLUDE_{mneu} == 1\n\n'
+                     'void rpp_{mne}_init() {{\n'
                      '    // FIXME: Implement.\n'
-                     '}}\n\n\n').format(**locals()))
+                     '}}\n\n\n'
+                     '#endif /* rppCONFIG_INCLUDE_{mneu} */\n\n').format(**locals()))
 
 
 def generate_files():
index 84b11649c814bf30a5ef59dd3a18946431e2de7f..6ef63c8bf46f3a129138dcb6717a7fd73d328e1c 100644 (file)
@@ -21,6 +21,7 @@
  *     RPP API library implementation file.
  *
  * References:
+ *     rpp.h
  *     RPP API documentation.
  */
 
index d48918925db7338b3d686b7bebdb1d1b244b1d2a..977b8b80da629925fba9874d80afe2c298650a2d 100644 (file)
  *     Analog Input RPP API implementation file.
  *
  * References:
+ *     rpp_ain.h
  *     RPP API documentation.
  */
 
 
+#include "rpp.h"
+
+#if rppCONFIG_INCLUDE_AIN == 1
+
 void rpp_ain_init() {
     // FIXME: Implement.
 }
 
 
+#endif /* rppCONFIG_INCLUDE_AIN */
+
index 2adf073035d56cf4c403162dcb98140f32fbf75a..d59e5a9bdc29bb3a7accf12fae70599c17d4f911 100644 (file)
  *     Analog Output RPP API implementation file.
  *
  * References:
+ *     rpp_aout.h
  *     RPP API documentation.
  */
 
 
+#include "rpp.h"
+
+#if rppCONFIG_INCLUDE_AOUT == 1
+
 void rpp_aout_init() {
     // FIXME: Implement.
 }
 
 
+#endif /* rppCONFIG_INCLUDE_AOUT */
+
index 31b6096fc4172c7a14a1acf7fd71b8fb286c5185..26a0fc1ba593eca35efeb25b06b7f5f9c3313f58 100644 (file)
  *     CAN Bus Communication RPP API implementation file.
  *
  * References:
+ *     rpp_can.h
  *     RPP API documentation.
  */
 
 
+#include "rpp.h"
+
+#if rppCONFIG_INCLUDE_CAN == 1
+
 void rpp_can_init() {
     // FIXME: Implement.
 }
 
 
+#endif /* rppCONFIG_INCLUDE_CAN */
+
index d9212eb1672feb7bab29fbae876254f60238b76a..e470e9f255d011ec8a00c11bf9aa2cd2b11441b5 100644 (file)
  *     Digital Input RPP API implementation file.
  *
  * References:
+ *     rpp_din.h
  *     RPP API documentation.
  */
 
 
+#include "rpp.h"
+
+#if rppCONFIG_INCLUDE_DIN == 1
+
 void rpp_din_init() {
     // FIXME: Implement.
 }
 
 
+#endif /* rppCONFIG_INCLUDE_DIN */
+
index 317d0691bc5aa4d4367fc593f6410c636b946c16..c76de64c729a21d3bae4da5468ef1443e0077ce9 100644 (file)
  *     Digital Output RPP API implementation file.
  *
  * References:
+ *     rpp_dout.h
  *     RPP API documentation.
  */
 
 
+#include "rpp.h"
+
+#if rppCONFIG_INCLUDE_DOUT == 1
+
 void rpp_dout_init() {
     // FIXME: Implement.
 }
 
 
+#endif /* rppCONFIG_INCLUDE_DOUT */
+
index 99b620b30af43ac82132786356586754ac7b8b7e..79221b7ae421e68b79268f3b81bf7e7b66e7c831 100644 (file)
  *     Ethernet Communication RPP API implementation file.
  *
  * References:
+ *     rpp_eth.h
  *     RPP API documentation.
  */
 
 
+#include "rpp.h"
+
+#if rppCONFIG_INCLUDE_ETH == 1
+
 void rpp_eth_init() {
     // FIXME: Implement.
 }
 
 
+#endif /* rppCONFIG_INCLUDE_ETH */
+
index 68b9198fe5a2e901d1382551af187feb224beca8..b1f0118d4ae9709c9bf7f0f3107e37c7d9be0dee 100644 (file)
  *     FlexRay Communication RPP API implementation file.
  *
  * References:
+ *     rpp_fr.h
  *     RPP API documentation.
  */
 
 
+#include "rpp.h"
+
+#if rppCONFIG_INCLUDE_FR == 1
+
 void rpp_fr_init() {
     // FIXME: Implement.
 }
 
 
+#endif /* rppCONFIG_INCLUDE_FR */
+
index 034fe8ad5535a6388f5c1c32b167c5e869b5f069..cddfb231b46ef1d42f4ed78dd9d9e959ebd21d95 100644 (file)
  *     H-Bridge Output RPP API implementation file.
  *
  * References:
+ *     rpp_hbr.h
  *     RPP API documentation.
  */
 
 
+#include "rpp.h"
+
+#if rppCONFIG_INCLUDE_HBR == 1
+
 void rpp_hbr_init() {
     // FIXME: Implement.
 }
 
 
+#endif /* rppCONFIG_INCLUDE_HBR */
+
index a2e1809b2910f12296ddb5c7b3bba898061272b8..7948d3fdda1b4b810838769515dcfc875c645612 100644 (file)
  *     High-Power Output (12V, 10A, PWM) RPP API implementation file.
  *
  * References:
+ *     rpp_hout.h
  *     RPP API documentation.
  */
 
 
+#include "rpp.h"
+
+#if rppCONFIG_INCLUDE_HOUT == 1
+
 void rpp_hout_init() {
     // FIXME: Implement.
 }
 
 
+#endif /* rppCONFIG_INCLUDE_HOUT */
+
index 75fe14f376b4da1569437dd787eaac03b20b3262..6db19bef6561b6fa99499b465b1a343c826c0200 100644 (file)
  *     LIN Communication RPP API implementation file.
  *
  * References:
+ *     rpp_lin.h
  *     RPP API documentation.
  */
 
 
+#include "rpp.h"
+
+#if rppCONFIG_INCLUDE_LIN == 1
+
 void rpp_lin_init() {
     // FIXME: Implement.
 }
 
 
+#endif /* rppCONFIG_INCLUDE_LIN */
+
index d297e4aa9db35fb989e75a75e82628ea0c9e5ea7..6bb1d924d1c88b3abeb88c81ba160e505a162295 100644 (file)
  *     Power Output (12V, 2A, Push/Pull) RPP API implementation file.
  *
  * References:
+ *     rpp_mout.h
  *     RPP API documentation.
  */
 
 
+#include "rpp.h"
+
+#if rppCONFIG_INCLUDE_MOUT == 1
+
 void rpp_mout_init() {
     // FIXME: Implement.
 }
 
 
+#endif /* rppCONFIG_INCLUDE_MOUT */
+
index 9967125b57ae96e51f4bb08980875baa9f31b369..e39a059e131711a059946fcbd63a6f82ff08cf25 100644 (file)
  *     Serial Communication Interface RPP API implementation file.
  *
  * References:
+ *     rpp_sci.h
  *     RPP API documentation.
  */
 
 
+#include "rpp.h"
+
+#if rppCONFIG_INCLUDE_SCI == 1
+
 void rpp_sci_init() {
     // FIXME: Implement.
 }
 
 
+#endif /* rppCONFIG_INCLUDE_SCI */
+
index f3882ff1f9aa7177cd985792c45be1b3def1fd07..52ee7ec0e11af7118138ad642696554c8c78306e 100644 (file)
  *     SD Card logging RPP API implementation file.
  *
  * References:
+ *     rpp_sdc.h
  *     RPP API documentation.
  */
 
 
+#include "rpp.h"
+
+#if rppCONFIG_INCLUDE_SDC == 1
+
 void rpp_sdc_init() {
     // FIXME: Implement.
 }
 
 
+#endif /* rppCONFIG_INCLUDE_SDC */
+
index aa3257f3547d7f54f356c73a8da0c55a691fd97f..0803dfb1a0d100426dd360757be786292dd8103f 100644 (file)
  *     SD-RAN logging RPP API implementation file.
  *
  * References:
+ *     rpp_sdr.h
  *     RPP API documentation.
  */
 
 
+#include "rpp.h"
+
+#if rppCONFIG_INCLUDE_SDR == 1
+
 void rpp_sdr_init() {
     // FIXME: Implement.
 }
 
 
+#endif /* rppCONFIG_INCLUDE_SDR */
+