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

Commit 750658f

Browse files
committed
Merge pull request #313 from techcap/STM32F4x9_Flash_driver
STM32F4x9_Flash_driver.cpp also needs FLASH definition
2 parents faa177e + f267ec6 commit 750658f

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: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919

2020
//--//
2121

22+
#ifndef FLASH
23+
#define FLASH ((FLASH_TypeDef *) FLASH_R_BASE)
24+
#endif
25+
2226
struct STM32F4_Flash_Driver
2327
{
2428

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

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

2723
typedef UINT16 CHIP_WORD;

0 commit comments

Comments
 (0)