當前位置:首頁 » 編程軟體 » 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

熱點內容
java返回this 發布:2025-10-20 08:28:16 瀏覽:705
製作腳本網站 發布:2025-10-20 08:17:34 瀏覽:969
python中的init方法 發布:2025-10-20 08:17:33 瀏覽:677
圖案密碼什麼意思 發布:2025-10-20 08:16:56 瀏覽:831
怎麼清理微信視頻緩存 發布:2025-10-20 08:12:37 瀏覽:738
c語言編譯器怎麼看執行過程 發布:2025-10-20 08:00:32 瀏覽:1077
郵箱如何填寫發信伺服器 發布:2025-10-20 07:45:27 瀏覽:309
shell腳本入門案例 發布:2025-10-20 07:44:45 瀏覽:189
怎麼上傳照片瀏覽上傳 發布:2025-10-20 07:44:03 瀏覽:875
python股票數據獲取 發布:2025-10-20 07:39:44 瀏覽:831