File tree Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Original file line number Diff line number Diff line change 2626#include " SERCOM.h"
2727#include " RingBuffer.h"
2828
29- #define BUFFER_LENGTH 32
30-
3129 // WIRE_HAS_END means Wire has end()
3230#define WIRE_HAS_END 1
3331
@@ -79,35 +77,12 @@ class TwoWire : public Stream
7977 RingBuffer txBuffer;
8078 uint8_t txAddress;
8179
82-
83- // Service buffer
84- // uint8_t srvBuffer[BUFFER_LENGTH];
85- // uint8_t srvBufferIndex;
86- // uint8_t srvBufferLength;
87-
8880 // Callback user functions
8981 void (*onRequestCallback)(void );
9082 void (*onReceiveCallback)(int );
9183
92- // TWI state
93- // enum TwoWireStatus
94- // {
95- // UNINITIALIZED,
96- // MASTER_IDLE,
97- // MASTER_SEND,
98- // MASTER_RECV,
99- // SLAVE_IDLE,
100- // SLAVE_RECV,
101- // SLAVE_SEND
102- // };
103- // TwoWireStatus status;
104-
10584 // TWI clock frequency
10685 static const uint32_t TWI_CLOCK = 100000 ;
107-
108- // Timeouts
109- // static const uint32_t RECV_TIMEOUT = 100000;
110- // static const uint32_t XMIT_TIMEOUT = 100000;
11186};
11287
11388#if WIRE_INTERFACES_COUNT > 0
You can’t perform that action at this time.
0 commit comments