summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAditya Naik2020-02-12 20:06:12 -0500
committerAditya Naik2020-02-12 20:06:12 -0500
commite5262dc4647ffacf7893c0ca8f2bf9c29b493e27 (patch)
treec7c17909f6d6af560b04cc75a0914cb448bbba91
parent5e5cb795a6ad50fa59bd7d07ebd5b875df5cf2f1 (diff)
Added stm32 example writeup
-rw-r--r--examples/stm32/main.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/examples/stm32/main.c b/examples/stm32/main.c
new file mode 100644
index 0000000..d0d7d86
--- /dev/null
+++ b/examples/stm32/main.c
@@ -0,0 +1,18 @@
+#include "modbus.h"
+
+/* If using CubeMX, the HAL library files will be automatically placed in the correct location. The examples were tested with the Makefile option in CubeMX. */
+/* If you are not using CubeMX to initialize the project, you are on your own */
+
+/* In order to run the example, you will need to copy the superloop code as well as the external function initializations from this file*/
+
+/* Function initialization for the STM32 HAL Library */
+/* Since this library was orignally written to work with the STM32 HAL/LL API, the UART functions match perfectly and can be directly mapped to the Modbus library functions */
+
+
+int main()
+{
+ while (1) {
+
+ }
+ return 1;
+}