编译找不到函数 uart_div_modify()
Re: 编译找不到函数 uart_div_modify()
Postby ESP_Faye » Thu May 05, 2016 10:18 am
您好,
ESP8266_RTOS_SDK 的使用示例可以参考 ESP8266_IOT_PLATFORM。
uart_div_modify 在 libmain.a 中,可以直接调用。
如果您的问题仍未解决,可以提供您的测试代码,我们将协助您进行查证。
感谢您对 ESP8266 的关注!
ESP8266_RTOS_SDK 的使用示例可以参考 ESP8266_IOT_PLATFORM。
uart_div_modify 在 libmain.a 中,可以直接调用。
如果您的问题仍未解决,可以提供您的测试代码,我们将协助您进行查证。
感谢您对 ESP8266 的关注!
Re: 编译找不到函数 uart_div_modify()
Postby mengzawj » Fri May 06, 2016 9:18 am
暂时用我的方法解决了,没时间去折腾别的方案了,感谢回复!
顺便贴一下我修改的代码:
目前工作一切正常!
顺便贴一下我修改的代码:
Code: Select all
void
UART_SetBaudrate(UART_Port uart_no, uint32 baud_rate)
{
// uart_div_modify(uart_no, UART_CLK_FREQ / baud_rate);
SET_PERI_REG_BITS(UART_CLKDIV(uart_no), UART_CLKDIV_CNT, UART_CLK_FREQ / baud_rate,
UART_CLKDIV_S);
}
目前工作一切正常!
Who is online
Users browsing this forum: No registered users and 3 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.