aboutsummaryrefslogtreecommitdiff
path: root/include/usart.h
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2017-03-08 22:16:16 +0100
committerKarel Kočí <cynerd@email.cz>2017-03-08 22:16:16 +0100
commit171e8e92686ac65e8f9a2962a975e6863c791a4f (patch)
tree42c8ba7caee8d1e6c67eca533350dd003d47d14f /include/usart.h
parentfbe0e4d00ba7e026b8b848cfcd0ed583a71f8069 (diff)
downloadavr-ioe-171e8e92686ac65e8f9a2962a975e6863c791a4f.tar.gz
avr-ioe-171e8e92686ac65e8f9a2962a975e6863c791a4f.tar.bz2
avr-ioe-171e8e92686ac65e8f9a2962a975e6863c791a4f.zip
Shakeout of makefiles and Kconfigs
Diffstat (limited to 'include/usart.h')
-rw-r--r--include/usart.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/usart.h b/include/usart.h
index 76e423d..bb80885 100644
--- a/include/usart.h
+++ b/include/usart.h
@@ -4,7 +4,6 @@
#include <stdio.h>
#include "mcu/mcu_def.h"
-#include "tasks.h"
#include "utils/buffer.h"
#ifndef _USART_H_
@@ -39,10 +38,10 @@ void usart_send_str(char *str);
uint8_t usart_get(void);
#endif
static inline uint8_t usart_queryerror(void) {
- return UCSR0A & (_BV(FE0) | _BV(DOR0) | _BV(UPE0));
+ return UCSR0A & (_BV(FE0) | _BV(DOR0) | _BV(UPE0));
}
static inline int8_t usart_busy(void) {
- return _usart_busy;
+ return _usart_busy;
}
#ifdef CONFIG_USART_INPUT_BUFFER
uint8_t usart_inbuffered(void);