diff --git a/avr-c-bp.pro b/avr-c-bp.pro index 750f61b..830c741 100644 --- a/avr-c-bp.pro +++ b/avr-c-bp.pro @@ -11,7 +11,9 @@ DEFINES += __AVR_ATmega328P__ F_CPU=16000000UL DISTFILES += \ style.astylerc \ - Makefile + Makefile \ + README.md \ + LICENSE HEADERS += \ lib/calc.h \ @@ -20,7 +22,8 @@ HEADERS += \ SOURCES += \ lib/iopins.c \ - main.c + main.c \ + lib/usart.c # === Flags for the Clang code model=== # diff --git a/lib/usart.c b/lib/usart.c index ace6eaa..5137092 100644 --- a/lib/usart.c +++ b/lib/usart.c @@ -66,7 +66,7 @@ void usart_puts_P(const char* str) /** Clear receive buffer */ -void usart_clear_rx() +void usart_clear_rx(void) { uint8_t dummy; while (bit_is_high(UCSR0A, RXC0)) diff --git a/style.astylerc b/style.astylerc new file mode 100644 index 0000000..d7cde65 --- /dev/null +++ b/style.astylerc @@ -0,0 +1,14 @@ +style=kr +indent=tab +max-instatement-indent=60 + +convert-tabs + +indent-switches +keep-one-line-statements + +pad-oper +unpad-paren +pad-header + +verbose