Skip to content
Snippets Groups Projects
Commit 66990f9e authored by Sandeep Mistry's avatar Sandeep Mistry
Browse files

Remove some stale commented out code

parent 0d644d73
No related branches found
No related tags found
No related merge requests found
......@@ -26,8 +26,6 @@
#include "SERCOM.h"
#include "RingBuffer.h"
#define BUFFER_LENGTH 32
// WIRE_HAS_END means Wire has end()
#define WIRE_HAS_END 1
......@@ -79,35 +77,12 @@ class TwoWire : public Stream
RingBuffer txBuffer;
uint8_t txAddress;
// Service buffer
//uint8_t srvBuffer[BUFFER_LENGTH];
//uint8_t srvBufferIndex;
//uint8_t srvBufferLength;
// Callback user functions
void (*onRequestCallback)(void);
void (*onReceiveCallback)(int);
// TWI state
//enum TwoWireStatus
//{
// UNINITIALIZED,
// MASTER_IDLE,
// MASTER_SEND,
// MASTER_RECV,
// SLAVE_IDLE,
// SLAVE_RECV,
// SLAVE_SEND
//};
//TwoWireStatus status;
// TWI clock frequency
static const uint32_t TWI_CLOCK = 100000;
// Timeouts
//static const uint32_t RECV_TIMEOUT = 100000;
//static const uint32_t XMIT_TIMEOUT = 100000;
};
#if WIRE_INTERFACES_COUNT > 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment