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

3568 Commits

Author SHA1 Message Date
Martine Lenders
4a2450b464 Merge pull request #1522 from OlegHahm/crypto_cleanup
crypto: get rid of compiler warnings
2014-08-12 02:18:25 +02:00
Oleg Hahm
67d69664d2 Merge pull request #1563 from Kijewski/priority_queue_print-typo
core: shadowing in priority_queue_print
2014-08-11 15:58:34 -04:00
René Kijewski
bf6548ca30 core: shadowing in priority_queue_print
The variable `node` shadows the parameter `node`. The access of
`node->first` would not compile, because there is no member `first` in
`priority_queue_t`.
2014-08-11 18:42:25 +02:00
René Kijewski
3b7591f3bc Merge pull request #1526 from Kijewski/rebase-on-master
Travis: auto rebase on master before running
2014-08-11 18:22:59 +02:00
René Kijewski
b2f819b5da Travis: auto rebase on master before running
It can happen that two PRs don't interfere with each other in the sense
that they hurt automatic rebasing, but still do not work together. The
prime example is PR1 changes the API of some function that PR2 uses. If
PR1 is merged, and PR2 is not rebased before merging, the error might
get unnoticed before the next build. Travis CI would have have told both
PR1 and PR2 are fine, but will complain (rather unnoticedly) that our
master does not compile.

This PR automatically rebases the PR on top of the current master,
before running the tests. If the automatic rebase fails, then this is
fine, because you will need to manually rebase again before merging,
anyway. The manual rebase, i.e. new push, will trigger Travis CI.

So, the main idea of this PR is that to can hit the "Restart Build"
button in Travis CI before hitting the merge button in Github.
2014-08-11 18:22:20 +02:00
Hauke Petersen
f67d209648 Merge pull request #1481 from haukepetersen/fix_drivers_uartif
drivers: improved UART driver interface
2014-08-11 15:09:53 +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
Hauke Petersen
037820d6a6 board/cpu: adjusted uart driver implementations
for
- sam3x8e
- stm32f0
- stm32f4
- sam3x8e
- nrf51822
2014-08-11 15:08:20 +02:00
Hauke Petersen
8a80b2add8 drivers: improvements to UART driver interface
- removed UNDEFINED value from device enum
- added argument for callbacks
- add power[on|off] functions
- removed tx_end() function in favor of cb return value
2014-08-08 17:39:34 +02:00
Oleg Hahm
de2f164ee6 Merge pull request #1549 from OlegHahm/kernel_pid_fixup
Handle kernel_pid_t consistently
2014-08-07 17:30:29 +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
74fbff1df2 net: changed name of internal variable
To avoid naming conflicts + made variable static and volatile as it
should be.
2014-08-07 16:31:27 +02:00
Oleg Hahm
93ef4346e9 ccnl: duplicate variable names
Some variables had multiple definitions, but could be removed or
declared with a smaller scope.
2014-08-07 16:31:27 +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
Oleg Hahm
c2b0423918 core: renamed KERNEL_PID_NULL to KERNEL_PID_UNDEF
As @authmillenon pointed out the "null" in the old name is somewhat
misleading, since the actual value is -1.
2014-08-07 16:31:27 +02:00
Oleg Hahm
4b1a2f32eb net: fix kernel_pid_t checks
KERNEL_PID_NULL is a negative number. If kernel_pid_t variables are
initialized to this value, one have to check for lt/gte 0.
2014-08-07 16:31:27 +02:00
Oleg Hahm
0836cd0b18 core: moved definition of KERNEL_PID_NULL
kernel_pid_t is defined in kernel_types.h, thus it makes sense to move
the macro for an invalid kernel pid there, too.
2014-08-07 16:31:27 +02:00
Hauke Petersen
b6cf2fa37f Merge pull request #1467 from haukepetersen/add_stm32f4_pwm
cpu: added pwm driver for the stm32f4
2014-08-07 16:17:44 +02:00
Hauke Petersen
b0d3a55989 tests: added test for low-level PWM driver 2014-08-07 16:16:06 +02:00
Hauke Petersen
cc6ee1dc05 board/cpu: added pwm driver for stm32f4discovery 2014-08-07 16:15:39 +02:00
Hauke Petersen
60886c240f Merge pull request #1466 from haukepetersen/fix_periph_pwmif
drivers: improvements to the low-level pwm driver interface
2014-08-07 16:14:44 +02:00
Hauke Petersen
9a90eae1ba cpu: adjusted pwm driver impl for lpc2387 2014-08-07 16:14:09 +02:00
Hauke Petersen
3f4aa04260 drivers: updated low-level PWM driver interface 2014-08-07 14:47:24 +02:00
René Kijewski
4d5563acea Merge pull request #1546 from Kijewski/buildtest-retry
buildtest: retry failed builds once
2014-08-06 23:13:24 +02:00
Martine Lenders
a8e5fdb10b Merge pull request #1552 from Kijewski/fixup-1415
x86: disable `--gc-sections` for Travis' sake
2014-08-06 15:49:11 +02:00
Martine Lenders
2db55a8d61 Merge pull request #1551 from authmillenon/fix-periph-doc
driver_periph: minor documentation fix
2014-08-06 15:46:26 +02:00
René Kijewski
aed57f4fe6 x86: disable --gc-sections for Travis' sake
I could not reproduce the problem at home, but on Travis CI after
merging #1415 tests/unittest failed to execute for qemu-i386.

