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

327 Commits

Author SHA1 Message Date
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
Ian Martin
853640afbc tests/bloom: Prevent word lists from being copied into RAM. 2014-09-24 16:51:53 -04:00
Hauke Petersen
1f1360eff9 [SQUASH ME] test: fixed according to updated GPIO interface 2014-09-24 15:41:48 +02:00
Hauke Petersen
1020d90b2b [SQUASH ME] test: guard if no SPI device defined 2014-09-24 15:41:48 +02:00
Hauke Petersen
faf930e36b [SQUASH ME] tests/periph_spi: rewrote test 2014-09-24 15:41:48 +02:00
Hauke Petersen
969b8401d8 tests: added periph_spi test 2014-09-24 15:41:48 +02:00
Hinnerk van Bruinehsen
bef32717bf test:cbor: supress warnings about nan/infty 2014-09-19 23:59:49 +02:00
Christian Mehlis
88ae531ef9 Merge pull request #1679 from cgundogan/bloom_t_as_typedef
sys: use typedef for `struct bloom_t`
2014-09-19 13:18:39 +02:00
Hauke Petersen
905c97db5d tests/examples: blacklisted yunjia-nrf51822 2014-09-18 18:02:46 +02:00
Cenk Gündoğan
0a4ea07daa sys: use typedef for struct bloom_t
`bloom_t` is defined as a struct.
`_t` can mislead the user to think of bloom_t
as a typedef (see our coding conventions) instead of a struct.
Thus, I modified `struct bloom_t` to be a *typedefed* struct.

Another solution would be to rename bloom_t to sth. like bloom_s
everywhere and use `struct bloom_s` instead of `bloom_t`.
2014-09-17 19:54:40 +02:00
René Kijewski
0cc699c0ce lint: reduce scope
Fix some lint warnings of kind
```
style (variableScope): The scope of the variable '…' can be reduced
```
2014-09-12 11:50:12 +02:00
René Kijewski
f061d0214e tests: don't build test/libfixmath on Travis CI
Very often the build unexplainably hangs.
2014-09-11 13:13:59 +02:00
Ludwig Ortmann
95a1a3f324 tests/hwtimer: add self as author 2014-09-09 13:45:33 +02:00
Ludwig Ortmann
97c0ddbc92 tests: hwtimer shorten wait period
A sub-two-second period is needed for 16 bit timers.
2014-09-09 13:45:33 +02:00
Martine Lenders
4c6e17b39b unittests: make: Fix unittests for branch changes
Changing between branches in git typically leaves directories empty and
does not remove them. If you have different unittests in different
branches this leads to an error in building them, since the current
configuration expects a Makefile in all `tests-*` directory. This change
configures Make to search for a Makefile in `tests-*` rather than just
assuming that there is one.
2014-09-08 12:36:15 +02:00
Ludwig Ortmann
942ce1b29d Merge pull request #1628 from LudwigOrtmann/hwtimer_wait_fixup_2
tests: improve calculation in hwtimer_wait
2014-09-04 01:08:57 -07:00
Fabian Nack
7650ef412f tests/examples: blacklisted msbiot for some tests 2014-09-02 15:45:50 +02:00
Ludwig Ortmann
31391622a3 tests: improve calculation in hwtimer_wait
Kudos to @Kijewski
2014-08-29 18:51:18 +02:00
Ludwig Ortmann
377c7a4136 tests: remove need for pow,log2 in hwtimer_wait
Default to precalculated value for geometric series, so pow and log2
are not needed.
2014-08-28 18:37:10 +02:00
Ludwig Ortmann
77794c041e tests: print expected duration in hwtimer_wait 2014-08-28 12:39:58 +02:00
Ludwig Ortmann
457be31b6f Merge pull request #1616 from krf/fix-warnings
Fix comment
2014-08-27 19:38:27 +02:00
Hauke Petersen
ae23d813b1 Merge pull request #1621 from haukepetersen/add_nrf_cpuid
cpu/nrf51822: added cpuid driver
2014-08-27 19:11:04 +02:00
Hinnerk van Bruinehsen
4ca3a49a5d tests: blacklist failing test on arduino-mega2560 2014-08-27 17:47:24 +02:00
Martine Lenders
1c25af18e2 Merge pull request #1620 from authmillenon/unittests-easy
unittests: Simplify module-wise rebuild
2014-08-27 15:41:08 +02:00
Hauke Petersen
69ab0c5d32 test/periph_cpuid: renamed cpuid test application 2014-08-27 15:13:03 +02:00
Martine Lenders
9745a78c02 Merge pull request #1612 from authmillenon/tests_nativenet_expect
tests: Add expect script for nativenet tests
2014-08-27 14:22:09 +02:00
Martine Lenders
67fcd0d71b unittests: Simplify module-wise rebuild 2014-08-27 14:04:33 +02:00
Kevin Funk
554e431746 Fix comments 2014-08-27 11:36:36 +02:00
Martine Lenders
0ee8758422 tests: nativenet: Add README.md 2014-08-27 11:32:33 +02:00
Martine Lenders
c1971fb5a9 tests: nativenet: Add return for radio thread 2014-08-27 11:23:35 +02:00
Ludwig Ortmann
3d611679ee Merge pull request #1599 from LudwigOrtmann/issue-1597
sys/cbor,tests: fix cbor daylight saving time
2014-08-27 11:11:49 +02:00
Martine Lenders
5bad5a0fda unittests: Fix coding conventions 2014-08-27 10:48:10 +02:00
Martine Lenders
2709d95e1a unittests: Fix -Wunused-parameter warnings 2014-08-27 10:48:09 +02:00
Martine Lenders
4960c57153 unittests: Fix -Waddress warnings 2014-08-27 10:48:05 +02:00
Ludwig Ortmann
40a81e4f4c tests: fix cbor unittest
Some member of `struct tm val` were not set, resulting in undefined
behavior.
2014-08-27 10:25:23 +02:00
Ludwig Ortmann
ea26ebbaa9 tests: fix lifo unittest
The API was violated resulting in an array overrun.
2014-08-26 18:06:31 +02:00
Martine Lenders
93cff41607 tests: Add expect script for nativenet tests 2014-08-26 10:54:09 +02:00
Ludwig Ortmann
b7992922ce fix license headers in non-.c files 2014-08-23 16:16:26 +02:00
Hauke Petersen
addfaefe8a Merge pull request #1598 from haukepetersen/add_nrf_rtt
cpu/board: added RTT driver for NRF51822
2014-08-22 02:13:43 +02:00
Hauke Petersen
9fb37be0aa tests/periph_rtt: added test for RTT drivers 2014-08-22 00:54:10 +02:00
René Kijewski
eaed2f1b89 Merge pull request #1594 from authmillenon/unittests-no-auto-init
unittests: do not use auto_init
2014-08-21 23:51:48 +02:00
Martine Lenders
2bbe92a75a tests: Fix tests that were defect
* I used pexpect instead of when expect script was not working expect, since
  TCL confuses me
