]> rtime.felk.cvut.cz Git - arc.git/blobdiff - boards/ti_tms570ls/examples/tms570_hdk_can/Calculator.c
Added an example of CAN communication for the TMS570LS31x HDK
[arc.git] / boards / ti_tms570ls / examples / tms570_hdk_can / Calculator.c
diff --git a/boards/ti_tms570ls/examples/tms570_hdk_can/Calculator.c b/boards/ti_tms570ls/examples/tms570_hdk_can/Calculator.c
new file mode 100644 (file)
index 0000000..b996c71
--- /dev/null
@@ -0,0 +1,11 @@
+/*\r
+ * Calculator.c\r
+ *\r
+ */\r
+\r
+#include "Rte_Calculator.h"\r
+\r
+Std_ReturnType Multiply(const UInt8 arg1, const UInt8 arg2, UInt16* result) {\r
+       *result = arg1 * arg2;\r
+       return RTE_E_OK;\r
+}\r