mirror of
https://github.com/aotta/PicoPAC
synced 2024-12-11 16:22:15 -05:00
36 lines
895 B
C
36 lines
895 B
C
/*
|
|
// PicoPAC MultiCART by Andrea Ottaviani 2024
|
|
//
|
|
// VIDEOPAC multicart based on Raspberry Pico board -
|
|
//
|
|
// More info on https://github.com/aotta/
|
|
//
|
|
// parts of code are directly from the A8PicoCart project by Robin Edwards 2023
|
|
//
|
|
// Needs to be a release NOT debug build for the cartridge emulation to work
|
|
//
|
|
// Edit myboard.h depending on the type of flash memory on the pico clone//
|
|
//
|
|
// v. 1.0 2024-08-05 : Initial version for Pi Pico
|
|
//
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef __FATFS_DISK_H__
|
|
#define __FATFS_DISK_H__
|
|
|
|
#include "flash_fs.h"
|
|
|
|
#define SECTOR_NUM 30716 //2044 //1800
|
|
#define SECTOR_SIZE 512
|
|
|
|
void create_fatfs_disk();
|
|
bool mount_fatfs_disk();
|
|
bool fatfs_is_mounted();
|
|
uint32_t fatfs_disk_read(uint8_t* buff, uint32_t sector, uint32_t count);
|
|
uint32_t fatfs_disk_write(const uint8_t* buff, uint32_t sector, uint32_t count);
|
|
void fatfs_disk_sync();
|
|
|
|
#endif |