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

996 Commits

Author SHA1 Message Date
Oleg Hahm
50fce32ea1 tests: some hwtimer cosmetics 2015-07-21 11:11:38 +02:00
Oleg Hahm
9a9d294a0d tests: remove sleep from hwtimer test
Instead set hwtimer_wait delay long enough.
2015-07-21 11:11:38 +02:00
Joakim Gebart
d34af3cb0e tests/driver_hih6130: test application for drivers/hih6130 2015-07-20 18:41:14 +02:00
Oleg Hahm
717a4c8152 Merge pull request #3143 from authmillenon/ng_sixlowpan_ctx/api/comp-flag
ng_sixlowpan_ctx: add compression flag support
2015-07-17 08:23:05 +02:00
Martine Lenders
e6747b89e5 unittests: adapt for compression flag in ng_sixlowpan_ctx 2015-07-17 07:59:16 +02:00
BytesGalore
d97694f106 fib: repaired prefix/default gateway determination and added two according unittests 2015-07-16 13:46:36 +02:00
Lotte Steenbrink
35d48901d8 add tests for the FIB inclusion in AODVv2 2015-07-14 12:32:17 -07:00
Joakim Gebart
fa4e059588 Merge pull request #3319 from gebart/pr/warning-fixes-3
Makefile.cflags: Build with -Wall -Werror by default (including fixes to correct all existing warnings)
2015-07-14 08:50:31 +02:00
Joakim Gebart
42d6feaa13 tests/shell: Use libc putchar/getchar instead of wrappers 2015-07-14 08:11:19 +02:00
Joakim Gebart
adc8afb34f tests/slip: Use libc putchar/getchar instead of wrappers
Fixes warnings about wrong function signature.
2015-07-14 08:11:19 +02:00
Joakim Gebart
b318d2607c tests/shell: Blacklist chronos for missing getchar implementation 2015-07-14 08:11:19 +02:00
Joakim Gebart
c14f2b65cf tests/libfixmath_unittests: Blacklist MSP430 boards
Fixes implicit declaration warnings for missing math functions.
2015-07-14 08:11:19 +02:00
Joakim Gebart
141803a459 tests/pthread_condition_variable: Use ul suffix for constants 2015-07-14 08:11:19 +02:00
Joakim Gebart
c3b8114cbc tests/bitarithm_timings: Fix warning about integer overflow on msp430 2015-07-14 08:11:19 +02:00
Joakim Gebart
dc9eb4d5bd tests/driver_pir: printf format fix 2015-07-14 08:11:18 +02:00
Joakim Gebart
adb8945514 tests/driver_dht: printf format fixes 2015-07-14 08:11:18 +02:00
Joakim Gebart
316c71d91f tests/driver_nrf24l01p_lowlevel: Fix shell warnings 2015-07-14 08:11:18 +02:00
Joakim Gebart
ebce349180 tests/periph_spi: printf format fixes 2015-07-14 08:11:15 +02:00
Joakim Gebart
e3b41a327e tests/periph_uart_int: warning fixes 2015-07-14 08:11:15 +02:00
Joakim Gebart
50076376fc tests/periph_uart_blocking: use uint32_t for baudrates 2015-07-14 08:11:15 +02:00
Joakim Gebart
56067f8489 tests/unittests/tests-core-atomic: Reduce arbitrary test input numbers to fit inside int16_t
Fixes build warnings on avr and msp430
2015-07-14 08:11:15 +02:00
Joakim Gebart
754549b40d tests/unittests/tests-ipv6_hdr: Cast to uint32_t to avoid truncation on msp430 2015-07-14 08:11:15 +02:00
René Kijewski
caf5503486 Merge pull request #3235 from haukepetersen/add_md5
sys/hashes: added MD5 implementation
2015-07-13 22:59:09 +02:00
Martine Lenders
888bdd70c1 unittests: fix length of test data strings
Fixes #3371
2015-07-13 14:37:24 +02:00
Martine Lenders
54d1019533 Merge pull request #3369 from authmillenon/tests/fix/asan
unittests: fix errors cought by address sanitizer
2015-07-13 12:57:36 +02:00
Martine Lenders
67d6333c39 unittests: fix errors cought by address sanitizer 2015-07-13 11:21:42 +02:00
10a6afe2e5 tests: add minimal test application 2015-07-12 13:06:39 +02:00
Joakim Gebart
fb90e67863 drivers/adt7310: Add test application 2015-07-09 23:39:37 +02:00
Benoît Canet
e01329796d native: timer: synchronize HWTIMER_SPIN_BARRIER with timer min resolution
This keeps the test/hwtimer_wait test duration correct.
2015-07-09 20:42:21 +02:00
Peter Kietzmann
c3814a7127 Merge pull request #3316 from authmillenon/ng_pktbuf/fix/align
ng_pktbuf: fix alignment overwrite issue
2015-07-08 10:49:26 +02:00
c0f2759e60 Merge pull request #3178 from kaspar030/bf_get_unset
sys: bitfield: add bf_get_unset
2015-07-08 01:13:35 +02:00
43ecf6d2c3 tests: unittests: add some bitfield unit tests 2015-07-07 17:49:18 +02:00
Oleg Hahm
705e70e6c6 Merge pull request #3322 from gebart/pr/add-missing-inttypes-includes
Add missing inttypes.h includes
2015-07-07 16:49:39 +02:00
Joakim Gebart
c9bdbd1a74 lis3dh: Refactor, add INT1 handling, improve FIFO mode 2015-07-07 12:03:28 +02:00
Joakim Gebart
1e4a09cae8 tests/pthread_barrier: Add missing inttypes.h include 2015-07-07 00:53:27 +02:00
Joakim Gebart
86389fcadb tests/vtimer_msg: Add missing inttypes.h include 2015-07-07 00:53:27 +02:00
Joakim Gebart
7203013040 tests/netdev: Add missing inttypes.h include 2015-07-07 00:53:27 +02:00
Joakim Gebart
0107a8c6e1 tests/driver_mpu9150: Add missing inttypes.h include 2015-07-07 00:53:27 +02:00
Joakim Gebart
031fcc05ad tests/vtimer_msg_diff: Un-blacklist arduino-mega2560 2015-07-07 00:53:26 +02:00
Joakim Gebart
942da9db1b tests/vtimer_msg_diff: Add missing inttypes.h include 2015-07-07 00:53:26 +02:00
Jonas
4552e3a4e8 tests/driver_kw2xrf/Makefile: Blacklisted nucleo-f334 board 2015-07-06 00:36:59 +02:00
Martine Lenders
057ad18f22 unittests: add test for packet buffer alignment issues 2015-07-05 00:22:14 +02:00
Peter Kietzmann
004a83c44d Merge pull request #3028 from gebart/pr/cmsis-dsp
pkg/cmsis-dsp: Add CMSIS-DSP as a package
2015-07-04 09:39:22 +02:00
Martine Lenders
d96f23fafd tests: add ZEP test application 2015-07-02 15:47:19 +02:00
Martine Lenders
69992ee7eb Merge pull request #3293 from authmillenon/ng_inet_csum/fix/wrap-around
ng_inet_csum: fix double-wrap around of carry
2015-07-02 12:55:27 +02:00
Martine Lenders
6ce23a42f5 unittests: add test for ng_inet_csum() for double-wraparound 2015-07-02 12:06:31 +02:00
Martine Lenders
8b7a0c2613 unittests: add ng_ipv6_hdr_inet_csum test for initial sum overflows 2015-07-01 17:49:19 +02:00
Benoît Canet
5e7ea2d9e4 msg: Fix incorrect queues initializations
From core/include/msg.h:

