Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool USART_PutChar(char c){
- bool result = false;
- CORE_EnterCriticalSection();
- result = RingBuffer_PutChar(&USART_RingBuffer_Tx, c);
- CORE_ExitCriticalSection();
- if(result == true)
- {
- __USART_ENABLE_IT(&UartHandle, USART_IT_TXE);
- }
- return result;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement