1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

312 Commits

Author SHA1 Message Date
Hauke Petersen
7d8e9def20 tests/periph_uart_int: fixed formatting 2014-10-30 21:51:31 +01:00
Thomas Eichinger
44dcd0e631 Merge pull request #1817 from haukepetersen/add_driver_lps331ap
drivers: added driver for LPS331AP pressure sensor
2014-10-30 21:05:50 +01:00
Martine Lenders
3bfbc60a48 Merge pull request #1731 from authmillenon/netdev-test-dummy
netdev: Provide test network device with netdev interface
2014-10-30 20:37:37 +01:00
Martine Lenders
0de78831f9 unittests: Provide unittests for net_dev_dummy
* tests if net_dev_dummy is correct and if driver part of net_dev is
  correct
2014-10-30 20:37:21 +01:00
Martine Lenders
cf3fdaabb6 unittests: add test network device
The reasoning behind this commit is twofold:
1. test the "lower" part (the device part) of netdev
2. provide a well defined testing infrastructure for modules that utilise
   netdev
The actual tests that represent 1. are provided in the following commit
2014-10-30 20:37:20 +01:00
Hauke Petersen
f06eeeaaef tests: added test for LPS331AP sensor driver 2014-10-30 20:24:51 +01:00
Oleg Hahm
9a61d8cf1c core: move optional tcb members to DEVELHELP 2014-10-30 16:37:10 +01:00
Hauke Petersen
d3f207c8be tests: added test for MQ-3 alcohol sensor driver 2014-10-30 14:05:34 +01:00
René Kijewski
677d690e2b core: introduce thread_yield_higher(), yield less
Fixes #1708.

Currently involuntary preemption causes the current thread not only to
yield for a higher prioritized thread, but all other threads of its own
priority class, too.

This PR adds the function `thread_yield_higher()`, which will yield the
current thread in favor of higher prioritized functions, but not for
threads of its own priority class.

Boards now need to implement `thread_yield_higher()` instead of
`thread_yield()`, but `COREIF_NG` boards are not affected in any way.

`thread_yield()` retains its old meaning: yield for every thread that
has the same or a higher priority.

This PR does not touch the occurrences of `thread_yield()` in the periph
drivers, because the author of this PR did not look into the logic of
the various driver implementations.
2014-10-24 00:09:56 +02:00
5146c66786 core: adapt to msg_try_send 2014-10-22 12:37:33 +02:00
Oleg Hahm
94824026cd tests: use correct PID for main thread
Since PIDs are not beginning at 0 any more, this test was failing.
2014-10-17 23:17:02 +02:00
BytesGalore
6dc157208a c++: tests: add extern "C" in header files, i.e. only present in ./unittests 2014-10-17 13:58:10 +02:00
Ludwig Ortmann
801928df4d tests/periph_cpuid: let test fail w/o CPUID_ID_LEN 2014-10-16 19:35:47 +02:00
Ludwig Ortmann
a20e287a96 make: introduce and use periph_cpuid feature 2014-10-16 19:35:41 +02:00
Ludwig Ortmann
b9d17e38f3 tests/periph_rtt: let build fail w/o RTT 2014-10-16 19:35:41 +02:00
Ludwig Ortmann
4cafe7c5a9 make: introduce and use periph_rtt feature 2014-10-16 19:35:41 +02:00
Ludwig Ortmann
d9dd5b1913 tests/periph_random: let build fail w/o RANDOM 2014-10-16 19:35:41 +02:00
Ludwig Ortmann
3b52057fe5 make: introduce and use periph_random feature 2014-10-16 19:35:41 +02:00
Ludwig Ortmann
95884c1a30 tests/periph_pwm: let build fail w/o PWM 2014-10-16 19:35:41 +02:00
Ludwig Ortmann
b3ecfd0a6e make: introduce and use periph_pwm feature 2014-10-16 19:35:41 +02:00
Ludwig Ortmann
2cb8ea672a tests/periph_gpio_exti: let build fail w/o GPIO 2014-10-16 19:35:41 +02:00
Ludwig Ortmann
7cea2f536e tests/periph_gpio: let build fail without GPIO 2014-10-16 19:02:18 +02:00
Martine Lenders
a569f2b92c net: Initial import of a global packet buffer 2014-10-16 11:52:30 +02:00
Hauke Petersen
8409cb04c0 tests: added test for ISL29020 light sensor driver 2014-10-15 14:54:07 +02:00
Hauke Petersen
4ef34af9b8 tests: added i2c driver test 2014-10-15 14:50:19 +02:00
Ludwig Ortmann
92079312e2 make: introduce and use periph_spi feature 2014-10-13 18:18:19 +02:00
Ludwig Ortmann
1e73bbb961 tests/periph_spi: let build fail without SPI 2014-10-13 18:16:57 +02:00
Martine Lenders
36f8e3c5c3 Merge pull request #1640 from authmillenon/packetqueue
net: Initial import of a packet wrapper for priority_queue
2014-10-10 23:12:28 +02:00
Martine Lenders
e7e62cffdb net: Initial import of a packet wrapper for priority_queue 2014-10-10 23:11:50 +02:00
Martine Lenders
42f96b0d60 Merge pull request #1699 from Kijewski/issue-1586
core: Provide functions for different byte orders
2014-10-10 07:38:57 +02:00
Martine Lenders
bf21a9eb0b netdev.tests: Remove unneccessary #ifndef path 2014-10-09 09:40:58 +02:00
Martine Lenders
e93faa289b netdev.tests: Kill processes properly 2014-10-08 11:12:59 +02:00
Martine Lenders
37678505a9 netdev.tests: Add fixes for environment variables
+ minor include fix
2014-10-08 09:48:04 +02:00
Oleg Hahm
9cf21545fa make: fix dependencies
uart0 depends on POSIX, not the other way around.
2014-10-07 12:14:14 +02:00
Ludwig Ortmann
9e15a34a81 tests/driver_pir: set default GPIO 2014-10-06 18:55:54 +02:00
Ludwig Ortmann
6262c4427e make: add gpio feature 2014-10-06 18:55:54 +02:00
René Kijewski
f49bd3e660 make: add Makefile.features telling the BOARDs' features
Please see #1715.
Closes #1715.

