diff options
author | Michael Janssen <jamuraa@base0.net> | 2013-07-24 11:12:03 -0500 |
---|---|---|
committer | Michael Janssen <jamuraa@base0.net> | 2013-07-24 11:12:03 -0500 |
commit | 50e8fc615d951fddda62407b6d55deabbe45e619 (patch) | |
tree | acd7bd3d8800a25cd498e7329099d7cab1c536ae /LUFA | |
parent | 2d21e36dd9c36649723b295e3ed8954d273dc159 (diff) | |
download | lufa-50e8fc615d951fddda62407b6d55deabbe45e619.tar.gz lufa-50e8fc615d951fddda62407b6d55deabbe45e619.tar.bz2 lufa-50e8fc615d951fddda62407b6d55deabbe45e619.zip |
TWI Master has a sub-structure
Diffstat (limited to 'LUFA')
-rw-r--r-- | LUFA/Drivers/Peripheral/XMEGA/TWI_XMEGA.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/LUFA/Drivers/Peripheral/XMEGA/TWI_XMEGA.h b/LUFA/Drivers/Peripheral/XMEGA/TWI_XMEGA.h index 252143d8f..048acb96e 100644 --- a/LUFA/Drivers/Peripheral/XMEGA/TWI_XMEGA.h +++ b/LUFA/Drivers/Peripheral/XMEGA/TWI_XMEGA.h @@ -184,8 +184,8 @@ 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) { - twi->BAUD = Baud; - twi->CTRLA |= TWI_MASTER_ENABLE_bm; + twi->MASTER.BAUD = Baud; + twi->MASTER.CTRLA |= TWI_MASTER_ENABLE_bm; } /** Turns off the TWI driver hardware. If this is called, any further TWI operations will require a call to @@ -196,7 +196,7 @@ static inline void TWI_Disable(TWI_t *twi) ATTR_ALWAYS_INLINE; static inline void TWI_Disable(TWI_t *twi) { - twi->CTRLA &= ~TWI_MASTER_ENABLE_bm; + twi->MASTER.CTRLA &= ~TWI_MASTER_ENABLE_bm; } /** Sends a TWI STOP onto the TWI bus, terminating communication with the currently addressed device. @@ -206,7 +206,7 @@ static inline void TWI_StopTransmission(TWI_t *twi) ATTR_ALWAYS_INLINE; static inline void TWI_StopTransmission(TWI_t *twi) { - twi->CTRLC = TWI_MASTER_CMD_STOP_gc; + twi->MASTER.CTRLC = TWI_MASTER_CMD_STOP_gc; } /* Function Prototypes: */ |