Skip to content

Commit b7dc51a

Browse files
committed
Remove unimplemented power button and sd card eject callbacks
1 parent 5591b60 commit b7dc51a

3 files changed

Lines changed: 0 additions & 19 deletions

File tree

include/nds/interrupts.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -80,16 +80,6 @@ enum IME_VALUE {
8080
extern "C" {
8181
#endif
8282

83-
/*! \fn VoidFn setPowerButtonCB(VoidFn CB);
84-
\brief set callback for DSi Powerbutton press
85-
86-
\param CB
87-
function to call when power button pressed
88-
\return
89-
the previously set callback
90-
*/
91-
VoidFn setPowerButtonCB(VoidFn CB);
92-
9383
static inline int enterCriticalSection(void) {
9484
return irqLock();
9585
}

include/nds/system.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,6 @@ typedef struct sysVectors_t {
168168
#define SystemVectors __excpt_vectors
169169

170170
extern sysVectors __excpt_vectors;
171-
void setSDcallback(void(*callback)(int));
172171

173172
/*!
174173
\brief Sets the ARM9 clock speed, only possible in DSi mode

source/arm9/system.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,6 @@ distribution.
3737
//todo document
3838
//
3939

40-
static void(*SDcallback)(int)=NULL;
41-
42-
//---------------------------------------------------------------------------------
43-
void setSDcallback(void(*callback)(int)) {
44-
//---------------------------------------------------------------------------------
45-
SDcallback = callback;
46-
}
47-
4840
//---------------------------------------------------------------------------------
4941
void powerOn(int bits) {
5042
//---------------------------------------------------------------------------------

0 commit comments

Comments
 (0)