projects
/
pub
/
USBasp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b6899bb
)
Fix Serial_XMEGA.h syntax and define error
author
Hell
<pajoke@163.com>
Wed, 13 Aug 2014 09:23:49 +0000
(17:23 +0800)
committer
Hell
<pajoke@163.com>
Wed, 13 Aug 2014 09:55:05 +0000
(17:55 +0800)
LUFA/Drivers/Peripheral/XMEGA/Serial_XMEGA.h
patch
|
blob
|
blame
|
history
diff --git
a/LUFA/Drivers/Peripheral/XMEGA/Serial_XMEGA.h
b/LUFA/Drivers/Peripheral/XMEGA/Serial_XMEGA.h
index
e7f9fee
..
ad34c85
100644
(file)
--- 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)
{
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
}
/** 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)
{
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_T
CXIF_bm) ? true : false)
;
+ return (USART->STATUS & USART_T
XCIF_bm) ? true : false
;
}
/** Transmits a given byte through the USART.
}
/** Transmits a given byte through the USART.
@@
-255,7
+255,7
@@
static inline void Serial_SendByte(USART_t* const USART,
const char DataByte)
{
static inline void Serial_SendByte(USART_t* const USART,
const char DataByte)
{
- while (!(Serial_IsSendReady(USART));
+ while (!(Serial_IsSendReady(USART))
)
;
USART->DATA = DataByte;
}
USART->DATA = DataByte;
}