nCard_USB_Examples/dspad/arm9/source/usbhal.h
ApacheThunder e5a90c1121 Add source code.
* Initial commit of modified source code.
* Arm7 for both apps appears to be some form of template arm7 setup.
Perhaps from the ancient version of libnds this used to use. I just used
the default arm7 template code from current version of libnds...seems to
do the job.
2023-10-21 23:41:46 -05:00

32 lines
432 B
C

#ifndef _USBHAL_H_
#define _USBHAL_H_
#ifdef ARM9
#include <nds.h>
#else
#include <gba.h>
#endif
#include <stdio.h>
#define BOOL u8
#define WORD u16
#define DWORD u32
#define BYTE u8
#define TRUE 1
#define FALSE 0
void usbwrcmd(u8 val);
void usbwrdat(u8 val);
u8 usbrddat();
u16 usbreadid();
//#define disable() ;
//#define enable() ;
#define D12_ID 0x1012
#define nop() __asm __volatile ("nop\n")
#endif //_USBHAL_H_