/**
 * @brief Initialize the current thread's message queue.
 *
 * @param[in] array Pointer to preallocated array of ``msg_t`` structures, must
 *                  not be NULL.
 * @param[in] num   Number of ``msg_t`` structures in array.
 *                  **MUST BE POWER OF TWO!**
 *
 * @return 0, if successful
 * @return -1, on error
 */
int msg_init_queue(msg_t *array, int num);

sizeof(array) does does not compute an array size. Replace calls to sizeof()
with proper values

Closes #3269.

Fix two crashes in the tests and probably more in the network stack.
2015-06-29 06:58:24 +02:00
Philipp Rosenkranz
1913b7ea66 Merge pull request #3229 from Kijewski/chacha
sys: add ChaCha stream cipher and PRNG
2015-06-28 21:13:59 +02:00
René Kijewski
2cf4253710 sys: add ChaCha stream cipher and PRNG
This implementation is optimized for a little code and data size, not
for speed. IMO the code is more readable than in the reference
implementation.

The biggest advantage of ChaCha over other stream ciphers is the very
little data usage with only 64 bytes of context, and its good encryption
speed.

Also part of this PR is pseudo-random number generator, that just
returns the keystream of a randomly initialized ChaCha context.
2015-06-28 18:32:04 +02:00
Joakim Gebart
6e32b337e4 tests/pkg_cmsis-dsp: Add basic test case for CMSIS DSP library 2015-06-25 08:00:55 +02:00
BytesGalore
db18e5760a fib: added check for passing NULL pointers to fib_get_next_hop() 2015-06-24 09:05:24 +02:00
haukepetersen
b708e423ed tests/unittest: added tests for MD5 2015-06-22 21:43:28 +02:00
Martine Lenders
82e54d0970 tests: adapt unittests for new pktqueue 2015-06-22 18:19:54 +02:00
Hauke Petersen
55752ff4f2 Merge pull request #3202 from haukepetersen/opt_shell_init
sys/shell: changed signature of put_char pointer
2015-06-15 17:28:40 +02:00
Hauke Petersen
350cfc7a2b Merge pull request #3095 from haukepetersen/opt_gpio
drivers/gpio: changed periph driver interface
2015-06-15 13:57:03 +02:00
Hauke Petersen
1bd7111a7b tests: pass [get|put]char directly in shell_init 2015-06-14 17:09:49 +02:00
Hauke Petersen
8cbfaa8da2 tests: make use of uart0_[readc|putc] 2015-06-14 17:08:51 +02:00
Hauke Petersen
e0241dfcad tests/driver_xbee: s/GPIO_NUMOF/GPIO_UNDEF/ 2015-06-14 16:13:17 +02:00
Hauke Petersen
48096c43d9 test/driver_xbee: removed obsolete auto_init file 2015-06-14 16:05:04 +02:00
Hauke Petersen
24c85bbbe1 test/driver_xbee: removed obsolete auto_init file 2015-06-14 16:04:02 +02:00
Hauke Petersen
6994a1d4ec test/periph_spi: adjusted to GPIO driver changes 2015-06-14 13:01:18 +02:00
René Kijewski
98aec32f6b ng_netif: more formats for ng_netif_addr_from_str 2015-06-13 13:38:11 +02:00
René Kijewski
7d3d8dee21 ng_netif: make const what is const 2015-06-12 21:53:59 +02:00
René Kijewski
64e0b8d8fb ng_netif: more tests for ng_netif_addr_from_str 2015-06-12 21:53:59 +02:00
Hauke Petersen
315ac1bedb tests: adjusted test to changed GPIO interface 2015-06-12 19:10:16 +02:00
Hauke Petersen
2deedcff6a tests/periph_spi: adapted to change GPIO driver IF 2015-06-12 19:06:48 +02:00
Hauke Petersen
8ccd289f82 tests: remoldeled the periph_gpio test 2015-06-12 19:06:48 +02:00
Hauke Petersen
c8825a5917 tests: removed gpio_exti test 2015-06-12 18:54:37 +02:00
Cenk Gündoğan
ece64548a6 Merge pull request #2818 from BytesGalore/fib_get_conditionlal_entry_set
sys/net/fib: added function to request a set of destination addresses
2015-06-05 22:07:22 +02:00
Hauke Petersen
f5ec1926e6 Merge pull request #3106 from gebart/pr/servo-updates
drivers/servo: Add test program, handle inexact frequencies
2015-06-04 12:08:06 +02:00
Martine Lenders
5e7de0821b Merge pull request #3096 from OlegHahm/ng_nativenet_netdev_auto_foobar
ng_nativenet: auto initialization and improvements
2015-06-03 17:53:18 +02:00
Oleg Hahm
4d9f965159 auto_init: initialize ng_netdev_eth 2015-06-03 13:00:35 +02:00
BytesGalore
9079e30da0 sys/net/fib: added function to request a set of destination addresses 2015-06-02 16:42:47 +02:00
Joakim Gebart
3ede02683c drivers/servo: Handle inexact frequencies from periph_pwm 2015-05-30 12:41:07 +02:00
Joakim Gebart
1918b5d379 tests/driver_servo: Add test application for drivers/servo 2015-05-30 12:41:07 +02:00
Ludwig Ortmann
fe17cae0c0 test/driver_dht: initial import 2015-05-29 06:24:19 +02:00
Lotte Steenbrink
104ea3ceb1 Merge pull request #3091 from Lotterleben/fib_helper_fn
Fib helper fn
2015-05-28 18:33:23 +02:00
Hauke Petersen
9943f51080 global: renamed cpu-conf.h into cpu_conf.h 2015-05-28 15:45:05 +02:00
Oleg Hahm
e857ca7f51 Merge pull request #2933 from gebart/pr/atomic-set-return-deprecated
core: remove atomic_set_return
2015-05-27 12:33:39 +02:00
Lotte Steenbrink
fbc7f9ddc4 add simple test for fib_devel_get_lifetime() 2015-05-26 15:36:02 -07:00
Joakim Gebart
a6eda18099 unittests/ubjson: Use MUTEX_INIT to initialize mutexes 2015-05-26 21:28:31 +02:00
Joakim Gebart
41ef11c215 core: Remove atomic_set_return() 2015-05-26 21:24:10 +02:00
3a7820c21a tests: add manual test application for netdev_eth 2015-05-26 21:19:48 +02:00
1c91baed8b sys: net: add ng_netdev_eth netdev driver for dev_eth based ethernet devices 2015-05-26 21:05:19 +02:00
Oleg Hahm
1bd5a82678 Merge pull request #3070 from authmillenon/ng_slip/fix/rename-params
ng_slip: rename xbee_params_t to ng_slip_params_t
2015-05-26 19:29:45 +02:00
cfd9a5905a Merge pull request #2766 from kaspar030/add_dev_eth
sys: net: introduce low-level ethernet driver API
2015-05-26 19:28:14 +02:00
haukepetersen
27c095ceb5 test/driver_nrfmin: fixed stacksize define 2015-05-26 19:10:29 +02:00
Martine Lenders
c29a4b474c ng_slip: rename xbee_params_t to ng_slip_params_t
Fixed copy pasta
2015-05-26 18:59:40 +02:00
Hauke Petersen
569f28f6d9 Merge pull request #2711 from haukepetersen/ng_nrf51prop
cpu/nrf51822: added minimal radio driver implementation
2015-05-26 15:39:34 +02:00
6e302185d8 tests: dev_eth: add test application for dev_eth low-level ethernet interface 2015-05-26 15:37:55 +02:00
Martine Lenders
55a48f48cc Merge pull request #3060 from Lotterleben/ng_netif_tests_rm_warn
unittests: rm warning for tests-ipv6_netif
2015-05-25 23:26:18 +02:00
Martine Lenders
4310ab37ba Merge pull request #3048 from authmillenon/ipv6_netif/fix/get-best-src-mc
ipv6_netif: fix ng_ipv6_netif_find_best_src_addr() for multicast
2015-05-25 23:19:20 +02:00
Martine Lenders
6014853530 unittests: add unittests for getting multicast addresses 2015-05-25 22:48:36 +02:00
Martine Lenders
350b040d72 ng_netif: adapt ng_netif_get for holey lists 2015-05-25 22:02:44 +02:00
Martine Lenders
1992244e41 tests: add test application for slip 2015-05-23 13:19:17 +02:00
Lotte Steenbrink
486f8dd8e9 Merge pull request #3044 from Lotterleben/ipv6_ifs_no_duplicates
ng_ipv6_netif: no more duplicates if empty entries are found before
2015-05-23 02:12:49 +02:00
Joakim Gebart
13832d8e62 everything: Remove filename from @file Doxygen command 2015-05-22 07:34:41 +02:00
Lucas Jenß
742c39e838 Merge pull request #2881 from x3ro/clarify-stacksize-constants
Clarify and unify naming of thread-related constants (stacksize and priority)
2015-05-21 16:55:30 +02:00
Lucas Jenss
426170b064 Improve naming of thread stacksize/priority constants
As discussed in #2725, this commit renames a number of stacksize constants to
better convey their intended usage. In addition, constants for thread priority
are given a `THREAD_` prefix. Changes are:

