【已解决】BK7231N 串口中断 有问

Wi-Fi 设备、Wi-Fi 低功耗设备、Wi-Fi BLE 双模设备、Ethernet设备、Ethernet+Wi-Fi设备等
Post Reply
花露水
Posts: 26

Code: Select all

#include "tal_uart.h"
tal_uart_rx_reg_irq_cb(TUYA_UART_PORT_ID(TUYA_UART_SYS, 0),tuya_uart_RX_Test);


VOID tuya_uart_RX_Test(VOID)
{

PR_DEBUG("                                                               Uart_RX_TEST!!!!!");

}

编译出错

Debug/apps/tuyaos_demo_quickstart/src/tuya_device.o: In function __soc_device_init':
/home/test/Documents/tuya/Projects/BK7231N_Test_ZW/software/TuyaOS/vendor/bk7231n/bk7231n_os/../../../apps/tuyaos_demo_quickstart/src/tuya_device.c:303: undefined reference to
tal_uart_rx_reg_irq_cb'
collect2: error: ld returned 1 exit status
make[1]: *** [application.mk:917:application] 错误 1
make[1]: 离开目录“/home/test/Documents/tuya/Projects/BK7231N_Test_ZW/software/TuyaOS/vendor/bk7231n/bk7231n_os”
make: *** [Makefile:28:mp] 错误 2
make: 离开目录“/home/test/Documents/tuya/Projects/BK7231N_Test_ZW/software/TuyaOS/vendor/bk7231n/bk7231n_os”

是我用的方法不对吗?

花露水
Posts: 26

Re: BK7231N 串口中断 有问

刚才试了一下
换成 tkl_uart_rx_irq_cb_reg就可以正常编译,而且接受也进入中断了

Post Reply