mirror of
https://github.com/LNH-team/pico-loader.git
synced 2026-06-02 09:16:49 +02:00
Initial commit
This commit is contained in:
15
arm7/source/ipc.h
Normal file
15
arm7/source/ipc.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#pragma once
|
||||
#include <libtwl/ipc/ipcFifo.h>
|
||||
#include "ipcCommands.h"
|
||||
|
||||
static inline void sendToArm9(u32 value)
|
||||
{
|
||||
while (ipc_isSendFifoFull());
|
||||
ipc_sendWordDirect(value);
|
||||
}
|
||||
|
||||
static inline u32 receiveFromArm9()
|
||||
{
|
||||
while (ipc_isRecvFifoEmpty());
|
||||
return ipc_recvWordDirect();
|
||||
}
|
||||
Reference in New Issue
Block a user