sparkfun / SparkFun_LTE_Shield_Arduino_Library

Arduino Library for the SparkFun LTE Cat M1/NB-IoT Shield.
Other
27 stars 14 forks source link

Add STM32 core support #9

Closed fpistm closed 4 years ago

fpistm commented 4 years ago

Hi here a PR to add support of the STM32 core: https://github.com/stm32duino/Arduino_Core_STM32

Issue has been raised on the stm32duino forum: https://www.stm32duino.com/viewtopic.php?f=12&t=509

oclyke commented 4 years ago

Thanks. Looking at this makes me wonder why #define LTE_SHIELD_SOFTWARE_SERIAL_ENABLED needs to be restricted to particular boards. That is, however, a different issue. Merging 🥳

fpistm commented 4 years ago

Welcome and thanks for the merge. Being compatible with all core is not so easy. Most of the core had the SoftwareSerial library for compatibility. Anyway some does not have it.In a general way I advise to use the HardwareSerial which is more reliable. The main goal of softwareSerial is to provide some extra Serial interface for mcu with limited hardware one like the UNO. For the STM32 this is not an issue as there are several hardware U(S)ART.