File tree 1 file changed +0
-25
lines changed
1 file changed +0
-25
lines changed Original file line number Diff line number Diff line change 26
26
#include " SERCOM.h"
27
27
#include " RingBuffer.h"
28
28
29
- #define BUFFER_LENGTH 32
30
-
31
29
// WIRE_HAS_END means Wire has end()
32
30
#define WIRE_HAS_END 1
33
31
@@ -79,35 +77,12 @@ class TwoWire : public Stream
79
77
RingBuffer txBuffer;
80
78
uint8_t txAddress;
81
79
82
-
83
- // Service buffer
84
- // uint8_t srvBuffer[BUFFER_LENGTH];
85
- // uint8_t srvBufferIndex;
86
- // uint8_t srvBufferLength;
87
-
88
80
// Callback user functions
89
81
void (*onRequestCallback)(void );
90
82
void (*onReceiveCallback)(int );
91
83
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
-
105
84
// TWI clock frequency
106
85
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;
111
86
};
112
87
113
88
#if WIRE_INTERFACES_COUNT > 0
You can’t perform that action at this time.
0 commit comments