forked from len0rd/rockbox
Do some housekeeping with fat.h and SECTOR_SIZE
Many includes of fat.h are pointless. Some includes are just for SECTOR_SIZE. Add a file 'firmware/include/fs_defines.h' for that and to define tuneable values that were scattered amongst various headers. Remove some local definitions of SECTOR_SIZE since they have to be in agreement with the rest of the fs code anyway. (We'll see what's in fact pointless in a moment ;) Change-Id: I9ba183bf58bd87f5c45eba7bd675c7e2c1c18ed5
This commit is contained in:
parent
70c929179b
commit
6db80020b4
29 changed files with 118 additions and 105 deletions
|
@ -27,7 +27,7 @@
|
|||
#include "logf.h"
|
||||
#include "storage.h"
|
||||
#include "disk.h"
|
||||
#include "fat.h"
|
||||
#include "fs_defines.h"
|
||||
/* Needed to get at the audio buffer */
|
||||
#include "audio.h"
|
||||
#include "usb_storage.h"
|
||||
|
@ -41,10 +41,6 @@
|
|||
#define RAMDISK_SIZE 2048
|
||||
#endif
|
||||
|
||||
#ifndef SECTOR_SIZE
|
||||
#define SECTOR_SIZE 512
|
||||
#endif
|
||||
|
||||
/* These defaults allow the operation */
|
||||
#ifndef USBSTOR_READ_SECTORS_FILTER
|
||||
#define USBSTOR_READ_SECTORS_FILTER() ({ 0; })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue