mirror of
https://github.com/aotta/PicoPAC
synced 2024-11-21 16:15:01 -05:00
33 lines
852 B
C
33 lines
852 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 __FLASH_FS_H__
|
||
|
#define __FLASH_FS_H__
|
||
|
|
||
|
#include <stdbool.h>
|
||
|
|
||
|
int flash_fs_mount();
|
||
|
void flash_fs_create();
|
||
|
void flash_fs_sync();
|
||
|
void flash_fs_read_FAT_sector(uint16_t fat_sector, void *buffer);
|
||
|
void flash_fs_write_FAT_sector(uint16_t fat_sector, const void *buffer);
|
||
|
bool flash_fs_verify_FAT_sector(uint16_t fat_sector, const void *buffer);
|
||
|
|
||
|
#endif
|