changed parameters form `kernel_pid_t` to `int`
dist/tools: add cppcheck script

enables easy linting of the whole tree or just one branches changes against
another
board/pca1000x: added/fixed dist scripts

- pca10000: added author to debug.sh
- pca10005: added debug and reset scripts
- pca10005: fixed flash script
- pca10005: adjusted env vars in Makefile.include
Fix thread_yield by avoiding the (too) early re-enablement of IRQ,
that is: before the newly selected thread's context is totally restored
Prevent the compiler to add an unwanted prologue in thread_yield()
Fix the race condition when an interruption occured at the beginning
of thread_yield(), i.e.: just after SR(R2) was pushed but before
the rest of the suspended thread's context was pushed!
tests: improve calculation in hwtimer_wait

Kudos to @Kijewski
SQUASHME: file(line) -> file:line

Addresses https://github.com/RIOT-OS/RIOT/pull/1604#discussion_r16936195
cpu - stm32f4: add support for stm32f415rg
cpu - stm32f4: added support for more channels/devices in periph impls
iot-lab_M3: extend debug target for iot-lab_M3
SQUASHME: kill openocd by PID
board - msbiot: initial import for the msbiot
tests/examples: blacklisted msbiot for some tests
licenses: added stm specific 3 clause BSD license pattern
Merge pull request #1494 from fnack/msbiot_reworked

Initial import of MSB-IoT board
cpu/stm32f1: spi_transfer_bytes proper counting.

The transferred bytes were being counted more than once because of a +=
when calling spi_transfer_byte().

This patch should also handle errors from spi_transfer_byte() better
since it is now possible to detect errors _after_ the first byte has
been successfully sent.

Signed-off-by: Joakim Gebart <joakim@gebart.se>
cpu/stm32f1: Reduce scope of ret variable in spi_transfer_bytes.

Reduced scope to inside the while loop as per comments in RIOT-OS/RIOT#1630

Signed-off-by: Joakim Gebart <joakim@gebart.se>
Merge pull request #1630 from gebart/stm32f1-spi-fix

cpu/stm32f1: spi_transfer_bytes proper counting.
sys: vtimer: add license header