aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers
diff options
context:
space:
mode:
authorHell <pajoke@163.com>2014-08-13 17:23:49 +0800
committerHell <pajoke@163.com>2014-08-13 17:55:05 +0800
commitf6fe9db8ba4aac3434697c495ef0934f9762577d (patch)
tree3c6178c1c592b571aa0960fc078c5b948b745ba7 /LUFA/Drivers
parentb6899bb98734a79514ab90583144139b879f7001 (diff)
downloadlufa-f6fe9db8ba4aac3434697c495ef0934f9762577d.tar.gz
lufa-f6fe9db8ba4aac3434697c495ef0934f9762577d.tar.bz2
lufa-f6fe9db8ba4aac3434697c495ef0934f9762577d.zip
Fix Serial_XMEGA.h syntax and define error
Diffstat (limited to 'LUFA/Drivers')
-rw-r--r--LUFA/Drivers/Peripheral/XMEGA/Serial_XMEGA.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/LUFA/Drivers/Peripheral/XMEGA/Serial_XMEGA.h b/LUFA/Drivers/Peripheral/XMEGA/Serial_XMEGA.h
index e7f9fee24..ad34c8535 100644
--- a/LUFA/Drivers/Peripheral/XMEGA/Serial_XMEGA.h
+++ b/LUFA/Drivers/Peripheral/XMEGA/Serial_XMEGA.h
@@ -226,7 +226,7 @@
static inline bool Serial_IsSendReady(USART_t* const USART) ATTR_ALWAYS_INLINE ATTR_WARN_UNUSED_RESULT ATTR_NON_NULL_PTR_ARG(1);
static inline bool Serial_IsSendReady(USART_t* const USART)
{
- return (USART->STATUS & USART_DREIF_bm) ? true : false);
+ return (USART->STATUS & USART_DREIF_bm) ? true : false;
}
/** Indicates whether the hardware USART transmit buffer is completely empty, indicating all
@@ -239,7 +239,7 @@
static inline bool Serial_IsSendComplete(USART_t* const USART) ATTR_ALWAYS_INLINE ATTR_WARN_UNUSED_RESULT ATTR_NON_NULL_PTR_ARG(1);
static inline bool Serial_IsSendComplete(USART_t* const USART)
{
- return (USART->STATUS & USART_TCXIF_bm) ? true : false);
+ return (USART->STATUS & USART_TXCIF_bm) ? true : false;
}
/** Transmits a given byte through the USART.
@@ -255,7 +255,7 @@
static inline void Serial_SendByte(USART_t* const USART,
const char DataByte)
{
- while (!(Serial_IsSendReady(USART));
+ while (!(Serial_IsSendReady(USART)));
USART->DATA = DataByte;
}