Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-nRF5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-nRF5
Commits
85798d15
Commit
85798d15
authored
Oct 21, 2020
by
John Maloney
Committed by
Sandeep Mistry
Dec 01, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for secondary Wire1 interface
parent
4c9101dc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
0 deletions
+21
-0
libraries/Wire/Wire.h
libraries/Wire/Wire.h
+4
-0
libraries/Wire/Wire_nRF51.cpp
libraries/Wire/Wire_nRF51.cpp
+4
-0
libraries/Wire/Wire_nRF52.cpp
libraries/Wire/Wire_nRF52.cpp
+13
-0
No files found.
libraries/Wire/Wire.h
View file @
85798d15
...
...
@@ -108,4 +108,8 @@ class TwoWire : public Stream
extern
TwoWire
Wire
;
#endif
#if WIRE_INTERFACES_COUNT > 1
extern
TwoWire
Wire1
;
#endif
#endif
libraries/Wire/Wire_nRF51.cpp
View file @
85798d15
...
...
@@ -309,4 +309,8 @@ void TwoWire::flush(void)
TwoWire
Wire
(
NRF_TWI1
,
PIN_WIRE_SDA
,
PIN_WIRE_SCL
);
#endif
#if WIRE_INTERFACES_COUNT > 1
TwoWire
Wire1
(
NRF_TWI0
,
PIN_WIRE1_SDA
,
PIN_WIRE1_SCL
);
#endif
#endif
libraries/Wire/Wire_nRF52.cpp
View file @
85798d15
...
...
@@ -413,4 +413,17 @@ extern "C"
}
#endif
#if WIRE_INTERFACES_COUNT > 1
TwoWire
Wire1
(
NRF_TWIM0
,
NRF_TWIS0
,
SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQn
,
PIN_WIRE1_SDA
,
PIN_WIRE1_SCL
);
extern
"C"
{
void
SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler
(
void
)
{
Wire1
.
onService
();
}
}
#endif
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment