1
0
mirror of https://github.com/parasyte/alt64 synced 2024-11-11 11:45:03 -05:00
alt64/inc/sd.h

28 lines
467 B
C
Raw Normal View History

2017-10-06 09:48:52 -04:00
//
// Copyright (c) 2017 The Altra64 project contributors
// Portions (c) 2011 KRIK
// See LICENSE file in the project root for full license information.
//
2014-06-29 01:10:11 -04:00
2017-10-14 06:57:45 -04:00
#ifndef _SD_H
#define _SD_H
2014-06-29 01:10:11 -04:00
#include "types.h"
2017-10-14 06:57:45 -04:00
u8 sdGetInterface();
u8 sdInit();
u8 sdRead(u32 sector, u8 *buff, u16 count);
u8 sdWrite(u32 sector, const u8 *buff, u16 count);
void sdSetInterface(u32 interface);
2014-06-29 01:10:11 -04:00
#define WAIT 1024
#define DISK_IFACE_SPI 0
#define DISK_IFACE_SD 1
#endif /* _DISK_H */