* I deleted the thread_exit test since it was completely invalid
2014-08-21 23:21:06 +02:00
René Kijewski
27e393621a core: clist is a cyclic list 2014-08-21 21:10:03 +02:00
Martine Lenders
b1035acc98 unittests: do not use auto_init 2014-08-21 20:45:36 +02:00
Hauke Petersen
8f75521bc8 test/periph_random: added test for RNG driver 2014-08-21 20:21:47 +02:00
René Kijewski
89a26b7331 Merge pull request #1562 from Kijewski/the-first-two-commits-of-the-branch-issue-198
posix: minor pthread_barrier clean up
2014-08-15 14:44:54 +02:00
Hauke Petersen
9da0abc14d tests/periph_gpio: added test cases for GPIO driver 2014-08-15 12:24:24 +02:00
René Kijewski
46c669f455 tests: clean up test_pthread_barrier Makefile 2014-08-11 16:22:43 +02:00
Hauke Petersen
477bc5a73d tests/periph_uart: added two UART driver tests
- test for UART driver in blocking mode
- test for UART driver in interrupt driven mode
2014-08-11 15:08:41 +02:00
Oleg Hahm
1de5c2b4a0 fixed remaining variables to kernel_pid_t 2014-08-07 17:29:53 +02:00
Oleg Hahm
2e396af248 tests: combine declaration and definition 2014-08-07 16:31:34 +02:00
Oleg Hahm
0ad7b170ed make kernel_pid_t comparisons consistent 2014-08-07 16:31:27 +02:00
Oleg Hahm
aa2ecf6216 initialize kernel_pid_t correctly 2014-08-07 16:31:27 +02:00
Hauke Petersen
b0d3a55989 tests: added test for low-level PWM driver 2014-08-07 16:16:06 +02:00
Oleg Hahm
6c2b2cea61 Merge pull request #1415 from krf/cbor
cbor: CBOR implementation for RIOT-OS (SWP)
2014-08-05 21:32:31 +02:00
Kevin Funk
e8141ca5d8 cbor: CBOR implementation for RIOT-OS
This is a malloc-free implementation of the Concise Binary Object
Representation (CBOR) data format for the RIOT-OS.

This implementation mostly stand-alone, and it should be pretty easy to
port to other platforms. We're only using the C STL and some custom
network-related functionaliy which could be easily replaced by depending
on arpa/inet.h.

The CBOR API is straight-forward to use and provides encoding/decoding
functionality for all major C types, such as:
- int
- uint64_t
- int64_t
- float
- double
- char*
- struct tm
- time_t

