Quantcast
Channel: Keil Discussion Forum RSS Feed
Viewing all articles
Browse latest Browse all 3049

ARM: Break condition in while loop (1 Replies)

$
0
0
Following is my program. I am trying to read characters at different baud rate and if no character is received within 10 seconds I want to break out of the loop and similarly if any character other than alphabets is received, I again want to break out of the loop? How can I do that. Please guide me. char read() { while(1) { delay_ms(10000); break; if((uart_RxChar() >= 65 && uart_RxChar() <= 90) || (uart_RxChar() >= 9

Viewing all articles
Browse latest Browse all 3049

Trending Articles