master modbus library for STM32 LL
This is the MMODBUS STM32 LL Library
Tested devices
How to use this Library:
#include "mmodbus.h"
int main()
{
mmodbus_init(2500);
mmodbus_writeCoil(10, 0, 1);
while(1)
{
}
}
in stm32f4xx_it.c
void USART3_IRQHandler(void)
{
mmodbus_callback();
}
// if use tx dma
void DMA1_Stream3_IRQHandler(void)
{
mmodbus_callback_txDMA();
}