aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/Peripheral/XMEGA/TWI_XMEGA.h
diff options
context:
space:
mode:
authorMichael Janssen <jamuraa@base0.net>2013-07-24 11:16:55 -0500
committerMichael Janssen <jamuraa@base0.net>2013-07-24 11:16:55 -0500
commita403b12b8db926df54e81f72681344b29b6c97a3 (patch)
tree0613dc224a4a42a93e31e2fd5a3f707d9e9bb4d7 /LUFA/Drivers/Peripheral/XMEGA/TWI_XMEGA.h
parent50e8fc615d951fddda62407b6d55deabbe45e619 (diff)
downloadlufa-a403b12b8db926df54e81f72681344b29b6c97a3.tar.gz
lufa-a403b12b8db926df54e81f72681344b29b6c97a3.tar.bz2
lufa-a403b12b8db926df54e81f72681344b29b6c97a3.zip
Fix NON-NULL attributes, add for TWI_t.
Diffstat (limited to 'LUFA/Drivers/Peripheral/XMEGA/TWI_XMEGA.h')
-rw-r--r--LUFA/Drivers/Peripheral/XMEGA/TWI_XMEGA.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/LUFA/Drivers/Peripheral/XMEGA/TWI_XMEGA.h b/LUFA/Drivers/Peripheral/XMEGA/TWI_XMEGA.h
index 048acb96e..eb8c6a5f1 100644
--- a/LUFA/Drivers/Peripheral/XMEGA/TWI_XMEGA.h
+++ b/LUFA/Drivers/Peripheral/XMEGA/TWI_XMEGA.h
@@ -181,7 +181,7 @@
* \param[in] twi The TWI Peripheral to use
* \param[in] Baud Value of the BAUD register of the TWI Master.
*/
- static inline void TWI_Init(TWI_t *twi, const uint8_t Baud) ATTR_ALWAYS_INLINE;
+ static inline void TWI_Init(TWI_t *twi, const uint8_t Baud) ATTR_ALWAYS_INLINE ATTR_NON_NULL_PTR_ARG(1);
static inline void TWI_Init(TWI_t *twi, const uint8_t Baud)
{
twi->MASTER.BAUD = Baud;
@@ -193,7 +193,7 @@
*
* \param[in] twi The TWI Peripheral to use
*/
- static inline void TWI_Disable(TWI_t *twi) ATTR_ALWAYS_INLINE;
+ static inline void TWI_Disable(TWI_t *twi) ATTR_ALWAYS_INLINE ATTR_NON_NULL_PTR_ARG(1);
static inline void TWI_Disable(TWI_t *twi)
{
twi->MASTER.CTRLA &= ~TWI_MASTER_ENABLE_bm;
@@ -203,7 +203,7 @@
*
* \param[in] twi The TWI Peripheral to use
*/
- static inline void TWI_StopTransmission(TWI_t *twi) ATTR_ALWAYS_INLINE;
+ static inline void TWI_StopTransmission(TWI_t *twi) ATTR_ALWAYS_INLINE ATTR_NON_NULL_PTR_ARG(1);
static inline void TWI_StopTransmission(TWI_t *twi)
{
twi->MASTER.CTRLC = TWI_MASTER_CMD_STOP_gc;
@@ -220,7 +220,7 @@
*/
uint8_t TWI_StartTransmission(TWI_t *twi,
const uint8_t SlaveAddress,
- const uint8_t TimeoutMS);
+ const uint8_t TimeoutMS) ATTR_NON_NULL_PTR_ARG(1);
/** Sends a byte to the currently addressed device on the TWI bus.
*
@@ -229,7 +229,7 @@
*
* \return Boolean \c true if the recipient ACKed the byte, \c false otherwise
*/
- bool TWI_SendByte(TWI_t *twi, const uint8_t Byte);
+ bool TWI_SendByte(TWI_t *twi, const uint8_t Byte) ATTR_NON_NULL_PTR_ARG(1);
/** Receives a byte from the currently addressed device on the TWI bus.
*
@@ -240,7 +240,7 @@
* \return Boolean \c true if the byte reception successfully completed, \c false otherwise.
*/
bool TWI_ReceiveByte(TWI_t *twi, uint8_t* const Byte,
- const bool LastByte) ATTR_NON_NULL_PTR_ARG(1);
+ const bool LastByte) ATTR_NON_NULL_PTR_ARG(1, 2);
/** High level function to perform a complete packet transfer over the TWI bus to the specified
* device.
@@ -261,7 +261,7 @@
const uint8_t* InternalAddress,
uint8_t InternalAddressLen,
uint8_t* Buffer,
- uint8_t Length) ATTR_NON_NULL_PTR_ARG(3);
+ uint8_t Length) ATTR_NON_NULL_PTR_ARG(1, 4);
/** High level function to perform a complete packet transfer over the TWI bus from the specified
* device.
@@ -282,7 +282,7 @@
const uint8_t* InternalAddress,
uint8_t InternalAddressLen,
const uint8_t* Buffer,
- uint8_t Length) ATTR_NON_NULL_PTR_ARG(3);
+ uint8_t Length) ATTR_NON_NULL_PTR_ARG(1, 4);
/* Disable C linkage for C++ Compilers: */
#if defined(__cplusplus)