added astylerc

pull/1/head
Ondřej Hruška 8 years ago
parent d8d02fffca
commit 79c5796bf5
  1. 7
      avr-c-bp.pro
  2. 2
      lib/usart.c
  3. 14
      style.astylerc

@ -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===
#

@ -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))

@ -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
Loading…
Cancel
Save