// periph init
LedInit(LED1_PORT,LED1_PIN); // power led
LedInit(LED2_PORT,LED2_PIN); //connection state
LedOn(LED1_PORT,LED1_PIN);
app_usart_dma_enable(ENABLE);
//init text
usart_tx_dma_send((uint8_t*)DEMO_STRING, sizeof(DEMO_STRING));
delay_n_10us(500);
//disable usart for enter sleep
app_usart_dma_enable(DISABLE);
while (1)
{
/*schedule all pending events*/
rwip_schedule();
ns_sleep();