From e5262dc4647ffacf7893c0ca8f2bf9c29b493e27 Mon Sep 17 00:00:00 2001 From: Aditya Naik Date: Wed, 12 Feb 2020 20:06:12 -0500 Subject: Added stm32 example writeup --- examples/stm32/main.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 examples/stm32/main.c (limited to 'examples') 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; +} -- cgit v1.2.3