added test stuff back in.

This commit is contained in:
Jake Goodwin 2023-01-14 13:45:21 -08:00
parent 1750a9b65d
commit ed2e9d0f82
2 changed files with 6 additions and 10 deletions

View File

@ -7,6 +7,7 @@
#include <avr/io.h>
#include <avr/interrupt.h>
#include <avr/sleep.h>
#include <stdint.h>
#include <util/delay.h>
#include "avr_usart.h"
@ -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;

View File

@ -56,3 +56,7 @@ void serial0_flush_rxbuf(void);