cpu/stm32: added compile guards to flashpage.c

pr/rotary
Hauke Petersen 7 years ago
parent ad8f390cc1
commit d84982428b

@ -20,11 +20,13 @@
#include "cpu.h"
#include "assert.h"
#include "periph/flashpage.h"
#define ENABLE_DEBUG (0)
#include "debug.h"
#if defined(FLASHPAGE_SIZE) && defined(FLASHPAGE_NUMOF)
#include "periph/flashpage.h"
void flashpage_write(int page, void *data)
{
assert(page < FLASHPAGE_NUMOF);
@ -86,3 +88,5 @@ void flashpage_write(int page, void *data)
while (RCC->CR & RCC_CR_HSIRDY) {}
}
}
#endif /* defined(FLASHPAGE_SIZE) && defined(FLASHPAGE_NUMOF) */

Loading…
Cancel
Save