mirror of
https://github.com/coderkei/akmenu-next.git
synced 2025-06-19 17:35:38 -04:00
40 lines
555 B
C++
40 lines
555 B
C++
/*
|
|
irqs.h
|
|
Copyright (C) 2007 Acekard, www.acekard.com
|
|
Copyright (C) 2007-2009 somebody
|
|
Copyright (C) 2009 yellow wood goblin
|
|
|
|
SPDX-License-Identifier: GPL-3.0-or-later
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <nds.h>
|
|
#include "singleton.h"
|
|
|
|
class cIRQ {
|
|
public:
|
|
cIRQ() {}
|
|
|
|
~cIRQ() {}
|
|
|
|
public:
|
|
void init();
|
|
|
|
void vblankStart();
|
|
|
|
void vblankStop();
|
|
|
|
static void cardMC();
|
|
|
|
static void vBlank();
|
|
|
|
static bool _vblankStarted;
|
|
};
|
|
|
|
typedef t_singleton<cIRQ> irq_s;
|
|
|
|
inline cIRQ& irq() {
|
|
return irq_s::instance();
|
|
}
|