SuperHouse / esp-open-rtos

Open source FreeRTOS-based ESP8266 software framework
BSD 3-Clause "New" or "Revised" License
1.53k stars 491 forks source link

tsoftuart: add a softare timer base UART driver, and example. #713

Closed ourairquality closed 5 years ago

ourairquality commented 5 years ago

This has been used to help drive some sensors at 9600 baud with minimal overhead by using a hardware timer, the MAC timer. So far it only implements output, not input. It is also an example of the use of the MAC timer.

There is already a software UART driver, but it has a simpler output implement that spins waiting for delays to pass and it's timing is affected by maskable interrupts.