diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2015-09-27 16:08:13 +1000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2015-09-27 16:08:13 +1000 |
commit | 7638128d47f90dafbbf8bc2454971afd726e005e (patch) | |
tree | 6a4e6376c07c29f067316a9fa92affb87fb71329 /LUFA/Drivers/Peripheral/XMEGA | |
parent | 23ada65625220332c187adbb624840509e79e762 (diff) | |
download | lufa-7638128d47f90dafbbf8bc2454971afd726e005e.tar.gz lufa-7638128d47f90dafbbf8bc2454971afd726e005e.tar.bz2 lufa-7638128d47f90dafbbf8bc2454971afd726e005e.zip |
Use 16-bit length for TWI driver packet read/write requests for longer transfers.
Diffstat (limited to 'LUFA/Drivers/Peripheral/XMEGA')
-rw-r--r-- | LUFA/Drivers/Peripheral/XMEGA/TWI_XMEGA.c | 4 | ||||
-rw-r--r-- | LUFA/Drivers/Peripheral/XMEGA/TWI_XMEGA.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/LUFA/Drivers/Peripheral/XMEGA/TWI_XMEGA.c b/LUFA/Drivers/Peripheral/XMEGA/TWI_XMEGA.c index 56334c880..3fdf1a14f 100644 --- a/LUFA/Drivers/Peripheral/XMEGA/TWI_XMEGA.c +++ b/LUFA/Drivers/Peripheral/XMEGA/TWI_XMEGA.c @@ -110,7 +110,7 @@ uint8_t TWI_ReadPacket(TWI_t* const TWI, const uint8_t* InternalAddress, uint8_t InternalAddressLen, uint8_t* Buffer, - uint8_t Length) + uint16_t Length) { uint8_t ErrorCode; @@ -151,7 +151,7 @@ uint8_t TWI_WritePacket(TWI_t* const TWI, const uint8_t* InternalAddress, uint8_t InternalAddressLen, const uint8_t* Buffer, - uint8_t Length) + uint16_t Length) { uint8_t ErrorCode; diff --git a/LUFA/Drivers/Peripheral/XMEGA/TWI_XMEGA.h b/LUFA/Drivers/Peripheral/XMEGA/TWI_XMEGA.h index e4d14b80d..734bba61c 100644 --- a/LUFA/Drivers/Peripheral/XMEGA/TWI_XMEGA.h +++ b/LUFA/Drivers/Peripheral/XMEGA/TWI_XMEGA.h @@ -268,7 +268,7 @@ const uint8_t* InternalAddress, uint8_t InternalAddressLen, uint8_t* Buffer, - uint8_t Length) ATTR_NON_NULL_PTR_ARG(1) ATTR_NON_NULL_PTR_ARG(4); + uint16_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. @@ -289,7 +289,7 @@ const uint8_t* InternalAddress, uint8_t InternalAddressLen, const uint8_t* Buffer, - uint8_t Length) ATTR_NON_NULL_PTR_ARG(1) ATTR_NON_NULL_PTR_ARG(4); + uint16_t Length) ATTR_NON_NULL_PTR_ARG(1) ATTR_NON_NULL_PTR_ARG(4); /* Disable C linkage for C++ Compilers: */ #if defined(__cplusplus) |