It is possible to conditionally compile this module via CFLAGS:
- CBOR_NO_SEMANTIC_TAGGING: All semantic-tagging features removed
- CBOR_NO_CTIME: All ctime related features removed
- CBOR_NO_FLOAT: All floating-point related features removed
- CBOR_NO_PRINT: All features depending on printf removed
2014-08-05 19:49:51 +02:00
René Kijewski
c5ac8332de "tests": print tcb_t size
The "test" should aid #303.
2014-08-05 19:15:35 +02:00
Ludwig Ortmann
3912e5e632 Merge pull request #1529 from LudwigOrtmann/cpuid_fixup
tests, native: fixup for cpuid
2014-08-05 18:40:49 +02:00
Ludwig Ortmann
4c6ba818ed Merge pull request #1534 from LudwigOrtmann/queue-cleanup-two
core/queue: queue -> priority_queue && dynamic initializers
2014-08-05 18:33:54 +02:00
Ludwig Ortmann
1efdf99dfe core/priority_queue: add dynamic initializers
- priority_queue_init
- priority_queue_node_init
2014-08-05 17:57:45 +02:00
Ludwig Ortmann
c2b2e4554b core/queue: queue -> priority_queue
Rename queue to priority queue, because that's what it is.
2014-08-05 17:57:45 +02:00
Ludwig Ortmann
d667c4964a tests: fix cppcheck findings
- bitarithm_timings: use more void, decrease range
- struct_tm_utility: add cppcheck-suppress invalidscanf
2014-08-05 17:54:19 +02:00
Ludwig Ortmann
1c3f481702 tests, native: fixup for cpuid
- adopt test name to new scheme
- make cppcheck happy / dont overwrite the target memory location twice
- fix license header
- don't redefine define if it already exists
- don't write more cpuid than is defined as size
2014-08-05 16:55:42 +02:00
epiktet
1154bd5a50 cpu/nrf51822: squash added support for nrf51822 cpu 2014-08-04 13:42:06 +02:00
Oleg Hahm
983d056c75 core: harmonizes the data type for the process ID
Instead of using differing integer types use kernel_pid_t for process
identifier. This type is introduced in a new header file to avoid
circular dependencies.
2014-08-01 12:02:54 +02:00
René Kijewski
9cf5ece44f Merge pull request #1460 from Kijewski/issue-1457
pkg: add USEPKG module "libfixmath"
2014-08-01 00:05:56 +02:00
René Kijewski
d7b4f1a5ba pkg: add USEPKG module "libfixmath"
This PR adds the USEPKG module "libfixmath".
It integrates https://code.google.com/p/libfixmath/ into RIOT, cmp. #1457.
2014-08-01 00:04:48 +02:00
Hauke Petersen
938c61a5a2 Merge pull request #1456 from haukepetersen/board_stm32f3discovery
board/cpu: Added support for the stm32f3discovery board and stm32f3 cpu
2014-07-31 23:55:05 +02:00
Martine Lenders
7516c94dd8 Merge pull request #854 from authmillenon/cpu-id
drivers/cpu: add function to get CPU id/serial number
2014-07-31 23:23:21 +02:00
Ludwig Ortmann
d55da67fb6 Merge pull request #1329 from LudwigOrtmann/riot_license
RIOT default license header change
2014-07-31 23:12:47 +02:00
Martin Lenders
239f2e0f24 Implement CPU id getter for native 2014-07-31 23:05:15 +02:00
Ludwig Ortmann
3ca4f18479 doc: use lgplv2.1-short license header instead of lgpl-short-riot 2014-07-31 22:57:20 +02:00
Ludwig Ortmann
1200c3bc46 doc: fix comment indentation 2014-07-31 22:57:19 +02:00
Cenk Gündoğan
b8009f1be5 converting tabs to spaces in tests (#1439)
This PR converts tabs to white spaces.
The statement I used for the conversion:
```find . -name "*.[ch]" -exec zsh -c 'expand -t 4 "$0" > /tmp/e && mv /tmp/e "$0"' {} \;```
Afterwards, I had a quick overview of the converted files to prevent odd indentation.
2014-07-31 20:53:32 +02:00
Martin Lenders
3a6adcc92c Implement CPU serial number getter. 2014-07-31 19:51:14 +02:00
Hauke Petersen
f2c8997acc examples/tests: blacklisted stm32f3discovery 2014-07-31 19:42:05 +02:00
René Kijewski
8854e8989a tests: fix APPLICATION name 2014-07-31 07:34:11 +02:00
René Kijewski
d46c7e00d4 tests: remove test_ prefix
Closes #1485.
2014-07-31 07:34:11 +02:00
René Kijewski
4032a22719 queue: add queue_t root type 2014-07-30 21:10:22 +02:00
René Kijewski
7035ae0051 queue: remove inttypes clutter from core header 2014-07-30 21:08:15 +02:00
Ludwig Ortmann
b6846e31fc doc: fix most occurences of FU as an author
.. but only if there are other authors as well
2014-07-29 17:23:11 +02:00
René Kijewski
6fae042a60 core: remove unneeded calls to mutex_init() 2014-07-29 09:33:24 +02:00
René Kijewski
0ab1b86e5f Add generic char pipe implementation 2014-07-28 23:21:27 +02:00
René Kijewski
faf9bb5073 tests: add ringbuffer unittest 2014-07-28 20:56:12 +02:00
Ludwig Ortmann
bea563d1da Fix a few cppcheck findings 2014-07-25 08:17:06 +02:00
Hauke Petersen
a49fc062bf test/examples: blacklisted stm32f4discovery 2014-07-16 17:20:53 +02:00