File tree Expand file tree Collapse file tree 3 files changed +1
-12
lines changed Expand file tree Collapse file tree 3 files changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -3382,11 +3382,7 @@ FRESULT f_read (
3382
3382
if (!sect ) ABORT (fs , FR_INT_ERR );
3383
3383
sect += csect ;
3384
3384
cc = btr / SS (fs ); /* When remaining bytes >= sector size, */
3385
- if (cc
3386
- #if _FS_DISK_READ_ALIGNED
3387
- && (((int )rbuff & 3 ) == 0 )
3388
- #endif
3389
- ) {/* Read maximum contiguous sectors directly */
3385
+ if (cc ) {/* Read maximum contiguous sectors directly */
3390
3386
if (csect + cc > fs -> csize ) { /* Clip at cluster boundary */
3391
3387
cc = fs -> csize - csect ;
3392
3388
}
Original file line number Diff line number Diff line change 343
343
/ SemaphoreHandle_t and etc.. A header file for O/S definitions needs to be
344
344
/ included somewhere in the scope of ff.h. */
345
345
346
- // Set to nonzero if buffers passed to disk_read have a word alignment
347
- // restriction
348
- #ifndef _FS_DISK_READ_ALIGNED
349
- #define _FS_DISK_READ_ALIGNED 0
350
- #endif
351
-
352
346
/* #include <windows.h> // O/S definitions */
353
347
354
348
Original file line number Diff line number Diff line change @@ -102,7 +102,6 @@ CFLAGS += -Wno-undef
102
102
CFLAGS += -Wno-cast-align
103
103
104
104
NRF_DEFINES += -DCONFIG_GPIO_AS_PINRESET
105
- NRF_DEFINES += -D_FS_DISK_READ_ALIGNED=1
106
105
CFLAGS += $(NRF_DEFINES )
107
106
108
107
CFLAGS += \
You can’t perform that action at this time.
0 commit comments