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:
1 2 3 4 5 6 7 8 9 10 11 |
//Enable custom receive interrupt handler for each USART //Enable for USART1 and so on //Put only this defines, you want to use #define TM_USART1_USE_CUSTOM_IRQ #define TM_USART2_USE_CUSTOM_IRQ #define TM_USART3_USE_CUSTOM_IRQ #define TM_UART4_USE_CUSTOM_IRQ #define TM_UART5_USE_CUSTOM_IRQ #define TM_USART6_USE_CUSTOM_IRQ #define TM_UART7_USE_CUSTOM_IRQ #define TM_UART8_USE_CUSTOM_IRQ |
Then, you have to manually create a function...
Recent comments