summaryrefslogtreecommitdiff
path: root/drivers/flash/flash_spi.h
diff options
context:
space:
mode:
authorleah-splitkb <103112489+leah-splitkb@users.noreply.github.com>2022-04-14 05:27:26 +0200
committerGitHub <noreply@github.com>2022-04-14 13:27:26 +1000
commit18e56902c996854fdb3b68a26f07c0751883701d (patch)
tree43380dec0575ab042d58cf4d13571e7fcc88325f /drivers/flash/flash_spi.h
parent46c0db458ee70d5c37add7642a175cc96163713c (diff)
Fix external flash on AVR (#16851)
Diffstat (limited to 'drivers/flash/flash_spi.h')
-rw-r--r--drivers/flash/flash_spi.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/flash/flash_spi.h b/drivers/flash/flash_spi.h
index abe95e955e..87460fc210 100644
--- a/drivers/flash/flash_spi.h
+++ b/drivers/flash/flash_spi.h
@@ -74,21 +74,21 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
The sector size of the FLASH in bytes, as specified in the datasheet.
*/
#ifndef EXTERNAL_FLASH_SECTOR_SIZE
-# define EXTERNAL_FLASH_SECTOR_SIZE (4 * 1024)
+# define EXTERNAL_FLASH_SECTOR_SIZE (4 * 1024L)
#endif
/*
The block size of the FLASH in bytes, as specified in the datasheet.
*/
#ifndef EXTERNAL_FLASH_BLOCK_SIZE
-# define EXTERNAL_FLASH_BLOCK_SIZE (64 * 1024)
+# define EXTERNAL_FLASH_BLOCK_SIZE (64 * 1024L)
#endif
/*
The total size of the FLASH in bytes, as specified in the datasheet.
*/
#ifndef EXTERNAL_FLASH_SIZE
-# define EXTERNAL_FLASH_SIZE (512 * 1024)
+# define EXTERNAL_FLASH_SIZE (512 * 1024L)
#endif
/*