forked from ROMEO/obsw
cleanup
This commit is contained in:
@ -54,7 +54,6 @@ void uart0_handle_interrupt(void *) {
|
||||
}
|
||||
|
||||
void uart1_handle_interrupt(void *) {
|
||||
outbyte('R');
|
||||
u32 IsrStatus;
|
||||
|
||||
/*
|
||||
@ -73,8 +72,6 @@ void uart1_handle_interrupt(void *) {
|
||||
|
||||
while (XUartPs_IsReceiveData(XPS_UART1_BASEADDR)) {
|
||||
RecievedByte = XUartPs_ReadReg(XPS_UART1_BASEADDR, XUARTPS_FIFO_OFFSET);
|
||||
outbyte(RecievedByte);
|
||||
outbyte(XUartPs_ReadReg(XPS_UART1_BASEADDR, XUARTPS_ISR_OFFSET));
|
||||
xQueueSendToBackFromISR(uart1_receive_queue, &RecievedByte,
|
||||
&xHigherPriorityTaskWoken);
|
||||
}
|
||||
@ -83,8 +80,6 @@ void uart1_handle_interrupt(void *) {
|
||||
/* Clear the interrupt status. */
|
||||
XUartPs_WriteReg(XPS_UART1_BASEADDR, XUARTPS_ISR_OFFSET, IsrStatus);
|
||||
|
||||
outbyte('X');
|
||||
outbyte('\n');
|
||||
/* directly yield if sending to the queue woke something in ourselves */
|
||||
portYIELD_FROM_ISR(xHigherPriorityTaskWoken);
|
||||
}
|
||||
|
Reference in New Issue
Block a user