case SYSINTR_SERIAL1: // Serial port1. s2410INT->rSUBSRCPND = (INTSUB_RXD1 | INTSUB_TXD1 | INTSUB_ERR1); s2410INT->rINTSUBMSK &= ~INTSUB_RXD1; s2410INT->rINTSUBMSK &= ~INTSUB_TXD1; s2410INT->rINTSUBMSK &= ~INTSUB_ERR1; s2410INT->rSRCPND = BIT_UART1; // S3C2410X Developer Notice (page 4) warns against writing a 1 to a 0 bit in the INTPND register. if (s2410INT->rINTPND & BIT_UART1) s2410INT->rINTPND = BIT_UART1; s2410INT->rINTMSK &= ~BIT_UART1; break; |
void OEMInterruptDisable(DWORD idInt) // @parm Interrupt ID to be disabled. See <t Interrupt ID's> |
case SYSINTR_SERIAL1: s2410INT->rINTMSK |= BIT_UART1; s2410INT->rINTSUBMSK |= INTSUB_RXD1; s2410INT->rINTSUBMSK |= INTSUB_TXD1; s2410INT->rINTSUBMSK |= INTSUB_ERR1; break; |
else if(IntPendVal == INTSRC_UART1) { SubIntPendVal = s2410INT->rSUBSRCPND; // Note that we only mask the sub source interrupt - the serial driver will clear the // sub source pending register. // if(SubIntPendVal & INTSUB_ERR1) { s2410INT->rINTSUBMSK |= INTSUB_ERR1; } else if(SubIntPendVal & INTSUB_RXD1) { s2410INT->rINTSUBMSK |= INTSUB_RXD1; } else if(SubIntPendVal & INTSUB_TXD1) { s2410INT->rINTSUBMSK |= INTSUB_TXD1; } else { return(SYSINTR_NOP); } // NOTE: Don't clear INTSRC:UART1 here - serial driver does that. // s2410INT->rINTMSK |= BIT_UART1; if (s2410INT->rINTPND & BIT_UART1) s2410INT->rINTPND = BIT_UART1; return(SYSINTR_SERIAL1); } |
ComponentType ( Name ( "Serial" ) GUID ( {6563AD6C-E71C-11D4-B892-0050FC049781} ) MaxResolvedImpsAllowed( 999 ) Implementations ( Implementation ( Name ( "S32410 Serial UART" ) |
Implementation ( Name ( "S32410 Serial UART1" ) GUID ( {7C4427A5-286C-4C7A-B687-4E3B364D079B} ) Description ( "Samsung S32410 serial UART controller." ) BSPPlatformDir ( "smdk2410" ) Version ( "5.0.0.0" ) Locale ( 0409 ) Vendor ( "Microsoft" ) Date ( "2003-1-13" ) SizeIsCPUDependent( 1 ) BuildMethods ( BuildMethod ( GUID ( {07DA2083-6261-4ED6-B5BB-70CF4D930D68} ) Step ( BSP ) CPU ( "armV4" ) CPU ( "armV4I" ) Action ( '#BUILD(SOURCES,"$(_WINCEROOT)PLATFORMSMDK2410driversserial")') ) ) ) |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |