官网下载 最新 CH384驱动无法编译成功
user@user-PC:~/Desktop/CH38XDRV/DRV_28S/LINUX/driver$ make
make -C /lib/modules/5.10.60-amd64-desktop/build M=/home/user/Desktop/CH38XDRV/DRV_28S/LINUX/driver modules
make[1]: 进入目录“/usr/src/linux-headers-5.10.60-amd64-desktop”
CC [M] /home/user/Desktop/CH38XDRV/DRV_28S/LINUX/driver/wch_main.o
/home/user/Desktop/CH38XDRV/DRV_28S/LINUX/driver/wch_main.c: In function ‘wch_ser_port_table_init’:
/home/user/Desktop/CH38XDRV/DRV_28S/LINUX/driver/wch_main.c:564:22: error: ‘ASYNC_SHARE_IRQ’ undeclared (first use in this function); did you mean ‘ASYNC_AUTO_IRQ’?
sp->port.flags = ASYNC_SHARE_IRQ;
^~~~~~~~~~~~~~~
ASYNC_AUTO_IRQ
/home/user/Desktop/CH38XDRV/DRV_28S/LINUX/driver/wch_main.c:564:22: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [scripts/Makefile.build:280:/home/user/Desktop/CH38XDRV/DRV_28S/LINUX/driver/wch_main.o] 错误 1
make[1]: *** [Makefile:1822:/home/user/Desktop/CH38XDRV/DRV_28S/LINUX/driver] 错误 2
make[1]: 离开目录“/usr/src/linux-headers-5.10.60-amd64-desktop”
make: *** [Makefile:12:modules] 错误 2
user@user-PC:~/Desktop/CH38XDRV/DRV_28S/LINUX/driver$