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:
parent
0812d4789a
commit
7cea2f536e
@ -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 */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user