Skip to content
Snippets Groups Projects
Commit a45a3608 authored by Sam Calisch's avatar Sam Calisch
Browse files

Update uarte.ino

parent 0b161578
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -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() {}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment