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

Subversion Repositories zap

[/] [zap/] [trunk/] [src/] [ts/] [uart/] [irq_handler.c] - Rev 43

Compare with Previous | Blame | View Log

#include "uart.h"
 
void irq_handler () 
{
       // Wait for space to be available.
       while ( !UARTTransmitEmpty() );
 
       // Write character
       UARTWriteByte ( UARTGetChar() );
 
       // Clear interrupt pending register in VIC.
       *VIC_INT_CLEAR = 0xffffffff;
}
 
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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