mirror of
https://github.com/ApacheThunder/nCard_USB_Examples.git
synced 2025-06-20 04:05:43 -04:00

* 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.
32 lines
432 B
C
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_
|