USART Library has been updated!

Today I’ve modified USART library.

My library uses receive interrupt. After that, it just save data into cyclic buffer. User actually don’t know when that happen. Today, I was working on some project, where I need to know exact time, when data arrived on USART.

For that purpose, I’ve modified USART library.

To be able to know exact time when data arrived, you have to add defines in your defines.h file:

Then, you have to manually create a function inside your project somewhere (let’s say in main.c) called:

Note: If you activate custom receive interrupt handler, than incoming byte is not saved into cyclic buffer anymore!


Owner of this site. Application engineer, currently employed by STMicroelectronics. Exploring latest technologies and owner of different libraries posted on Github.

You may also like...