This PR implements the new Makefile variables "FEATURES_PROVIDED" and
"FEATURES_REQUIRED". A board *can* have a new file `Makefile.features`
which looks like:

```make
FEATURES_PROVIDED = transceiver
```

An application can have a corresponding line

```make
FEATURES_REQUIRED = transceiver
```

If the selected BOARD does not fulfil the requirements of the
application, then a *warning* is issued at compile time.

This change only includes the feature "transceiver", further features
are expected to be listed in further PRs. The requirement "transceiver"
is automatically added if the application uses the module
"defaulttransceiver".

`make buildtest` understands the new feature listing, so the user won't
need to add boards to `BOARD_BLACKLIST` manually.

Part of the change are the added Make targets
* `info-features-missing`, which prints the required features
  `\setminus` the provided features. The output is empty if there are no
  features missing.
* `info-boards-features-missing`, the same as `info-features-missing`
  but as a table for all boards, but heeded `BOARD_WHITELIST` and
  `BOARD_BLACKLIST`.

Applications don't have to use this new feature. This change does not
break existing Makefile.
2014-10-06 17:42:11 +02:00
Martine Lenders
0afc3ac6f1 tests: fix netdev test 2014-10-02 13:14:31 +02:00
Martine Lenders
0d33a00d36 Merge pull request #1492 from authmillenon/net-dev-base
drivers: Introduce a general interface for network device drivers
2014-10-02 12:29:59 +02:00
Martine Lenders
5596af697d tests: Add functionality test for netdev_base 2014-10-01 23:22:54 +02:00
Ludwig Ortmann
19cb5bd153 tests: adopt for hwtimer_spin_barrier
also clean out unneeded headers
2014-10-01 19:53:43 +02:00
Hinnerk van Bruinehsen
84d48fa476 tests: fix mutex_unlock_and_sleep pids 2014-10-01 12:28:13 +02:00
Martine Lenders
2fc0ae28cf Merge pull request #1645 from authmillenon/unittests-empty-dirs
unittests: make: Fix unittests for branch changes
2014-10-01 12:01:41 +02:00
René Kijewski
bc0f5ebf4c tests: fix bad copy+paste in tests-core.h 2014-09-29 21:07:02 +02:00
René Kijewski
0c3bc4a58d tests: Add unittests for byteorder.h 2014-09-29 21:07:02 +02:00
Ludwig Ortmann
e75dd40eea drivers: import PIR motion sensor driver
Includes an application for manual testing.
2014-09-26 18:07:46 +02:00
Thomas Eichinger
bf256f63a3 samr21-xpro: initial import for the samr21-xpro board 2014-09-25 14:37:47 +02:00
Thomas Eichinger
89608b613e tests/periph_spi: fix usage of board specific LED define 2014-09-25 13:59:12 +02:00
Hauke Petersen
934eb44c13 Merge pull request #1488 from haukepetersen/add_stm32f0_spi
board/cpu: added SPI driver for the stm32f0discovery
2014-09-25 11:59:11 +02:00
Ian Martin
505ced492a tests/bloom: Un-blacklist boards mbed_lpc1768, stm32f3discovery, pca10000, pca10005, and yunjia-nrf51822. 2014-09-24 16:55:04 -04:00