* KERNEL_CONF_STACKSIZE_PRINTF renamed to THREAD_EXTRA_STACKSIZE_PRINTF
* KERNEL_CONF_STACKSIZE_DEFAULT renamed to THREAD_STACKSIZE_DEFAULT
* KERNEL_CONF_STACKSIZE_IDLE renamed to THREAD_STACKSIZE_IDLE
* KERNEL_CONF_STACKSIZE_MAIN renamed to THREAD_STACKSIZE_MAIN
* Move thread stacksizes from kernel.h to thread.h, since the prefix changed
* PRIORITY_MIN renamed to THREAD_PRIORITY_MIN
* PRIORITY_IDLE renamed to THREAD_PRIORITY_IDLE
* PRIORITY_MAIN renamed to THREAD_PRIORITY_MAIN
* Move thread priorities from kernel.h to thread.h since the prefix has changed
* MINIMUM_STACK_SIZE renamed to THREAD_STACKSIZE_MINIMUM for consistency
2015-05-21 00:14:23 +02:00
Oleg Hahm
8cb0e59283 Merge pull request #3030 from gebart/pr/tab-fixes2
Tab indentation fixes
2015-05-20 18:27:28 +02:00
Johann Fischer
b0e73b9a8c Merge pull request #2983 from jfischer-phytec-iot/pr@kw2x-rf-autoinit
boards/pba-d-01-kw2x: add network interface auto init
2015-05-20 10:00:23 +02:00
Lotte Steenbrink
0afcb620bd unittests: rm warning for tests-ipv6_netif 2015-05-19 10:15:58 -07:00
Joakim Gebart
e3d051518c tests/pkg_micro-ecc: Replace tabs by spaces 2015-05-19 12:26:47 +02:00
Joakim Gebart
7b0ade0b75 tests/malloc: Replace tabs by spaces 2015-05-19 12:26:34 +02:00
Hauke Petersen
641adb4186 tests: added manual test for nrfmin radio driver 2015-05-19 10:02:57 +02:00
BytesGalore
369e7bbf43 Merge pull request #2540 from josephnoir/topic/cpp-stl-compatibility
Add replacement headers for std thread, mutex and condition_variable
2015-05-19 07:56:54 +02:00
Lotte Steenbrink
705019f3dc unittests: add tests to ng_ipv6_netif_add concerning https://github.com/RIOT-OS/RIOT/issues/2965 2015-05-18 12:27:22 -07:00
Jonas
9b66477180 adapted new auto-init process to kw2xrf driver
added kw2xrf to auto-init
2015-05-18 17:12:44 +02:00
Jonas
bda9ef12d2 deleted depricated auto_init in kw2xrf_test app 2015-05-18 16:28:30 +02:00
Joseph Noir
bddaee751d Add replacement headers for thread, mutex and cond
These headers do not provide full stl functionality,
but a small subset:
* thread and this_thread
* condition_variable (some timed functions are missing)
* mutex, lock_guard and unique_lock
2015-05-18 13:57:02 +02:00
a89b382297 drivers: xbee: adapt to new auto_init_ng_netif scheme 2015-05-17 21:02:00 +02:00
3c00ff0c9b drivers: adapt ng_at86rf2xx to new auto_init_ng_netif scheme 2015-05-17 21:02:00 +02:00
Oleg Hahm
287aa4cdbf Merge pull request #2992 from gebart/pr/pwm-return-value
periph_pwm: Return actual frequency (like the docs say)
2015-05-17 13:06:08 +02:00
Martine Lenders
5fe7b9a8d3 tests: adapt unittests 2015-05-16 15:03:17 +02:00
Joakim Gebart
616c272801 tests/periph_pwm: Handle pwm_init return value as actual frequency 2015-05-16 10:00:03 +02:00
Lotte Steenbrink
09a67e050d ipv6_nc: no more duplicates if empty entries are found before 2015-05-14 08:27:15 -07:00
Oleg Hahm
4d64b98f2c Merge pull request #2756 from jremmert-phytec-iot/pr@ng_kw2xrf
driver/kw2xrf: added ng_netdev implementation for the Freescale kw2x radio
2015-05-14 12:51:00 +02:00
Martine Lenders
343bec5593 ipv6_nc: Make interface optional 2015-05-14 04:21:41 +02:00
Jonas
3287e71d45 Initial import of tests for kw2x radio
squash: driver: fixed typo to pass doccheck

squash: driver: bug fixes after test

squash: adapted Makefiles for correct build behaviour

restructured, no spi interaction in isr anymore

major bugfixes and restructurization

comments addressed

introduce new netconf option, ..AUTOCCA

squash: minor bugfix and add auto-init mechanism

