diff --git a/avr_usart.c b/avr_usart.c index e873d13..2dbcd84 100644 --- a/avr_usart.c +++ b/avr_usart.c @@ -7,6 +7,7 @@ #include #include #include +#include #include #include "avr_usart.h" @@ -16,7 +17,7 @@ //############################# int main() { - + led_blink(); led_blink(); led_blink(); @@ -43,15 +44,6 @@ int main() { //data = rx_usart0(); serial0_flush_rxbuf(); serial0_read_with_err_checking(data, 1); - unsigned char data[] = "AT+WAKE"; - - while(1) { - _delay_ms(1000); - //led_blink(); - for(uint8_t i = 0; i < 7; i++) { - tx_usart0(data[i]); - } - } return 0; diff --git a/avr_usart.h b/avr_usart.h index fa82f33..f3cb982 100644 --- a/avr_usart.h +++ b/avr_usart.h @@ -56,3 +56,7 @@ void serial0_flush_rxbuf(void); + + + +