官網下載 最新 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$?