Skip to content

Commit

Permalink
revert changes to TWI
Browse files Browse the repository at this point in the history
  • Loading branch information
MX682X committed Dec 20, 2024
1 parent 5536d73 commit 7c6b5a2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions megaavr/libraries/Wire/src/twi_pins.c
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ void TWI0_usePullups() {
port->PIN3CTRL |= PORT_PULLUPEN_bm;
}
#endif
#elif defined(MEGATINYCORE) /* tinyAVR 0/1-series */
#elif defined(MEGATINYCORE) /* tinyAVR 0/1-series */
#if defined(PORTMUX_TWI0_bm) // 1-series with remappable TWI
if (PORTMUX.CTRLB & PORTMUX_TWI0_bm) {
PORTA.OUTCLR = 0x06;
Expand Down Expand Up @@ -507,7 +507,6 @@ uint8_t TWI0_checkPinLevel(void) {
#endif
}


#if defined(TWI0_DUALCTRL) // full version for parts with dual mode and likely input level too
uint8_t TWI0_setConfig(bool smbuslvl, bool longsetup, uint8_t sda_hold, bool smbuslvl_dual, uint8_t sda_hold_dual) {
uint8_t cfg = TWI0.CTRLA & 0x03;
Expand Down Expand Up @@ -745,4 +744,4 @@ uint8_t TWI1_setConfig(bool smbuslvl, bool longsetup, uint8_t sda_hold, bool smb

#endif /* defined(TWI1) */

#endif /* TWI_PINS_H *
#endif /* TWI_PINS_H */

0 comments on commit 7c6b5a2

Please sign in to comment.