1
0
mirror of https://github.com/parasyte/alt64 synced 2024-11-10 11:15:11 -05:00
alt64/disk.h
2014-06-28 22:10:11 -07:00

30 lines
397 B
C

/*
* File: disk.h
* Author: krik
*
* Created on 2 Èþíü 2011 ã., 4:07
*/
#ifndef _DISK_H
#define _DISK_H
#include "types.h"
u8 diskGetInterface();
u8 diskInit();
u8 diskRead(u32 saddr, void *buff, u16 slen);
u8 diskWrite(u32 saddr, u8 *buff, u16 slen);
void diskSetInterface(u32 interface);
#define WAIT 1024
#define DISK_IFACE_SPI 0
#define DISK_IFACE_SD 1
#endif /* _DISK_H */