1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

unittests/flashpage: force uniform flashpage layout

The unittest for flashpage only checks the inline flashpage_ functions
with the assumption that the flashpage layout is uniform. This commit
undefines the macro guarding those functions to force them to be
included even when the flashpage peripheral defines own implementations.
This commit is contained in:
Koen Zandberg 2021-02-01 18:20:06 +01:00
parent 2bcddba5ca
commit f5b6ebf1cb
No known key found for this signature in database
GPG Key ID: 0895A893E6D2985B

View File

@ -27,6 +27,9 @@
#define FLASHPAGE_NUMOF 128 #define FLASHPAGE_NUMOF 128
#endif #endif
/* fake uniform flashpage sizes for devices that don't have it */
#undef PERIPH_FLASHPAGE_CUSTOM_PAGESIZES
#include "periph/flashpage.h" #include "periph/flashpage.h"
static void test_flashbase_addr(void) static void test_flashbase_addr(void)