Use seperate ATTR_NON_NULL_PTR_ARG() decorators in the XMEGA TWI driver to prevent...
authorDean Camera <dean@fourwalledcubicle.com>
Tue, 13 Aug 2013 19:46:41 +0000 (21:46 +0200)
committerDean Camera <dean@fourwalledcubicle.com>
Tue, 13 Aug 2013 19:46:41 +0000 (21:46 +0200)
LUFA/DoxygenPages/ChangeLog.txt
LUFA/Drivers/Peripheral/XMEGA/TWI_XMEGA.h

index 924aebf..3837149 100644 (file)
@@ -14,6 +14,7 @@
   *   - Added new Printer Device Class driver
   *   - Added support for the XMEGA C3 Xplained board
   *   - Added support for the U2S board (thanks to megal0maniac)
+  *   - Added TWI Master driver for the XMEGA architecture (thanks to Michael Janssen)
   *  - Library Applications:
   *   - Added new Printer class bootloader
   *   - Added new Mass Storage class bootloader
index 1f45263..8ea19e5 100644 (file)
                         */
                        bool TWI_ReceiveByte(TWI_t* const TWI,
                                             uint8_t* const Byte,
-                                            const bool LastByte) ATTR_NON_NULL_PTR_ARG(12);
+                                            const bool LastByte) ATTR_NON_NULL_PTR_ARG(1) ATTR_NON_NULL_PTR_ARG(2);
 
                        /** High level function to perform a complete packet transfer over the TWI bus to the specified
                         *  device.
                                               const uint8_t* InternalAddress,
                                               uint8_t InternalAddressLen,
                                               uint8_t* Buffer,
-                                              uint8_t Length) ATTR_NON_NULL_PTR_ARG(14);
+                                              uint8_t Length) ATTR_NON_NULL_PTR_ARG(1) ATTR_NON_NULL_PTR_ARG(4);
 
                        /** High level function to perform a complete packet transfer over the TWI bus from the specified
                         *  device.
                                                const uint8_t* InternalAddress,
                                                uint8_t InternalAddressLen,
                                                const uint8_t* Buffer,
-                                               uint8_t Length) ATTR_NON_NULL_PTR_ARG(14);
+                                               uint8_t Length) ATTR_NON_NULL_PTR_ARG(1) ATTR_NON_NULL_PTR_ARG(4);
 
        /* Disable C linkage for C++ Compilers: */
                #if defined(__cplusplus)