34 lines
507 B
C++
34 lines
507 B
C++
/*
|
|
* interrupt.c
|
|
*
|
|
* Created on: Aug 29, 2019
|
|
* Author: abody
|
|
*/
|
|
#include <interrupt_handlers.h>
|
|
#include "main.h"
|
|
#include "globals.h"
|
|
#include "ili9341.h"
|
|
|
|
void HandleLcdDmaIrq()
|
|
{
|
|
// DMA2 Stream4
|
|
Ili9341Fsmc::HandleDmaIrq(&Ili9341Fsmc::Instance());
|
|
}
|
|
|
|
void HandleConsoleRxDmaIrq()
|
|
{
|
|
if(g_console)
|
|
g_console->HandleRxDmaIrq();
|
|
}
|
|
|
|
void HandleConsoleTxDmaIrq()
|
|
{
|
|
if(g_console)
|
|
g_console->HandleTxDmaIrq();
|
|
}
|
|
|
|
void HandleConsoleUsartIrq()
|
|
{
|
|
if(g_console)
|
|
g_console->HandleUsartIrq();
|
|
}
|