]> rtime.felk.cvut.cz Git - pes-rpp/rpp-test-sw.git/blobdiff - rpp-test-sw/commands/main.c
Change license to MIT
[pes-rpp/rpp-test-sw.git] / rpp-test-sw / commands / main.c
index 07dc5e0f6f48617db9fa3a1e1296a27aa7c3a1dd..59359b3092ece8b1e19e9c0c4b5ed13422b2d31c 100644 (file)
@@ -7,10 +7,26 @@
  *     - Michal Horn\r
  *     - Carlos Jenkins <carlos@jenkins.co.cr>\r
  *\r
- * This document contains proprietary information belonging to Czech\r
- * Technical University in Prague. Passing on and copying of this\r
- * document, and communication of its contents is not permitted\r
- * without prior written authorization.\r
+ * Permission is hereby granted, free of charge, to any person\r
+ * obtaining a copy of this software and associated documentation\r
+ * files (the "Software"), to deal in the Software without\r
+ * restriction, including without limitation the rights to use,\r
+ * copy, modify, merge, publish, distribute, sublicense, and/or sell\r
+ * copies of the Software, and to permit persons to whom the\r
+ * Software is furnished to do so, subject to the following\r
+ * conditions:\r
+ *\r
+ * The above copyright notice and this permission notice shall be\r
+ * included in all copies or substantial portions of the Software.\r
+ *\r
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\r
+ * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\r
+ * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\r
+ * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\r
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\r
+ * OTHER DEALINGS IN THE SOFTWARE.\r
  *\r
  * File : main.c\r
  *\r
@@ -31,6 +47,8 @@
 #define TARGET_STR "TI HDK RM48L952"\r
 #elif defined(TARGET_TMS570_HYDCTR)\r
 #define TARGET_STR "Eaton Hydraulics Controller"\r
+#elif defined(TARGET_TMS570_RPP)\r
+#define TARGET_STR "Porsche Rapid Prototyping Platform"\r
 #elif defined(TARGET_POSIX)\r
 #define TARGET_STR "POSIX version"\r
 #else\r
@@ -44,9 +62,7 @@
  */\r
 void main(void)\r
 {\r
-       rpp_adc_init();\r
-       rpp_gio_init(RPP_GIO_PORT_ALL);\r
-       rpp_sci_init();\r
+       rpp_init();\r
 \r
        // Speed up the SCI\r
        rpp_sci_setup(115200);\r