发布日期:2022-04-18 点击率:68
<script
var cpro_id = "u1457042"; <iframe id="iframeu1457042_0" zcym?rdid=1457042&dc=2&di=u1457042&dri=0&dis=0&dai=3&ps=425x362&dcb=BAIDU_SSP_define&dtm=BAIDU_DUP_SETJSONADSLOT&dvi=0.0&dci=-1&dpt=none&tsr=0&tpr=1459707754091&ti=2007%E5%8D%8F%E8%AE%AE%E6%A0%88%E4%BD%BF%E7%94%A8uart1%E4%BF%AE%E6%94%B9%E6%AD%A5%E9%AA%A4_%E7%94%B5%E6%B0%94%E8%87%AA%E5%8A%A8%E5%8C%96%E6%8A%80%E6%9C%AF%E7%BD%91&ari=1&dbv=0&drs=1&pcs=645x335&pss=970x426&cfv=0&cpl=22&chi=50&cce=true&cec=gbk&tlm=1402385652<u=http%3A%2F%2Fwww.dqjsw.com.cn%2Fdiangongdianzi%2Fdianlidiangong%2F74377.html&ecd=1&psr=1366x768&par=1366x728&pis=-1x-1&ccd=24&cja=false&cmi=34&col=zh-CN&cdo=-1&tcn=1459707754&qn=883ba924a62e9f83&tt=1459707754067.156.215.215" vspace="0" hspace="0" marginwidth="0" marginheight="0" scrolling="no" style="border:0; vertical-align:bottom;margin:0;" allowtransparency="true" align="center,center" width="200" height="200" frameborder="0"> |
注意编译选项:
ZTOOL_P1
MT_TASK
HAL_UART=TRUE
SERIAL_APP_PORT=0
BUILD_ALL_DEVICES
1、使用ISR不使用DMA hal_board_cfg.h文件中
#if HAL_UART
#ifndef HAL_UART_DMA
#if HAL_DMA
#if (defined ZAPP_P2) || (defined ZTOOL_P2)
#define HAL_UART_DMA 2
#else
#define HAL_UART_DMA 1
#endif
#else
#define HAL_UART_DMA 0
改为
#if HAL_UART
#ifndef HAL_UART_DMA
#if HAL_DMA
#if (defined ZAPP_P2) || (defined ZTOOL_P2)
#define HAL_UART_DMA 2
#else
#define HAL_UART_ISR 1
#endif
#else
#define HAL_UART_DMA 0
#endif
#endif
1、修改优先级以及uart
下一篇: PLC、DCS、FCS三大控
上一篇: 索尔维全系列Solef?PV