1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-26 15:03:53 +01:00

tests/periph_gpio: let build fail without GPIO

This commit is contained in:
Ludwig Ortmann 2014-10-16 19:02:18 +02:00
parent 0812d4789a
commit 7cea2f536e

View File

@ -25,9 +25,6 @@
#include "periph/gpio.h"
#include "hwtimer.h"
/* only compile this if at least one GPIO device is defined */
#if GPIO_NUMOF
uint32_t state = 0;
uint32_t old_state = 0;
@ -93,14 +90,3 @@ int main(void)
return 0;
}
#else
int main(void)
{
puts("No low-level GPIO device defined for this platform.");
return 0;
}
#endif /* GPIO_NUMOF */