OpenCores
URL https://opencores.org/ocsvn/zap/zap/trunk

Subversion Repositories zap

[/] [zap/] [trunk/] [src/] [ts/] [uart/] [irq_handler.c] - Blame information for rev 43

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 43 Revanth
#include "uart.h"
2
 
3
void irq_handler ()
4
{
5
       // Wait for space to be available.
6
       while ( !UARTTransmitEmpty() );
7
 
8
       // Write character
9
       UARTWriteByte ( UARTGetChar() );
10
 
11
       // Clear interrupt pending register in VIC.
12
       *VIC_INT_CLEAR = 0xffffffff;
13
}
14
 

powered by: WebSVN 2.1.0

© copyright 1999-2022 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.