squash: minor fixes to make travis happy
2015-05-13 13:06:59 +02:00
Martine Lenders
d1c2f7f72b Merge pull request #2908 from authmillenon/ipv6_nc/enh/opt
ipv6_nc: prepare for NDP
2015-05-13 11:05:39 +02:00
Oleg Hahm
21dc560a19 Merge pull request #2906 from LudwigOrtmann/pr/isl29125
ISL29125 driver import
2015-05-13 08:42:40 +02:00
Martine Lenders
fd48ccd5d4 unittests: add nrf51822 boards to BOARD_INSUFFICIENT_RAM 2015-05-12 20:06:09 +02:00
Martine Lenders
54c92c0424 unittests: adapt unittests for ipv6_nc API change 2015-05-12 20:06:09 +02:00
Martine Lenders
11e5fb3c9e Merge pull request #2728 from authmillenon/ipv6_netif/enh/auto-link-local
ipv6_netif: auto-add corresponding link-local addresses
2015-05-12 19:08:14 +02:00
Ludwig Ortmann
fb6c75f6d8 tests/driver_isl29125: initial import 2015-05-12 07:23:41 +02:00
Joakim Gebart
e9c567107d all: remove extra blank lines at the end 2015-05-09 09:10:08 +02:00
Joakim Gebart
6e6890ab45 tests/periph_dac/README.md: trailing whitespace and line lengths 2015-05-09 09:09:05 +02:00
Joakim Gebart
58524b7c21 tests/driver_nrf24l01p_lowlevel/README.md: trailing whitespace and line lengths 2015-05-09 09:08:06 +02:00
Peter Kietzmann
60c9899550 Merge pull request #2076 from BytesGalore/add_conflict_warning
RIOT/Makefile.include: added indicating of possibe conflicting features on compile
2015-05-08 15:23:32 +02:00
BytesGalore
f9a79eee41 RIOT/Makefile.include: added compile time warning on conflicting features 2015-05-07 21:05:08 +02:00
Joakim Gebart
25c2bdba84 atomic: Add unit tests for atomic counters 2015-05-07 18:52:13 +02:00
Joakim Gebart
0dded554a9 tests/driver_nvram_spi: Simple test application for nvram_spi
This is a simple test application for the nvram_spi driver for tests on
actual hardware.
2015-05-04 10:39:53 +02:00
Oleg Hahm
123979890e Merge pull request #2879 from haukepetersen/add_driver_pcd8544
drivers: added driver for PCD8544 LCD display
2015-05-01 11:38:05 +02:00
haukepetersen
2187b5caa9 tests/driver_at86rf2xx: adjusted netif auto init 2015-04-30 15:08:49 +02:00
haukepetersen
8e0d4ab463 tests/driver_xbee: adjusted to interface auto_init 2015-04-30 15:08:49 +02:00
Hauke Petersen
46e2c5c968 tests: added test app for the PCD8544 LCD driver 2015-04-30 13:46:03 +02:00
Martine Lenders
4741a01e36 Merge pull request #2721 from authmillenon/ipv6_nc/feat/iterators
ipv6_nc: add iterators
2015-04-30 08:59:44 +02:00
Martine Lenders
bbf57d1691 unittests: add tests for iterators 2015-04-29 21:22:28 +02:00
Hauke Petersen
78c7527783 Merge pull request #2864 from kaspar030/fix_vtimer_msg_test
tests: vtimer_msg: get back vtimer_set_msg call
2015-04-28 20:21:05 +02:00
Hauke Petersen
4e121e1b17 tests: added test app for the at86rf2xx driver 2015-04-27 18:56:59 +02:00
Oleg Hahm
2d8021ac06 Merge pull request #2857 from authmillenon/ipv6_addr/enh/rename-hdr-check
ipv6_addr: rename ng_ipv6_hdr_is_ipv6_hdr() to something less silly
2015-04-25 17:42:12 +02:00
e6c3528980 tests: vtimer_msg_diff: get back vtimer_set_msg call 2015-04-24 14:50:15 +02:00
5a21d68f70 tests: vtimer_msg: get back vtimer_set_msg call 2015-04-24 14:29:44 +02:00
Hauke Petersen
490192e88f tests/driver_xbee: added output after init 2015-04-23 15:52:00 +02:00
Martine Lenders
3e9db4371f ipv6_addr: rename ng_ipv6_hdr_is_ipv6_hdr() to something less silly 2015-04-23 02:26:48 +02:00
Martine Lenders
9a842d0526 unittests: move netreg entries out of stack space 2015-04-21 11:35:09 +02:00
Peter Kietzmann
0d45479f02 Merge pull request #2819 from kushalsingh007/hash_string_missing
Tests : Add missing Makefile and Makefile.include for tests-hash_string
2015-04-21 10:25:02 +02:00
kushalsingh007
439b40c0b4 Tests : Add missing Makefile and Makefile.include for tests-hash_string
- Adds the missing files from #2793.
2015-04-20 20:51:21 +05:30
Martine Lenders
8acc8c9ba3 unittests: fix and unify header guards 2015-04-20 14:16:09 +02:00
Martine Lenders
c660fdfdac Merge pull request #2785 from authmillenon/ng_sixlowpan_ctx/feat/initial
ng_sixlowpan: initial import of a context buffer
2015-04-20 10:22:35 +02:00
Martine Lenders
79af989ef6 Merge pull request #2829 from authmillenon/ipv6_addr/fix/init-prefix
ipv6_addr: add missing mask to prefix initialization
2015-04-20 10:05:57 +02:00
Peter Kietzmann
d797b91a3c Merge pull request #2828 from kushalsingh007/fix_errors
Tests: Fixing warnings in hash_string_module
2015-04-20 09:24:34 +02:00
kushalsingh007
2f9f67eb38 Tests: Fixing warnings in hash_string_module
- Fixing warnings caused due to directly using the string as argument in
  the assert statement for hash_string function.
- Typecasted strings to solve the issue.
2015-04-19 19:00:58 +05:30
Martine Lenders
3a72e5346b unittests: add tests for ng_sixlowpan_ctx 2015-04-18 15:42:42 +02:00
Martine Lenders
0670f7daea unittests: make ipv6_addr more sensible to masking errors 2015-04-18 15:40:02 +02:00
René Kijewski
2fd7f77e25 tests: remove disable_module
This test is included in almost all other tests. Testing the make system
this way is kinda nonsensical.
2015-04-16 18:14:13 +02:00
René Kijewski
f7e72918a2 tests: remove ipc_pingpong
This test does not test anything.
2015-04-16 18:14:13 +02:00
René Kijewski
ecf01e521e tests: delete queue_fairness
The test fails because it assumes the `msg_*` functions to yield, which
is unrelated to fairness.
2015-04-16 18:14:13 +02:00
Martine Lenders
f58eac2188 Merge pull request #2807 from authmillenon/ipv6_addr/fix/prefix-init
ipv6_addr: do not null remaining bits in prefix initialization
2015-04-16 18:06:21 +02:00
Peter Kietzmann
cc964ebf87 Merge pull request #2821 from kushalsingh007/new_line_error
Tests: Removing extra newline from Makefile.include
2015-04-16 17:09:31 +02:00
kushalsingh007
88349beb89 Tests: Removing extra newline from Makefile.include
- Removing the extra newline from tests-bloom, tests-crypto and
  tests-timex.
