Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nrf52
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
6
Issues
6
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pub
hello-world
nrf52
Commits
a45a3608
Commit
a45a3608
authored
Dec 05, 2017
by
Sam Calisch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update uarte.ino
parent
0b161578
Pipeline
#1199
passed with stage
in 4 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
uarte.ino
modules/uarte/uarte.ino
+4
-4
No files found.
modules/uarte/uarte.ino
View file @
a45a3608
...
...
@@ -26,10 +26,10 @@ void setup() {
while
(
!
NRF_UARTE0
->
EVENTS_ENDTX
){}
//recv data, untested
NRF_UARTE0
->
EVENTS_RXDRDY
=
0
;
NRF_UARTE0
->
RXD
.
PTR
=
(
uint32_t
)(
&
uart_rx_data
);
//reset pointer to start of buffer
NRF_UARTE0
->
TASKS_STARTRX
=
1
;
//trigger start task to recieve data from host
while
(
!
NRF_UARTE0
->
EVENTS_RXDRDY
){}
//
NRF_UARTE0->EVENTS_RXDRDY = 0;
//
NRF_UARTE0->RXD.PTR = (uint32_t)(&uart_rx_data); //reset pointer to start of buffer
//
NRF_UARTE0->TASKS_STARTRX = 1; //trigger start task to recieve data from host
//
while(!NRF_UARTE0->EVENTS_RXDRDY){}
}
void
loop
()
{}
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