2011-06-22 22:01:54 BF518 串口中断问题
lin cheng (CHINA)
Message: 101576
我在配置内核时(make menuconfig),将BF518的串口1打开,查看其中断:
root:/proc/tty/driver> pwd
/proc/tty/driver
root:/proc/tty/driver> cat bfin-uart
serinfo:1.0 driver revision:
0: uart:BFIN-UART mmio:0xFFC00400 irq:29 tx:14268 rx:690 RTS|CTS|DTR|DSR|CD
1: uart:BFIN-UART mmio:0xFFC02000 irq:31 tx:7 rx:0 CTS|DSR|CD
可以看到UART1被初始化,中断号好31.
root:/proc> pwd
/proc
root:/proc> cat interrupts
6: 152265 CORE Blackfin CoreTimer
21: 1 INTN rtc-bfin
24: 0 INTN bfin-sdhDMA
27: 0 INTN i2c-bfin-twi
29: 734 INTN BFIN_UART_RX
30: 14420 INTN BFIN_UART_TX
35: 891 INTN EMAC_RX
58: 7620 INTN SDH Status IRQ
NMI: 0 CORE Non Maskable Interrupt
Err: 0
root:/proc>
但是为什么在/proc/interrupts中找不到串口1的中断呢?
附件中是我的内核配置文件
config-kernel
TranslateQuoteReplyEditDelete
2011-06-22 22:21:07 Re: BF518 串口中断问题
Aaron Wu (CHINA)
Message: 101577
Did you actually operate on your UART1, to send and receive data? Why not do what I suggested in other post to verify your UART1 things.
QuoteReplyEditDelete
2011-06-22 23:31:42 Re: BF518 串口中断问题
Sonic Zhang (CHINA)
Message: 101578
The interrupt is registered after you open the UART1 device.