summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
+}