we need to open uart 30s and close it 30s.there is our code:
if(sec_cnt==30)
{
//printf("sec_cnt=30 is now\r\n");//zzq
nrf_delay_ms(100);
nrf_drv_uart_uninit(&m_dtm_uart_driver);
}
if(sec_cnt==60)
{
sec_cnt=0;
uart_init();
}
but when the sec_cnt==30, the uart is stop,but it cann't start at sec==60, how we need to do?