Skip to content

Commit 9d0e9dd

Browse files
committed
Move DEVICE_FLASH define to avoid compilation issues for non FLASH devices
1 parent 44c8d16 commit 9d0e9dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

targets/TARGET_STM/TARGET_STM32F4/flash_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@
2828
*******************************************************************************
2929
*/
3030

31+
#if DEVICE_FLASH
3132
#include "flash_api.h"
3233
#include "flash_data.h"
3334
#include "platform/mbed_critical.h"
3435

3536
// This file is automatically generated
3637

37-
#if DEVICE_FLASH
3838

3939
static uint32_t GetSector(uint32_t Address);
4040
static uint32_t GetSectorSize(uint32_t Sector);

0 commit comments

Comments
 (0)