2015-04-16 09:50:03 +05:30
PeterKietzmann
a3c2035834 tests/periph_gpio_exti: extend test to 32 GPIOs 2015-04-14 11:50:44 +02:00
Martine Lenders
ccd4b5a2bf unittests: adapt unittests for ipv6_addr_init_prefix() change 2015-04-14 11:17:11 +02:00
Martine Lenders
1af6126000 Merge pull request #2793 from kushalsingh007/hash_string
Tests: Creating unittests for the hash_string module
2015-04-13 16:32:03 +02:00
PeterKietzmann
9e17d1b9fd doc/drivers/srf: edit author and copyright 2015-04-13 13:07:56 +02:00
kushalsingh007
b16decdec2 Tests: Creating unittests for the hash_string module
-Created unittests for hash_string module present in sys/hash_string
2015-04-13 09:59:06 +05:30
Martine Lenders
d47cd80945 Merge pull request #2779 from kaspar030/fix_ipv6_addr_string_max_length
sys: net: ipv6: fix max ipv6 address string length
2015-04-11 19:26:01 +02:00
23074c7870 unittests: tests-ipv6_addr: test for long embedded ipv4 addresses 2015-04-11 11:21:47 +02:00
Martine Lenders
c94094529d Merge pull request #2731 from authmillenon/ipv6_hdr/feat/initial
ipv6_hdr: Initial import
2015-04-10 07:35:41 +02:00
Martine Lenders
687947d3db Merge pull request #2730 from authmillenon/inet_csum/feat/initial
inet_csum: initial import of Internet Checksum module
2015-04-10 07:24:58 +02:00
Martine Lenders
2dd24edcf8 ipv6_netif: auto-add corresponding link-local addresses 2015-04-10 01:29:33 +02:00
Martine Lenders
7a3c373038 unittests: add tests for ipv6_hdr 2015-04-10 00:41:56 +02:00
Martine Lenders
5d1ae12e8d unittests: add tests for inet_csum 2015-04-09 23:30:02 +02:00
Lotte Steenbrink
40acfa732b Merge pull request #2705 from authmillenon/netif/feat/addr-str
netif: add functions to parse and output hardware addresses
2015-04-02 01:04:33 +02:00
Martine Lenders
882bcbe92e netif: add functions to parse and output hardware addresses 2015-04-01 16:24:19 +02:00
BytesGalore
30c76adc43 net: added a core implementation of a FIB 2015-04-01 10:24:35 +02:00
Martine Lenders
476dd297bd Merge pull request #2719 from haukepetersen/ng_opt_pktdump
net/ng_pktdump: manage stack internal and use msg queue
2015-03-30 02:43:43 +02:00
Martine Lenders
7273d5c9ad Merge pull request #2723 from authmillenon/ipv6_netif/feat/prefix-list
ipv6_netif: add prefix list to interface
2015-03-30 00:31:37 +02:00
Martine Lenders
3b42fae668 Merge pull request #2602 from kushalsingh007/shell-return
Return-based error-handling for shell handlers
2015-03-29 18:29:58 +02:00
Peter Kietzmann
096cfd8323 Merge pull request #2694 from altairpearl/master
tests: Updated include guards to remove leading underscores
2015-03-29 17:07:45 +02:00
Hauke Petersen
3f5a3cf0bc tests/driver_xbee: adjusted to pktdump changes 2015-03-28 13:47:03 +01:00
Martine Lenders
d90842151b unittests: adapt for prefix list in ipv6_netif 2015-03-27 20:39:58 +01:00
kushalsingh007
9aae656be9 shell: Return-based error-handling for shell handlers
- Included the missing parts.
- Squashed with @authmillenon's commit
2015-03-25 23:54:04 +05:30
altairpearl
20123210d7 tests: Updated include guards to remove leading underscores 2015-03-25 20:45:17 +05:30
Hauke Petersen
391c7229c9 tests: added manual test for xbee driver 2015-03-24 23:19:29 +01:00
Hauke Petersen
5f77bbe1c8 Merge pull request #2563 from authmillenon/ng_pktbuf/fix/semantics
ng_pktbuf: change semantics for received packets
2015-03-24 16:49:49 +01:00
Martine Lenders
9ada601212 unittests: fix unittests for new pktbuf behavior 2015-03-23 23:17:17 +01:00
Martine Lenders
21204dc3eb ng_pktbuf: change semantics for received packets 2015-03-23 15:08:46 +01:00
Martine Lenders
df8cadf0b3 Merge pull request #2681 from Darredevil/patch-9
unittests/tests-pkt: fixed header file include guard
2015-03-22 16:23:36 +01:00
Martine Lenders
cd34fb92ad Merge pull request #2680 from Darredevil/patch-8
unittests/tests-netreg: fixed header file include guard
2015-03-22 16:23:18 +01:00
Martine Lenders
92edaefc77 Merge pull request #2679 from Darredevil/patch-7
unittests/tests-netif: fixed header file include guard
2015-03-22 16:23:01 +01:00
Martine Lenders
5551a1beee Merge pull request #2678 from Darredevil/patch-6
unittests/tests-netdev_dummy: fixed header file include guard
2015-03-22 16:22:36 +01:00
Martine Lenders
1df1ecc6cb Merge pull request #2677 from Darredevil/patch-5
unittests/tests-crypto: fixed header file include guard
2015-03-22 16:22:24 +01:00
Martine Lenders
a6c72e9980 Merge pull request #2676 from Darredevil/patch-3
unittests/tests-base64: fixed header file include guard
2015-03-22 16:22:12 +01:00
Martine Lenders
6d253ee9a0 Merge pull request #2684 from Darredevil/patch-12
unittests/tests-timex: fixed header file include guard
2015-03-22 16:21:48 +01:00
Martine Lenders
a9e6c0fb73 Merge pull request #2683 from Darredevil/patch-11
unittests/tests-pktqueue: fixed header file include guard
2015-03-22 16:21:39 +01:00
Martine Lenders
f8737c05d0 Merge pull request #2682 from Darredevil/patch-10
unittests/tests-pktbuf: fixed header file include guard
2015-03-22 16:21:21 +01:00
Darredevil
a8051f51bb unittests/tests-timex: fixed header file include guard
fixes #2623
2015-03-22 16:42:49 +02:00
Darredevil
4ce7497cbb unittests/tests-pktqueue: fixed header file include guard
fixes #2623
2015-03-22 16:41:42 +02:00
Darredevil
7c97136699 unittests/tests-pktbuf: fixed header file include guard
fixes #2623
2015-03-22 16:40:33 +02:00
Darredevil
febf0c1b08 unittests/tests-pkt: fixed header file include guard
fixes #2623
2015-03-22 16:39:10 +02:00
Darredevil
130a861fbc unittests/tests-netreg: fixed header file include guard
fixes #2623
2015-03-22 16:37:04 +02:00
Darredevil
138f25811c unittests/tests-netif: fixed header file include guard
fixes #2623
2015-03-22 16:33:36 +02:00
Darredevil
b976f55022 unittests/tests-netdev_dummy: fixed header file include guard
fixes #2623
2015-03-22 16:31:46 +02:00
Darredevil
ce46de3799 unittests/tests-crypto: fixed header file include guard
fixes #2623
2015-03-22 16:29:20 +02:00
Darredevil
734d251040 unittests/tests-base64: fixed header file include guard
fixes #2623
2015-03-22 16:25:42 +02:00
Darredevil
49c2f5c597 unittests/netdev_dummy: fixed header file include guard
fixed #2623
2015-03-22 16:23:06 +02:00
Philipp Rosenkranz
d5848d687c Merge pull request #2663 from phiros/unittests_constants_fix
unittests: move test data to common header
2015-03-22 14:48:07 +01:00
Philipp Rosenkranz
d53c7759e9 unittests: move test data to common header 2015-03-22 13:58:36 +01:00
Darredevil
9ca393f63b Repair header file include guards #2623 2015-03-22 04:04:36 +02:00
Martine Lenders
6a31fa80a7 Merge pull request #2568 from authmillenon/ng_netreg/feat/allow_nettype_undef
ng_netreg: Allow registration of NG_NETTYPE_UNDEF
2015-03-20 17:06:37 +01:00
Martine Lenders
fe5f8cc632 unittests: adapt unittests to netreg change 2015-03-20 11:00:32 +01:00
Peter Kietzmann
a6240e70ea Merge pull request #2388 from gebart/pr/ina220-initial
drivers: Add driver for TI's INA220 current and power monitor
2015-03-20 08:06:10 +01:00
Oleg Hahm
52017a967a Merge pull request #2545 from kushalsingh007/refactor_vtimer_set_msg
Changing return type of vtimer_set_msg
2015-03-19 17:24:40 +01:00
Joakim Gebart
5ea9eaf386 drivers/ina220: Add driver for INA220 current and power sensor. 2015-03-19 17:22:22 +01:00
Martine Lenders
09867e3f39 unittests: add spark-core to BOARD_INSUFFICIENT_RAM 2015-03-19 15:13:19 +01:00
Martine Lenders
5d3ad83cab unittests: add tests for ipv6_netif 2015-03-19 15:13:19 +01:00
kushalsingh007
1dc6c3581f vtimer: changing return type of several functions to void
- Changed the return type for vtimer_init,vtimer_set_msg and vtimer_remove.
- Current return value is not used anywhere and has no meaning attached to it.
- Fix for #1533
- Removed tests which checked for vtimer_set_msg being set.
- Done doxygen adaption for corresponding vtimer functions.
2015-03-19 03:56:00 +05:30
Martine Lenders
c3e9a931ff unittests: check return value of ng_netif_get() 2015-03-16 16:25:25 +01:00
Martine Lenders
2909c87329 unittests: add test for correct returned netif array 2015-03-16 16:25:25 +01:00
Martine Lenders
e740c6fb09 unittests: add unittests for neighbor cache 2015-03-13 20:42:54 +01:00
Oleg Hahm
0144bb589b Merge pull request #2546 from authmillenon/ng_ipv6_addr/api/add_string_functions
[RFC] ng_ipv6_addr: add (optional) string conversion functions
2015-03-13 13:41:37 +01:00
Martine Lenders
b63d610451 unittests: add IPv6 string conversion function tests 2015-03-12 21:06:43 +01:00
Hauke Petersen
4bebf3b01a net/nomac: removed legacy implementation 2015-03-12 13:55:24 +01:00
Martine Lenders
904b363b77 unittests: remove unnecessary MODULE macro definition 2015-03-04 18:07:03 +01:00
Lotte Steenbrink
1793eb7ec8 Merge pull request #2450 from authmillenon/netreg/api/pointer-based
RFC: netreg: move to pointer-based API
2015-03-04 15:33:15 +01:00
Martine Lenders
ec5f686cd0 netreg: move to pointer-based API
Moving to a pointer-based API simplifies a lot, since there is no need
for an internal pool of entries anymore. Therefore, a lot of
organizational overhead and some restrictions (e.g. an upper limit on
entries) are dropped.

