From 79c5796bf510bbb6c91107addb27bd6ab5e0cbde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Sun, 7 Feb 2016 20:12:03 +0100 Subject: [PATCH] added astylerc --- avr-c-bp.pro | 7 +++++-- lib/usart.c | 2 +- style.astylerc | 14 ++++++++++++++ 3 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 style.astylerc 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