File tree Expand file tree Collapse file tree 3 files changed +6
-7
lines changed
libraries/Wire/src/utility Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -434,11 +434,6 @@ void init()
434
434
435
435
//#endif
436
436
437
- /****************************** TWI *******************************************/
438
-
439
- // PORTMUX.TWISPIROUTEA = (PORTMUX_TWI0_ALT1_gc | PORTMUX_SPI0_ALT2_gc);
440
-
441
-
442
437
/****************************** USART *****************************************/
443
438
444
439
#ifdef REV_A_ENGINEERING_SAMPLE
Original file line number Diff line number Diff line change @@ -37,8 +37,10 @@ void TWI_MasterInit(uint32_t frequency)
37
37
38
38
// Enable pullups just in case, should have external ones though
39
39
//pinMode(PIN_WIRE_SDA, INPUT_PULLUP);
40
- //pinMode(PIN_WIRE_SCL, INPUT_PULLUP);
41
-
40
+ //pinMode(PIN_WIRE_SCL, INPUT_PULLUP);
41
+
42
+ PORTMUX .TWISPIROUTEA |= TWI_MUX ;
43
+
42
44
twi_mode = TWI_MODE_MASTER ;
43
45
44
46
master_bytesRead = 0 ;
Original file line number Diff line number Diff line change @@ -349,4 +349,6 @@ const uint8_t PROGMEM digital_pin_to_timer[] = {
349
349
#define SERIAL_PORT_USBVIRTUAL Serial1
350
350
#define SERIAL_PORT_HARDWARE_OPEN Serial2
351
351
352
+ #define TWI_MUX PORTMUX_TWI0_DEFAULT_gc //PORTMUX_TWI0_ALT1_gc
353
+
352
354
#endif
You can’t perform that action at this time.
0 commit comments