The entries can be stored in the stack of the respective thread.
2015-03-04 13:17:00 +01:00
Joakim Gebart
6a4c61534c tests/lis3dh: Fix SPI_CONF #define 2015-03-04 08:51:41 +01:00
Joseph Noir
f614d4b186 Merge pull request #1222 from BytesGalore/add_pthread_simple_tls
Everything seems to work, so here we go: sys:posix:pthread added dynamic pthread thread local storage
2015-03-03 22:38:27 +01:00
Martine Lenders
dad4e8d5df Merge pull request #2433 from authmillenon/ng_ipv6_addr/feat/initial
ng_ipv6_addr: initial import
2015-02-20 19:27:17 +01:00
Oleg Hahm
10b96f06a3 doc: import unittest documentation from wiki 2015-02-20 17:52:26 +01:00
Martine Lenders
ff36abb2cf ng_ipv6_addr: initial import
The motivation behind this module is to allow for address handling
functions where they, but not the full IPv6 functionality might be
needed. This new version of the IPv6 address data type utilizes the
byteorder.h header to enforce network byte-order on its members.
2015-02-20 17:40:26 +01:00
Ludwig Ortmann
4f29a7757e Merge pull request #2285 from authmillenon/pktbuf/api/use-pkt
pktbuf: port to use pkt_t instead of void*
2015-02-19 14:46:15 +01:00
Martine Lenders
41f60aca4c pktbuf: port to use ng_ version 2015-02-19 13:51:27 +01:00
Ludwig Ortmann
cec87139a5 core, cpu, drivers, tests: remove trailing space 2015-02-18 13:52:48 +01:00
Fabian Nack
bb6f7926fc tests: Add test for MPU-9150 9-Axis motion sensor driver 2015-02-13 10:09:16 +01:00
Martine Lenders
cd711ea934 unittests: add ng_netreg tests 2015-02-12 16:13:38 +01:00
Martine Lenders
b208371163 Merge pull request #2417 from authmillenon/netif/feat/initial
netif: Initial import of ng_* version
2015-02-11 12:41:54 +01:00
Martine Lenders
cfc64ff4de Merge pull request #2342 from authmillenon/pkt/api/simplify
pkt: simplify API
2015-02-11 12:41:43 +01:00
Martine Lenders
cb74094edd pktqueue: adapt to change in pkt.h 2015-02-11 11:01:33 +01:00
Martine Lenders
7317097db2 pkt: simplify API 2015-02-11 11:01:33 +01:00
Martine Lenders
894cd964f9 netif: Initial import of ng_* version 2015-02-11 10:52:51 +01:00
Ludwig Ortmann
373f91c6ff tests/unittests: remove useless doxygen stub 2015-02-10 15:43:35 +01:00
Ludwig Ortmann
dd2da2fb71 Merge pull request #2405 from cgundogan/restrict_with_leading_underscores
Use `__restrict` instead of `restrict`
2015-02-08 22:07:23 +01:00
Martine Lenders
498313a23f doc: Add mail address where it is missing 2015-02-08 19:41:14 +01:00
Cenk Gündoğan
50112af413 tests: restrict => __restrict 2015-02-08 19:22:29 +01:00
Martine Lenders
0eb2d78dda doc: use my real name 2015-02-08 18:52:16 +01:00
Christian Mehlis
08aa333193 Merge pull request #2403 from haukepetersen/opt_nrf_stacksize
cpu/nrf51822: raised default stack size
2015-02-08 16:18:36 +01:00
Ludwig Ortmann
031bed01d3 Merge pull request #2236 from d00616/new_micro-ecc
New package for ECDH and ECDSA
2015-02-08 16:17:05 +01:00
Frank Holtz
f3e1922f9d pkg_micro-ecc: Eliptic curve cryptography from https://github.com/kmackay/micro-ecc 2015-02-07 21:08:06 +01:00
Hauke Petersen
a5e80fbcf8 tests/pthread_rwlock: blacklisted airfy-beacon 2015-02-07 16:33:09 +01:00
Cenk Gündoğan
5c77530da4 sys/bloom: changed doc from bytes -> bits 2015-01-29 15:06:01 +01:00
Thomas Eichinger
991fbd3dc1 Merge pull request #2369 from thomaseichinger/nucleo-f334-fix
board/nucleo-f334: blacklist board in failing tests and fix CPU_USAGE
2015-01-28 12:43:34 +01:00
Thomas Eichinger
b0d1ca2d31 tests: blacklist nucleo-f334 in tests not fitting into RAM 2015-01-28 11:20:44 +01:00
Johann Fischer
b540def4b1 drivers/hdc1000: Acquire exclusive access to I2C bus and minor bug fixes
fix doxygen warnings
 change default address
