當前位置:首頁 » 編程軟體 » arm串口編程

arm串口編程

發布時間: 2023-07-09 18:00:54

❶ arm linux問題:我板子的uart1串口是調試串口,我看大多都是uart0是調試口,我怎麼改linux的源碼

你用的是什麼板子啊?

這個要改uboot的。

比如,如果用的是s3c2410,改一下include/configs/smdk2410.h

將第63行,#defineCONFIG_SERIAL11 /*weuseSERIAL1onSMDK2410*/

的CONFIG_SERIAL2,就行了。

可以看一下cpu/arm920t/s3c24x0/serial.c就能理解了。

#ifdefCONFIG_SERIAL1

#defineUART_NR S3C24X0_UART0

#elifdefined(CONFIG_SERIAL2)

#ifdefined(CONFIG_TRAB)

#error"TRABsupportsonlyCONFIG_SERIAL1"

#endif

#defineUART_NR S3C24X0_UART1

#elifdefined(CONFIG_SERIAL3)

#ifdefined(CONFIG_TRAB)

##error"TRABsupportsonlyCONFIG_SERIAL1"

#endif

#defineUART_NR S3C24X0_UART2

#else

#error"Bad:youdidn'tconfigureserial..."

#endif

熱點內容
scratch少兒編程課程 發布:2025-04-16 17:11:44 瀏覽:637
榮耀x10從哪裡設置密碼 發布:2025-04-16 17:11:43 瀏覽:366
java從入門到精通視頻 發布:2025-04-16 17:11:43 瀏覽:82
php微信介面教程 發布:2025-04-16 17:07:30 瀏覽:308
android實現陰影 發布:2025-04-16 16:50:08 瀏覽:789
粉筆直播課緩存 發布:2025-04-16 16:31:21 瀏覽:339
機頂盒都有什麼配置 發布:2025-04-16 16:24:37 瀏覽:210
編寫手游反編譯都需要學習什麼 發布:2025-04-16 16:19:36 瀏覽:810
proteus編譯文件位置 發布:2025-04-16 16:18:44 瀏覽:364
土壓縮的本質 發布:2025-04-16 16:13:21 瀏覽:590