Closed
Description
In all the test files (for example in mbed/libraries/tests/mbed/rtc/main.cpp),
where the peripheral/function is checked, the check of the peripheral/function must be placed after the includes:
Today it is:
#if !DEVICE_RTC
#error [NOT_SUPPORTED] RTC is not supported
#endif
#include "mbed.h"
#include "test_env.h"
While it must be:
#include "mbed.h"
#include "test_env.h"
#if !DEVICE_RTC
#error [NOT_SUPPORTED] RTC is not supported
#endif
Metadata
Metadata
Assignees
Labels
No labels