2015-01-28 10:26:02 +01:00
Martin Landsmann
6e90ad6d73 sys/posix/pthread: added dynamic pthread thread local storage 2015-01-27 23:04:12 +01:00
Joakim Gebart
ba6053e448 tests/nativenet: reduce scope of globals in main.c 2015-01-23 14:05:54 +01:00
Peter Kietzmann
647d0aef5f Merge pull request #2330 from PeterKietzmann/fix_nrf24l01p_driver
drivers/nrf24l01p: fixes
2015-01-21 12:10:01 +01:00
PeterKietzmann
7aaa99221d tests/driver_nrf24l01p_lowlevel: adapt doc. 2015-01-21 10:28:46 +01:00
PeterKietzmann
a3031ec04e tests/driver_nrf24l01p_lowlevel:improve by checking for errors 2015-01-21 10:24:55 +01:00
Joakim Gebart
ca56de8251 lis3dh: New device driver for LIS3DH accelerometer sensors.
LIS3DH MEMS digital output motion sensor ultra low-power high
performance 3-axes "nano" accelerometer

Manufacturer website:

  http://www.st.com/web/catalog/sense_power/FM89/SC444/PF250725

Data sheet:

  http://www.st.com/st-web-ui/static/active/en/resource/technical/document/datasheet/CD00274221.pdf

tests/driver_lis3dh is a simple test application for testing on actual
hardware.

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
2015-01-20 14:53:27 +01:00
Joakim Gebart
dfb0d58cfb tests/periph_spi: Lock bus for exclusive access when communicating. 2015-01-19 19:05:40 +01:00
Martine Lenders
cfed38ae12 Merge pull request #2287 from authmillenon/pktqueue/api/use-pkt
pktqueue: adapt to pkt_t
2015-01-16 19:48:04 +01:00
PeterKietzmann
c917e6d374 tests/periph_spi: correct test application 2015-01-16 11:15:42 +01:00
Martine Lenders
c9e2f5bdce pktqueue: adapt to pkt_t 2015-01-14 14:53:37 +01:00
Oleg Hahm
2d874af904 Merge pull request #2158 from authmillenon/pkt/feat/initial-import
pkt: Initial import
2015-01-14 08:20:46 +01:00
Martine Lenders
62544e6923 tests, pkt: add unittests for pkt 2015-01-14 07:04:57 +01:00
Martine Lenders
0221c27d4b unittests: provide unittests for basic_mac 2015-01-14 06:59:59 +01:00
BytesGalore
024cf7cc49 tests/pnet: renamed PORT define as it collides with the samd21-xpro definition 2015-01-13 11:46:16 +01:00
Oleg Hahm
4a615e21ef Merge pull request #1717 from BytesGalore/base64_encoder_decoder
base64 encoding/decoding module
2015-01-12 16:39:08 +01:00
Martin Landsmann
a0898dbb9f sys: add base64 encoding/decoding module
- suppressed cppcheck warning for `unassignedVariable` for
   the encode/decode arrays in stream encode/decode tests
   as these arrays are assigned by the according `base64_[en|de]code()` function.
2015-01-12 11:26:41 +01:00
Johann Fischer
822a0503c5 add test app for mag3110 magnetometer driver 2015-01-09 11:11:01 +01:00
Johann Fischer
4099e89e1d add test app for mma8652 accelerometer driver 2015-01-08 11:44:39 +01:00
Peter Kietzmann
2fb2f499f9 Merge pull request #2123 from jfischer-phytec-iot/pr@mpl3115a2
Driver for  Freescale MPL3115A2 Pressure/Altitude Sensor
2015-01-07 23:28:57 +01:00
Johann Fischer
2be440b55c add test app for tmp006 sensor 2015-01-07 13:53:23 +01:00
Johann Fischer
fb71721002 add test app for mpl3115a2 sensor driver 2015-01-07 13:03:32 +01:00
René Kijewski
f684aa4b2d tests: make embUnit a normal sys module
There is nothing quite special about embUnit.

This PR makes it a normal sys module, so that you can use it in any
application / test.
2014-12-21 20:04:57 +01:00
Martine Lenders
c991f3dcec tests: remove do-while(0) blocks for netdev tests or comment on them 2014-12-19 08:19:56 +01:00
PeterKietzmann
46fdcf64c1 drivers/srf08: initial import of the updated ultrasonic driver 2014-12-17 15:37:25 +01:00
Ludwig Ortmann
a7f7d7e516 Revert "tests: don't build test/libfixmath on Travis CI"
This reverts commit f061d0214e.
2014-12-17 09:47:43 +01:00
Martine Lenders
17ef92eade Merge pull request #2181 from phiros/tests_sha256_transform_into_unittest
tests: transformed tests/sha256 into a unittest
2014-12-12 16:29:16 +01:00
Philipp Rosenkranz
f5d941ac22 tests: transformed tests/bloom into an unittest 2014-12-11 22:56:40 +01:00
Philipp Rosenkranz
1024e0b8be tests: transformed tests/sha256 into an unittest 2014-12-11 21:57:01 +01:00
Ludwig Ortmann
122d488a42 Merge pull request #2165 from haukepetersen/fix_test_uart
test/periph_uart_xx: switched to feature based whitelisting
2014-12-09 14:44:15 +01:00
Ludwig Ortmann
e850078769 Merge pull request #2162 from cgundogan/vtimer_set_msg_param_type
vtimer: set custom msg_t.type with vtimer_set_msg
2014-12-09 11:12:52 +01:00
Cenk Gündoğan
6ee5e737f9 vtimer: set custom msg_t.type with vtimer_set_msg
Currently, when using vtimer_set_msg the corresponding msg_t is filled
with the MSG_TIMER ("12345") type.
This approach makes it difficult to differentiate between incoming
messages via vtimer_set_msg.

