-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsdload.h
More file actions
45 lines (33 loc) · 1 KB
/
Copy pathsdload.h
File metadata and controls
45 lines (33 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//
// sdload.h - Using Properties library
//
#ifndef _SDLOAD_H_
#define _SDLOAD_H_
#include <circle/actled.h>
#include <circle/types.h>
#include <SDCard/emmc.h>
#include <circle/fs/fat/fatfs.h>
#include <circle/devicenameservice.h>
#include <Properties/propertiesfatfsfile.h>
#define MAX_PATCHES 8
#define DRIVE "SD:"
class CInterruptSystem;
class CTimer;
class CSDLoad
{
public:
CSDLoad(CInterruptSystem* pInterrupt, CTimer* pTimer);
bool Initialize(); // Mount SD card
bool LoadPatches(); // Load all patches
// Get a properties object for a patch
CPropertiesFatFsFile* GetPatchProperties(unsigned index);
// Save a patch (new capability!)
bool SavePatch(unsigned index, CPropertiesFatFsFile *pProps);
private:
CEMMCDevice m_EMMC;
FATFS m_FileSystem;
CActLED m_ActLED;
// Store properties files instead of raw buffers
CPropertiesFatFsFile* m_pPatchProps[MAX_PATCHES];
};
#endif