Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Arduino Core for SAMD21 CPU
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
josc941e
Arduino Core for SAMD21 CPU
Commits
66990f9e
Commit
66990f9e
authored
8 years ago
by
Sandeep Mistry
Browse files
Options
Downloads
Patches
Plain Diff
Remove some stale commented out code
parent
0d644d73
No related branches found
Branches containing commit
No related tags found
Tags containing commit
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/Wire/Wire.h
+0
-25
0 additions, 25 deletions
libraries/Wire/Wire.h
with
0 additions
and
25 deletions
libraries/Wire/Wire.h
+
0
−
25
View file @
66990f9e
...
@@ -26,8 +26,6 @@
...
@@ -26,8 +26,6 @@
#include
"SERCOM.h"
#include
"SERCOM.h"
#include
"RingBuffer.h"
#include
"RingBuffer.h"
#define BUFFER_LENGTH 32
// WIRE_HAS_END means Wire has end()
// WIRE_HAS_END means Wire has end()
#define WIRE_HAS_END 1
#define WIRE_HAS_END 1
...
@@ -79,35 +77,12 @@ class TwoWire : public Stream
...
@@ -79,35 +77,12 @@ class TwoWire : public Stream
RingBuffer
txBuffer
;
RingBuffer
txBuffer
;
uint8_t
txAddress
;
uint8_t
txAddress
;
// Service buffer
//uint8_t srvBuffer[BUFFER_LENGTH];
//uint8_t srvBufferIndex;
//uint8_t srvBufferLength;
// Callback user functions
// Callback user functions
void
(
*
onRequestCallback
)(
void
);
void
(
*
onRequestCallback
)(
void
);
void
(
*
onReceiveCallback
)(
int
);
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
// TWI clock frequency
static
const
uint32_t
TWI_CLOCK
=
100000
;
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
#if WIRE_INTERFACES_COUNT > 0
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment