Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pub
hello-world
nrf52
Commits
a45a3608
Commit
a45a3608
authored
Dec 05, 2017
by
Sam Calisch
Browse files
Update uarte.ino
parent
0b161578
Pipeline
#1199
passed with stage
in 4 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
modules/uarte/uarte.ino
View file @
a45a3608
...
@@ -26,10 +26,10 @@ void setup() {
...
@@ -26,10 +26,10 @@ void setup() {
while
(
!
NRF_UARTE0
->
EVENTS_ENDTX
){}
while
(
!
NRF_UARTE0
->
EVENTS_ENDTX
){}
//recv data, untested
//recv data, untested
NRF_UARTE0
->
EVENTS_RXDRDY
=
0
;
//
NRF_UARTE0->EVENTS_RXDRDY = 0;
NRF_UARTE0
->
RXD
.
PTR
=
(
uint32_t
)(
&
uart_rx_data
);
//reset pointer to start of buffer
//
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
//
NRF_UARTE0->TASKS_STARTRX = 1; //trigger start task to recieve data from host
while
(
!
NRF_UARTE0
->
EVENTS_RXDRDY
){}
//
while(!NRF_UARTE0->EVENTS_RXDRDY){}
}
}
void
loop
()
{}
void
loop
()
{}
Write
Preview
Supports
Markdown
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