N64FlashcartMenu
Loading...
Searching...
No Matches
flashcart_utils.h
Go to the documentation of this file.
1
7#ifndef FLASHCART_UTILS_H__
8#define FLASHCART_UTILS_H__
9
10
11#include <stdbool.h>
12#include <stddef.h>
13#include <stdint.h>
14
15#include <fatfs/ff.h>
16
17
18#define SAVE_WRITEBACK_MAX_SECTORS (256)
19
20
21typedef enum {
22 ADDRESS_TYPE_MEM,
23 ADDRESS_TYPE_PI,
24} address_type_t;
25
26
27void pi_dma_read_data (void *src, void *dst, size_t length);
28void pi_dma_write_data (void *src, void *dst, size_t length);
29void fatfs_fix_file_size (FIL *fil);
30bool fatfs_get_file_sectors (char *path, uint32_t *address, address_type_t address_type, uint32_t max_sectors);
31
32
33#endif