Skip to content

Commit 622382a

Browse files
author
Offir Kochalsky
authored
Merge pull request #22 from ARMmbed/offir-spif-bd1
Fix undefined macro error in ARM build
2 parents 2fc4f8e + 2d75682 commit 622382a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

SPIFBlockDevice.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ using namespace mbed;
3131
#define SPIF_DEFAULT_PAGE_SIZE 256
3232
#define SPIF_DEFAULT_SE_SIZE 4096
3333
#define SPI_MAX_STATUS_REGISTER_SIZE 2
34+
#ifndef UINT64_MAX
35+
#define UINT64_MAX -1
36+
#endif
3437
#define SPI_NO_ADDRESS_COMMAND UINT64_MAX
3538
// Status Register Bits
3639
#define SPIF_STATUS_BIT_WIP 0x1 //Write In Progress

0 commit comments

Comments
 (0)