Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

STM32 AT Command LL library

License

NotificationsYou must be signed in to change notification settings

nimaltd/ATC-V2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

please usehttps://github.com/nimaltd/atc

This is the AT-Command STM32 LL Library

How to use this Library:

  • Select "General peripheral Initalizion as a pair of '.c/.h' file per peripheral" on project settings.
  • Enable USART and enable interrupt.
  • Enable TX DMA is optional.
  • Enable FREERTOS is optional.
  • Add atc_callback() into USART IRQ callback.
  • If Enabled TX DMA, Add atc_callback_txDMA() into DMA callback.
  • Include Header and source into your project.
  • Config "ATCConfig.h".
  • Call atc_init( .. .. .. ).
#include "atc.h"char answerString[128];uint8_t foundAnswer; int main(){  atc_init(ATC_Element_0, USART3, 256, 50, "WIFI", DMA1, LL_DMA_STREAM_3);  foundAnswer = atc_sendAtCommand(ATC_Element_0, "AT\r\n", 3000, answerString, 128, 2, "OK\r\n", "ERROR\r\n");    while(1)  {    atc_process();  }}

in stm32f4xx_it.c

void USART3_IRQHandler(void){  atc_callback(ATC_Element_0);}// if use tx dmavoid DMA1_Stream3_IRQHandler(void){  atc_callback_txDMA(ATC_Element_0);}

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp