-- Current Dev Version: 3.0.1 Beta
GSM Max length: 1460
void uartSetBaudRate(uart_t* uart, uint32_t baud_rate, uint32_t config)
{
if(uart == NULL) {
return;
}
UART_MUTEX_LOCK();
uint32_t clk_div = ((getApbFrequency()<<4)/baud_rate);
uart->dev->conf0.val = config; // add for config
uart->dev->clk_div.div_int = clk_div>>4 ;
uart->dev->clk_div.div_frag = clk_div & 0xf;
UART_MUTEX_UNLOCK();
}
static const int kHttpResponseTimeout = 30*1000 to 5*1000
from 0x007B to 0x007D