There is a crash early in the initialization, caused by a #PF. The
execution hangs afterwards (`cli; 0: hlt; jmp 1b`), and Travis kills
the execution after 10 minutes.
2014-08-06 15:23:11 +02:00
Martine Lenders
5053a521d9 driver_periph: minor documentation fix 2014-08-06 15:06:06 +02:00
Hauke Petersen
0a7a2c088d Merge pull request #1542 from haukepetersen/add_make_moretargets
make: added targets 'debug-server' and 'reset'
2014-08-05 22:54:00 +02:00
Oleg Hahm
bbdd93e9d3 make: msb-430 boards: added debug and debugserver targets 2014-08-05 22:52:51 +02:00
Hauke Petersen
9ced34a52d boards/stm32fXdiscovery: added debug-server target
added "make debug-server" target for
- stm32f0discovery
- stm32f3discovery
- stm32f4discovery
2014-08-05 22:52:51 +02:00
Hauke Petersen
34abdbe5f2 make: added targets 'debug-server' and 'reset'
- added targets to Makefile.include
- added DEBUGSERVER and RESET vars to Makefile.vars
- added output of those to Makefile.buildtests
2014-08-05 22:52:34 +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
Oleg Hahm
a48ec4d051 Merge pull request #1548 from Kijewski/print_size_tcb
"tests": print tcb_t size
2014-08-05 21:27:39 +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
2b91605f58 Merge pull request #1535 from LudwigOrtmann/transceiver_volatile
sys/transceiver: make transceiver_pid volatile
2014-08-05 19:39:43 +02:00
Ludwig Ortmann
14e8abed05 Merge pull request #1525 from LudwigOrtmann/morning-cleanup
doc, boards/cpu: cleanup
2014-08-05 19:28:24 +02:00
René Kijewski
c5ac8332de "tests": print tcb_t size
The "test" should aid #303.
2014-08-05 19:15:35 +02:00
Hauke Petersen
d9b0927b57 Merge pull request #1547 from haukepetersen/fix_cortex_threadarch
cpu/cortex-mX_common: bugfix to arch_stack_init
2014-08-05 18:59:17 +02:00
René Kijewski
a5fe9078c8 Merge pull request #1293 from Kijewski/issue-1287
core: only store the stack size for DEVELHELP (implementation)
2014-08-05 18:56:29 +02:00
Ludwig Ortmann
1df6505db9 boards/cpu: fix some warnings 2014-08-05 18:52:26 +02:00
Ludwig Ortmann
c883c33d83 doc: fix flashrom doxygen 2014-08-05 18:52:26 +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
Hauke Petersen
be46f2047a cpu/cortex-mX_common: bugfix to arch_stack_init
- fixed cortex-[m0|m3|m4]
2014-08-05 18:38:06 +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
347719f2c7 Merge pull request #1527 from LudwigOrtmann/cppcheck-tests
tests: fix cppcheck findings
2014-08-05 18:31:16 +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