added test stuff back in.
This commit is contained in:
parent
1750a9b65d
commit
ed2e9d0f82
12
avr_usart.c
12
avr_usart.c
|
@ -7,6 +7,7 @@
|
||||||
#include <avr/io.h>
|
#include <avr/io.h>
|
||||||
#include <avr/interrupt.h>
|
#include <avr/interrupt.h>
|
||||||
#include <avr/sleep.h>
|
#include <avr/sleep.h>
|
||||||
|
#include <stdint.h>
|
||||||
#include <util/delay.h>
|
#include <util/delay.h>
|
||||||
#include "avr_usart.h"
|
#include "avr_usart.h"
|
||||||
|
|
||||||
|
@ -16,7 +17,7 @@
|
||||||
//#############################
|
//#############################
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
|
|
||||||
led_blink();
|
led_blink();
|
||||||
led_blink();
|
led_blink();
|
||||||
led_blink();
|
led_blink();
|
||||||
|
@ -43,15 +44,6 @@ int main() {
|
||||||
//data = rx_usart0();
|
//data = rx_usart0();
|
||||||
serial0_flush_rxbuf();
|
serial0_flush_rxbuf();
|
||||||
serial0_read_with_err_checking(data, 1);
|
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;
|
return 0;
|
||||||
|
|
|
@ -56,3 +56,7 @@ void serial0_flush_rxbuf(void);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue