PokittoLib is the library needed for programming the Pokitto DIY game console (www.pokitto.com)

Committer:
spinal
Date:
Sun Nov 18 15:47:54 2018 +0000
Revision:
64:6e6c6c2b664e
Parent:
52:c04087025cab
added fix for directrectangle()

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Pokitto 52:c04087025cab 1 /*-----------------------------------------------------------------------
Pokitto 52:c04087025cab 2 / PFF - Low level disk interface modlue include file (C)ChaN, 2009
Pokitto 52:c04087025cab 3 /-----------------------------------------------------------------------*/
Pokitto 52:c04087025cab 4
Pokitto 52:c04087025cab 5 #ifndef _DISKIO
Pokitto 52:c04087025cab 6
Pokitto 52:c04087025cab 7 #include "integer.h"
Pokitto 52:c04087025cab 8
Pokitto 52:c04087025cab 9 namespace PFFS {
Pokitto 52:c04087025cab 10
Pokitto 52:c04087025cab 11 /* Status of Disk Functions */
Pokitto 52:c04087025cab 12 typedef BYTE DSTATUS;
Pokitto 52:c04087025cab 13
Pokitto 52:c04087025cab 14 /* Results of Disk Functions */
Pokitto 52:c04087025cab 15 typedef enum {
Pokitto 52:c04087025cab 16 RES_OK = 0, /* 0: Function succeeded */
Pokitto 52:c04087025cab 17 RES_ERROR, /* 1: Disk error */
Pokitto 52:c04087025cab 18 RES_NOTRDY, /* 2: Not ready */
Pokitto 52:c04087025cab 19 RES_PARERR /* 3: Invalid parameter */
Pokitto 52:c04087025cab 20 } DRESULT;
Pokitto 52:c04087025cab 21
Pokitto 52:c04087025cab 22 /*---------------------------------------*/
Pokitto 52:c04087025cab 23 /* Prototypes for disk control functions */
Pokitto 52:c04087025cab 24
Pokitto 52:c04087025cab 25 DSTATUS disk_initialize (void);
Pokitto 52:c04087025cab 26 DRESULT disk_readp (BYTE*, DWORD, WORD, WORD);
Pokitto 52:c04087025cab 27 DRESULT disk_writep (const BYTE*, DWORD);
Pokitto 52:c04087025cab 28
Pokitto 52:c04087025cab 29 #define STA_NOINIT 0x01 /* Drive not initialized */
Pokitto 52:c04087025cab 30 #define STA_NODISK 0x02 /* No medium in the drive */
Pokitto 52:c04087025cab 31
Pokitto 52:c04087025cab 32 /* Card type flags (CardType) */
Pokitto 52:c04087025cab 33 #define CT_MMC 0x01 /* MMC ver 3 */
Pokitto 52:c04087025cab 34 #define CT_SD1 0x02 /* SD ver 1 */
Pokitto 52:c04087025cab 35 #define CT_SD2 0x04 /* SD ver 2 */
Pokitto 52:c04087025cab 36 #define CT_SDC (CT_SD1|CT_SD2) /* SD */
Pokitto 52:c04087025cab 37 #define CT_BLOCK 0x08 /* Block addressing */
Pokitto 52:c04087025cab 38
Pokitto 52:c04087025cab 39 } // namespace PFFS
Pokitto 52:c04087025cab 40
Pokitto 52:c04087025cab 41 #define _DISKIO
Pokitto 52:c04087025cab 42 #endif
Pokitto 52:c04087025cab 43
Pokitto 52:c04087025cab 44
Pokitto 52:c04087025cab 45