energia / msp430-lg-core

15 stars 12 forks source link

Fix to make slave mode work for eUSCI-based MSP430s #41

Closed barawn closed 7 years ago

barawn commented 7 years ago

UCBzI2COA0 is a word, not a byte. It was previously typecast as a volatile uint8_t *, so while the address got set, the enable bits (which are in the high bits) never did, preventing slave mode from working at all.