Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void USART1_IRQHandler(void)
- {
- extern char snbuf[10];
- extern int odebrano_polecenie;
- unsigned char d;
- if(USART_GetFlagStatus(USART1, USART_FLAG_RXNE) != RESET)
- {
- d = USART_ReceiveData(USART1);
- if(odebrano_polecenie == 1)
- return;
- if(l>6)
- snbuf[l-7] = d;
- if(++l >16)
- {
- l = 0;
- odebrano_polecenie = 1;
- }
- }
- }
Add Comment
Please, Sign In to add comment