Commit a45a3608 authored by Sam Calisch's avatar Sam Calisch
Browse files

Update uarte.ino

parent 0b161578
Pipeline #1199 passed with stage
in 4 seconds
...@@ -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() {}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment