mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
Merge pull request #1822 from LudwigOrtmann/featuremania
make + tests: add more Makefile.features
This commit is contained in:
commit
c320cd0f13
@ -1 +1 @@
|
||||
FEATURES_PROVIDED = periph_gpio periph_spi
|
||||
FEATURES_PROVIDED = periph_gpio periph_spi periph_random
|
||||
|
@ -1 +1 @@
|
||||
FEATURES_PROVIDED = periph_gpio
|
||||
FEATURES_PROVIDED = periph_gpio periph_random periph_cpuid
|
||||
|
@ -1 +1 @@
|
||||
FEATURES_PROVIDED = transceiver periph_gpio periph_uart periph_spi periph_i2c
|
||||
FEATURES_PROVIDED = transceiver periph_gpio periph_uart periph_spi periph_i2c periph_rtt
|
||||
|
@ -1 +1 @@
|
||||
FEATURES_PROVIDED = transceiver
|
||||
FEATURES_PROVIDED = transceiver periph_pwm
|
||||
|
@ -1 +1 @@
|
||||
FEATURES_PROVIDED = transceiver
|
||||
FEATURES_PROVIDED = transceiver periph_cpuid
|
||||
|
@ -1 +1 @@
|
||||
FEATURES_PROVIDED = periph_gpio
|
||||
FEATURES_PROVIDED = periph_gpio periph_random periph_rtt periph_cpuid
|
||||
|
@ -1 +1 @@
|
||||
FEATURES_PROVIDED = periph_gpio
|
||||
FEATURES_PROVIDED = periph_gpio periph_random periph_rtt periph_cpuid
|
||||
|
@ -1 +1 @@
|
||||
FEATURES_PROVIDED = periph_gpio periph_spi
|
||||
FEATURES_PROVIDED = periph_gpio periph_spi periph_pwm periph_random
|
||||
|
@ -1 +1 @@
|
||||
FEATURES_PROVIDED = periph_gpio
|
||||
FEATURES_PROVIDED = periph_gpio periph_random periph_rtt periph_cpuid
|
||||
|
@ -1,6 +1,6 @@
|
||||
export APPLICATION = periph_cpuid
|
||||
include ../Makefile.tests_common
|
||||
|
||||
#BOARD_WHITELIST := native
|
||||
FEATURES_REQUIRED = periph_cpuid
|
||||
|
||||
include $(RIOTBASE)/Makefile.include
|
||||
|
@ -25,9 +25,6 @@
|
||||
#include "cpu-conf.h"
|
||||
#include "periph/cpuid.h"
|
||||
|
||||
/* only compile this test if CPUID getter is defined for the platform */
|
||||
#if CPUID_ID_LEN
|
||||
|
||||
int main(void)
|
||||
{
|
||||
uint8_t id[CPUID_ID_LEN];
|
||||
@ -47,14 +44,3 @@ int main(void)
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
int main(void)
|
||||
{
|
||||
puts("Test for the CPUID driver");
|
||||
puts("Error: the CPUID driver is not defined for this platform");
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif /* CPUID_ID_LEN */
|
||||
|
@ -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 */
|
||||
|
@ -24,9 +24,6 @@
|
||||
#include "periph_conf.h"
|
||||
#include "periph/gpio.h"
|
||||
|
||||
/* only compile this if at least one GPIO device is defined */
|
||||
#if GPIO_NUMOF
|
||||
|
||||
#define ACTIVE_FLANK GPIO_RISING
|
||||
#define PULL GPIO_NOPULL
|
||||
|
||||
@ -187,14 +184,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 */
|
||||
|
@ -1,9 +1,7 @@
|
||||
export APPLICATION = periph_pwm
|
||||
include ../Makefile.tests_common
|
||||
|
||||
BOARD_BLACKLIST := chronos mbed_lpc1768 msb-430 msb-430h native qemu-i386 redbee-econotag telosb \
|
||||
wsn430-v1_3b wsn430-v1_4 z1
|
||||
# all listed boards: no periph_conf.h defined,
|
||||
FEATURES_REQUIRED = periph_pwm
|
||||
|
||||
USEMODULE += vtimer
|
||||
DISABLE_MODULE += auto_init
|
||||
|
@ -30,9 +30,6 @@
|
||||
#include "vtimer.h"
|
||||
#include "periph/pwm.h"
|
||||
|
||||
/* only compile this test if PWM devices are defined */
|
||||
#if PWM_NUMOF
|
||||
|
||||
#define WAIT (10000)
|
||||
#define STEP (10)
|
||||
|
||||
@ -77,15 +74,3 @@ int main(void)
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
int main(void)
|
||||
{
|
||||
puts("\nRIOT PWM test");
|
||||
puts("There are no PWM devices defined for this board!");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif /* PWM_NUMOF */
|
||||
|
@ -1,9 +1,7 @@
|
||||
export APPLICATION = periph_random
|
||||
include ../Makefile.tests_common
|
||||
|
||||
BOARD_BLACKLIST := chronos mbed_lpc1768 msb-430 msb-430h native qemu-i386 redbee-econotag telosb \
|
||||
wsn430-v1_3b wsn430-v1_4 z1
|
||||
# all listed boards: no periph_conf.h defined,
|
||||
FEATURES_REQUIRED = periph_random
|
||||
|
||||
USEMODULE += vtimer
|
||||
|
||||
|
@ -24,9 +24,6 @@
|
||||
#include <periph/random.h>
|
||||
#include <periph_conf.h>
|
||||
|
||||
/* only compile test if a random number generator is defined */
|
||||
#if RANDOM_NUMOF
|
||||
|
||||
#define LIMIT (20U)
|
||||
|
||||
int main(void)
|
||||
@ -66,14 +63,3 @@ int main(void)
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
int main(void)
|
||||
{
|
||||
puts("Random number generator low-level driver test");
|
||||
puts("There is no (pseudo) random generator implementation for your platform");
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif /* RANDOM_NUMOF */
|
||||
|
@ -1,9 +1,7 @@
|
||||
export APPLICATION = periph_rtt
|
||||
include ../Makefile.tests_common
|
||||
|
||||
BOARD_BLACKLIST := chronos mbed_lpc1768 msb-430 msb-430h native qemu-i386 redbee-econotag telosb \
|
||||
wsn430-v1_3b wsn430-v1_4 z1
|
||||
# all listed boards: no periph_conf.h defined,
|
||||
FEATURES_REQUIRED = periph_rtt
|
||||
|
||||
DISABLE_MODULE += auto_init
|
||||
|
||||
|
@ -28,9 +28,6 @@
|
||||
#include "periph_conf.h"
|
||||
#include "periph/rtt.h"
|
||||
|
||||
/* only compile this test if a RTT device is defined */
|
||||
#if RTT_NUMOF
|
||||
|
||||
#define TICKS_TO_WAIT (10 * RTT_FREQUENCY)
|
||||
|
||||
void cb(void *arg)
|
||||
@ -59,15 +56,3 @@ int main(void)
|
||||
puts("Done setting up the RTT, wait for many Hellos");
|
||||
return 0;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
int main(void)
|
||||
{
|
||||
puts("\nRIOT RTT low-level driver test");
|
||||
puts("There are no RTT devices defined for this board!");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif /* RTT_NUMOF */
|
||||
|
Loading…
Reference in New Issue
Block a user