aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/Peripheral/AVR8
diff options
context:
space:
mode:
Diffstat (limited to 'LUFA/Drivers/Peripheral/AVR8')
-rw-r--r--LUFA/Drivers/Peripheral/AVR8/TWI_AVR8.c4
-rw-r--r--LUFA/Drivers/Peripheral/AVR8/TWI_AVR8.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/LUFA/Drivers/Peripheral/AVR8/TWI_AVR8.c b/LUFA/Drivers/Peripheral/AVR8/TWI_AVR8.c
index 5955358a2..61652a7b1 100644
--- a/LUFA/Drivers/Peripheral/AVR8/TWI_AVR8.c
+++ b/LUFA/Drivers/Peripheral/AVR8/TWI_AVR8.c
@@ -135,7 +135,7 @@ uint8_t TWI_ReadPacket(const uint8_t SlaveAddress,
const uint8_t* InternalAddress,
uint8_t InternalAddressLen,
uint8_t* Buffer,
- uint8_t Length)
+ uint16_t Length)
{
uint8_t ErrorCode;
@@ -175,7 +175,7 @@ uint8_t TWI_WritePacket(const uint8_t SlaveAddress,
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/AVR8/TWI_AVR8.h b/LUFA/Drivers/Peripheral/AVR8/TWI_AVR8.h
index 9465fe02a..33bed98dc 100644
--- a/LUFA/Drivers/Peripheral/AVR8/TWI_AVR8.h
+++ b/LUFA/Drivers/Peripheral/AVR8/TWI_AVR8.h
@@ -273,7 +273,7 @@
const uint8_t* InternalAddress,
uint8_t InternalAddressLen,
uint8_t* Buffer,
- uint8_t Length) ATTR_NON_NULL_PTR_ARG(3);
+ uint16_t Length) ATTR_NON_NULL_PTR_ARG(3);
/** High level function to perform a complete packet transfer over the TWI bus from the specified
* device.
@@ -292,7 +292,7 @@
const uint8_t* InternalAddress,
uint8_t InternalAddressLen,
const uint8_t* Buffer,
- uint8_t Length) ATTR_NON_NULL_PTR_ARG(3);
+ uint16_t Length) ATTR_NON_NULL_PTR_ARG(3);
/* Disable C linkage for C++ Compilers: */
#if defined(__cplusplus)