test
Dependencies: SDFileSystem mbed-dev
Fork of Nucleo_Ex06_EMU by
Diff: pNesX_Types.h
- Revision:
- 4:53ef91c87d74
diff -r 8d6e6aec9b01 -r 53ef91c87d74 pNesX_Types.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pNesX_Types.h Sat May 27 02:17:37 2017 +0000 @@ -0,0 +1,51 @@ +/*===================================================================*/ +/* */ +/* pNesX_Types.h : Type definitions for pNesX */ +/* */ +/* 1999/11/03 Racoon New preparation */ +/* */ +/*===================================================================*/ + +#ifndef PNESX_TYPES_H_INCLUDED +#define PNESX_TYPES_H_INCLUDED + +/*-------------------------------------------------------------------*/ +/* Type definition */ +/*-------------------------------------------------------------------*/ +#ifndef DWORD +typedef unsigned long DWORD; +#endif /* !DWORD */ + +#ifndef WORD +typedef unsigned short WORD; +#endif /* !WORD */ + +#ifndef BYTE +typedef unsigned char BYTE; +#endif /* !BYTE */ + +/*-------------------------------------------------------------------*/ +/* NULL definition */ +/*-------------------------------------------------------------------*/ +#ifndef NULL +#define NULL 0 +#endif /* !NULL */ + +// RLDUStStBA +//A, B, Select, Start, Up, Down, Left, Right + +#define KEYPAD_DOWN ( 0x20 ) +#define KEYPAD_UP ( 0x10 ) +#define KEYPAD_LEFT ( 0x40 ) +#define KEYPAD_RIGHT ( 0x80 ) + +#define KEYPAD_A ( 0x1 ) +#define KEYPAD_B ( 0x2 ) + +#define KEYPAD_SELECT ( 0x4 ) +#define KEYPAD_START ( (1<<3) ) + +#endif /* !PNESX_TYPES_H_INCLUDED */ + + +