mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-20 01:58:32 -04:00
PPC405 work in progress.
This commit is contained in:
parent
39b68e7fc5
commit
7008ebb8c9
2 changed files with 67 additions and 25 deletions
|
@ -92,10 +92,11 @@ extern XIntc xInterruptController;
|
|||
XUartLite_Initialize( &xUART, XPAR_RS232_UART_DEVICE_ID );
|
||||
XUartLite_ResetFifos( &xUART );
|
||||
XUartLite_DisableInterrupt( &xUART );
|
||||
XIntc_Connect( &xInterruptController, XPAR_OPB_INTC_0_RS232_UART_INTERRUPT_INTR, ( XInterruptHandler )vSerialISR, (void *)&xUART );
|
||||
XIntc_Enable( &xInterruptController, XPAR_OPB_INTC_0_RS232_UART_INTERRUPT_INTR );
|
||||
|
||||
XUartLite_EnableInterrupt( &xUART );
|
||||
|
||||
if( xPortInstallInterruptHandler( XPAR_OPB_INTC_0_RS232_UART_INTERRUPT_INTR, ( XInterruptHandler )vSerialISR, (void *)&xUART ) == pdPASS )
|
||||
{
|
||||
XUartLite_EnableInterrupt( &xUART );
|
||||
}
|
||||
}
|
||||
|
||||
return ( xComPortHandle ) 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue