|
我现在吧D:\WINCE500\PUBLIC\COMMON\OAK\DRIVERS\SERIAL 目录下的驱动文件移植到了bsp下,我打开注册表发现在active能够发现我的那个串口,我用we-hjb的串口调试助手发现能够打开关闭串口,同时我打开串口的时候发现相应串口的中断BSPIntrEnableIrq 函数已经调用,但是只是在我第一次调用这个串口的时候调用,后面再打开这个串口就不会再调用了,但是串口不能收发数据,我的中断应该怎么处理。我是按照优龙的162550的处理的中断。我需要修改pdd层的东西吗,还是能够直接把代码拷过来就用了。
这是我的调试信息
======COMINIT BEFORE GetSerialObject======
======here in CreateSerialObjectt======
:::IRQ_EINT8 OEMInterruptEnable
:::IRQ_EINT8 OEMInterruptEnable
COM_Close: (1 handles) total RX 0, total TX 0, dropped (mdd, pdd) 0,0
INFO: PwrButton: Mapped Irq 0x0 to SysIntr 0x17.
INFO: RebootButton: Mapped Irq 0x2 to SysIntr 0x18.
INFO: BattFLT: Mapped Irq 0x7 to SysIntr 0x19.
SMIVGX - CrystalFreqency = 0x0000000C.
SMIVGX - FrameBuffer Base = 0x08000000.
SMIVGX - Register Base = 0x0BE00000.
SMIVGX - SDRAM Base = 0x80000000.
Memory size undefined!
FOR XSCALE
Detect Card
m_pREG = 0x44300000
dwTmp=0x00000001!
MaxVideoMemorySize return 0x007f0000!
m_pLAW = 0x44500000
SMI::Init(SMISETTINGS *pss)
SetupVideoMemory!
memory size:8!
case 8 memory size:8!
dram_ctrl WORD :0x07b127c0!
MaxVideoMemorySize return 0x007f0000!
OEMIoControl: Unsupported Code 0x10100fc - device 0x0101 func 63
::: Back Light On/Off
TDD_AllocateVm()
===============================================
CPU ID : S3C2410X(0x500000)
----------------------------------------------
MPLL Value :
M = 62, P = 2, S = 1
FCLK (12Mhz) = 105000000
FCLK (16.9344Mhz) = 148176000
----------------------------------------------
CLKDIV Value :
CLKDIVN = 0x7
FCLK:HCLK:PCLK = 1:3:6
===============================================
TDD_DeallocateVm()
:::IRQ_EINT8 OEMInterruptEnable//这是刚打开串口的输出的中断调试信息
CPdd16550::XmitInterruptHandler! Write 0 byte to FIFO
CPdd16550::XmitInterruptHandler! Write 0 byte to FIFO我台式机向开发板发东西的调试信息
CPdd16550::XmitInterruptHandler! Write 0 byte to FIFO
CPdd16550::XmitInterruptHandler! Write 0 byte to FIFO
CPdd16550::XmitInterruptHandler! Write 0 byte to FIFO
CPdd16550::XmitInterruptHandler! Write 0 byte to FIFO
CPdd16550::XmitInterruptHandler! Write 0 byte to FIFO
CPdd16550::XmitInterruptHandler! Write 0 byte to FIFO
CPdd16550::XmitInterruptHandler! Write 0 byte to FIFO
CPdd16550::XmitInterruptHandler! Write 0 byte to FIFO
这会是什么原因呢 我的pdd层需要修改东西吗,我看到::trhredrun 已经有interruptdone 函数了
希望的到各位大侠的帮助 谢谢了
|
|