In this PR I introduce another parameter for the vtimer_set_msg
function to specify a custom msg_t type.
2014-12-09 10:07:26 +01:00
Hauke Petersen
e859d74ea4 tests: fixed blacklisting for UART tests
changed from explicit blacklisting to feature based approach
2014-12-08 18:08:49 +01:00
Hauke Petersen
934f7b6b33 Merge pull request #2161 from haukepetersen/fix_test_nrf24
test/driver_nrf24l01p: changed default GPIOs
2014-12-08 16:16:37 +01:00
Hauke Petersen
ec62cbf7ac test/driver_nrf24l01p: changed default GPIOs
not all boards have GPIO_x > GPIO_7, so the new values are
safer to use.
2014-12-08 15:41:54 +01:00
Philipp Rosenkranz
536c910980 Merge pull request #2157 from LudwigOrtmann/unittests-lib
tests/unittests: merge lib-ringbuffer into core
2014-12-08 15:36:41 +01:00
Ludwig Ortmann
0027f90be4 Merge pull request #2118 from OlegHahm/simplify_cpu_folder_structure
cpu: simplify folder structure
2014-12-08 13:10:13 +01:00
Ludwig Ortmann
4feec9243f tests/unittests: merge lib-ringbuffer into core
Fixup for https://github.com/RIOT-OS/RIOT/pull/2017
2014-12-08 10:15:48 +01:00
René Kijewski
6b559faf88 tests: add UBJSON unittests 2014-12-03 20:42:51 +01:00
Ludwig Ortmann
e6c808d5fa Merge pull request #1970 from Kijewski/optimize-cib
core: inline `cib.c`
2014-12-03 17:12:48 +01:00
PeterKietzmann
91c5620a84 Initial import of a DAC test application 2014-12-03 08:38:05 +01:00
Oleg Hahm
0c967c4d3f cpu: msp430: renamed msp430x16x to msp430fxyz 2014-12-02 17:46:57 +01:00
Fabian Nack
eebfd5011a drivers - cc110x: Initial import of new cc110x driver 2014-12-01 17:14:02 +01:00
Ludwig Ortmann
6b95159632 tests/hwtimer_spin: revert behavior, fix doc 2014-11-28 16:23:24 +01:00
Ludwig Ortmann
ac8f51cb52 tests/hwtimer_wait: test smallest value possible
By selecting the start value as a multiple of HWTIMER_SPIN_BARRIER+1, the
test now includes the smallest non-spinning value.
2014-11-28 13:48:25 +01:00
Oleg Hahm
565d70cab3 Merge pull request #2094 from OlegHahm/fix_bitarithm
core: Fix bitarithm and unittests
2014-11-27 13:02:44 +01:00
Hauke Petersen
b7b03aced7 test/hwtimer_spin: test slightly wider range
test is now also testing for values slightly above SPIN_BARRIER
2014-11-26 18:54:07 +01:00
Oleg Hahm
3cf43db63e unittests: test full 16 bit range for bitarithm
Also uses a better pseudo random number.
2014-11-26 16:52:51 +01:00
PeterKietzmann
d8a26d5aa6 Initial import of nrf24l01p lowlevel functions 2014-11-26 13:50:29 +01:00
Ludwig Ortmann
685acd8a54 Merge pull request #2070 from jfischer-phytec-iot/wip@hdc1000
Sensor Driver for HDC1000
2014-11-26 10:32:17 +01:00
Martine Lenders
21adda9370 [SQUASH ME] pktqueue: fix unittests 2014-11-25 21:52:28 +01:00
Ludwig Ortmann
8ef2257796 test/coap: update blacklist for features
Boards that don't have a transceiver are automatically filtered out already.
2014-11-24 16:07:09 +01:00
Johann F
5b1a519875 add test app for hdc1000 sensor 2014-11-24 13:15:58 +01:00
René Kijewski
89ab9f720f Merge pull request #2066 from N8Fear/lint
lint: tests: fix improper use of format specifiers
2014-11-21 15:42:17 +01:00
Hinnerk van Bruinehsen
12d0c5bbf2 lint: tests: fix improper use of format specifiers 2014-11-21 15:25:56 +01:00
Martine Lenders
03654d74ef Merge pull request #2027 from authmillenon/netdev-proto
netdev: Add protocol field to netdev_hlist_t struct + cppcheck suppressions
2014-11-21 14:44:16 +01:00
René Kijewski
09b274fef7 tests: fix tests/posix_semaphore 2014-11-21 14:33:28 +01:00
Thomas Eichinger
e7ae2f6bfb tests: define random default GPIOs to pass Travis builds 2014-11-21 13:26:41 +01:00
Martine Lenders
8ee3edcb13 netdev: Add protocol to header list nodes 2014-11-21 12:37:48 +01:00
PeterKietzmann
f207b114e4 Initial import of the updated srf02 driver with general i2c interface 2014-11-21 09:21:27 +01:00
Ludwig Ortmann
6eaaac6372 Merge pull request #2041 from LudwigOrtmann/native-random
native: peripheral random interface
2014-11-19 06:25:39 -08:00
Ludwig Ortmann
3d9003f18a tests/periph_random: fix warnings, conventions 2014-11-19 14:26:58 +01:00
9ce0b676b4 core: sys: move ringbuffer to core 2014-11-19 14:18:39 +01:00
René Kijewski
f23771c6fe tests: extend cib unittest 2014-11-11 17:39:40 +01:00
René Kijewski
08810d605b embunit: fix macros 2014-11-10 20:50:50 +01:00
Martine Lenders
1138360a14 unittests: make test macros save for strict aliasing 2014-11-08 19:13:23 +01:00
Martine Lenders
f6795b461c unittests: Add missing semicolons to macro calls 2014-11-08 13:45:11 +01:00
Hauke Petersen
71568466b5 Merge pull request #1826 from PeterKietzmann/extend_test_periph_spi
tests/periph_spi: print rx-buffer on slave
2014-11-06 16:47:12 +01:00
Hauke Petersen
1a9e19cc6c tests/periph_adc: added test for adc driver 2014-11-06 15:19:36 +01:00
Hauke Petersen
d484255bf7 tests: added test for L3G4200 device driver 2014-11-06 10:36:41 +01:00
56924f28a8 Merge pull request #1944 from authmillenon/msg_send_receive-test
tests: Add automatic test for msg_send_receive
2014-11-05 14:49:07 +01:00
Martine Lenders
30c7f37e68 tests: Add automatic test for msg_send_receive 2014-11-05 14:45:25 +01:00
Hauke Petersen
900e01bc26 Merge pull request #1912 from thomaseichinger/lsm303dlhc
lsm303dlhc: initial import of lsm303dlhc driver
2014-11-05 14:16:13 +01:00
benpicco
cedc588d77 Merge pull request #1782 from benpicco/fix_malloc
check if the requested memory is really available in _sbrk_r
2014-11-05 13:21:40 +01:00
Thomas Eichinger
88fce936e9 lsm303dlhc: initial import of lsm303dlhc driver
TODO: Accelerometer does not return valid values yet
2014-11-05 13:04:47 +01:00
Benjamin Valentin
39d73d753c resurrect malloc test 2014-11-05 12:11:24 +01:00
Christian Mehlis
2114a8267d added board airfy beacon 2014-11-02 18:26:42 +01:00
Christian Mehlis
f3b1753ac7 added spark core board 2014-11-02 14:36:42 +01:00
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
PeterKietzmann
7aec98c57d Added a function for the slave to print received data. 2014-10-24 15:43:01 +02: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
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