Skip to content
This repository was archived by the owner on Jun 5, 2019. It is now read-only.

Commit 090ec78

Browse files
committed
Revert "STM32F4x9_Flash_driver.cpp also needs FLASH definition"
1 parent 750658f commit 090ec78

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

DeviceCode/Targets/Native/STM32F4/DeviceCode/STM32F4_Flash/STM32F4_Flash.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@
1919

2020
//--//
2121

22-
#ifndef FLASH
23-
#define FLASH ((FLASH_TypeDef *) FLASH_R_BASE)
24-
#endif
25-
2622
struct STM32F4_Flash_Driver
2723
{
2824

DeviceCode/Targets/Native/STM32F4/DeviceCode/STM32F4_Flash/STM32F4_Flash_driver.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
#include "..\stm32f4xx.h"
1919
#else
2020
#include "..\stm32f2xx.h"
21+
#endif
22+
23+
#ifndef FLASH
24+
#define FLASH ((FLASH_TypeDef *) FLASH_R_BASE)
2125
#endif
2226

2327
typedef UINT16 CHIP_WORD;

0 commit comments

Comments
 (0)