Skip to main content

Posts

Showing posts from May, 2018

ESP32: UART interrupt Handling

I am Sushant, from Mumbai, India. I am an embedded firmware engineer, i love to write code for micro controllers. This may not be a professional post, you may have to tolerate my unprofessional writing skills. Anyways todays topic in ESP32, a very commonly and trending MCU. I had come across project where there was a need to write my own code for UART, i tried or you can searched google even on page 2, but could find any sample code or example. I found the solution, not easy way, had to put in some hours, but i would like to put this example in blog so everybody can use it or understand it, It is simple code for UART receive interrupt, So Lets start, Everybody must be aware of how to initialise UART to use as RTOS task in ESP32, oh yeah and also i have used ESP-IDF to demostrate this code, so for arduino geeks this may not help, not a arduino FAN :). Firstly,  Configuring parameters of an UART; uart_config_t uart_config = { .baud_rate = 115200, .data_bits =