【已解决】BK7231N 串口中断 有问
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':
tal_uart_rx_reg_irq_cb'
/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
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”
是我用的方法不对吗?