Added initial files

This commit is contained in:
Patrick Servello
2014-05-23 07:52:00 -05:00
parent dc32461a9b
commit 9b47750a0b
4 changed files with 327 additions and 0 deletions

26
example.c Normal file
View File

@ -0,0 +1,26 @@
#include <avr/io.h>
#include <util/delay.h>
#include <stdint.h>
#include "usart_printf/usart_printf.h"
#define FAULT_VCC_SHORT 3
#define FAULT_GND_SHORT 2
#define FAULT_OPEN_CONN 1
#define NO_FAULT 0
int main(void) {
usart_initialize();
stdout = &uart_output;
_delay_ms(10);
for(;;) {
printf("Hello AVR printf");
_delay_ms(1000);
}
}