File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3382,11 +3382,7 @@ FRESULT f_read (
33823382 if (!sect ) ABORT (fs , FR_INT_ERR );
33833383 sect += csect ;
33843384 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 */
33903386 if (csect + cc > fs -> csize ) { /* Clip at cluster boundary */
33913387 cc = fs -> csize - csect ;
33923388 }
Original file line number Diff line number Diff line change 343343/ SemaphoreHandle_t and etc.. A header file for O/S definitions needs to be
344344/ included somewhere in the scope of ff.h. */
345345
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-
352346/* #include <windows.h> // O/S definitions */
353347
354348
Original file line number Diff line number Diff line change @@ -102,7 +102,6 @@ CFLAGS += -Wno-undef
102102CFLAGS += -Wno-cast-align
103103
104104NRF_DEFINES += -DCONFIG_GPIO_AS_PINRESET
105- NRF_DEFINES += -D_FS_DISK_READ_ALIGNED=1
106105CFLAGS += $(NRF_DEFINES )
107106
108107CFLAGS += \
You can’t perform that action at this time.
0 commit comments