cpu/arm/k60: Add silicon revision variable to assert.

Simple help variable for if someone needs more info.

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
cpu/arm/k60: Remove GCCBIN default value.

Don't set a path to a custom toolchain by default, use the system
toolchain instead.

It is still possible to export GCCBIN to define a custom toolchain
path if needed.

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
platform/mulle: Make lis3dh spi_transfer static.

Hides it from other compilation units.

TODO: Consolidate all spi_transfer-like functions into one.

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
platform/mulle: Clean up flash driver.

- Replaced subsequent calls to spi_write+spi_read with spi_transfer.
- Cleaned up type names.

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
platform/mulle: Print CPUID on bootup.

Helpful for debugging problems with the wrong CPU revision.

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
platform/mulle: Add stub for button_sensor.

We do not have any buttons on the board but some of the Contiki
examples expect the functions in dev/button-sensor.h to exist and to
provide a sensor called button_sensor.

The implementation is copied straight from platform/native.

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
platform/mulle: Add empty compatibility uart1.h

This file exists simply to make some broken examples (rpl-border-router
etc.) that are dependent on platform specific headers compile correctly.

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
platform/mulle: Sanitise GDB command line for upload

Generate a new temporary file for each invokation of the upload target.

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
examples/ipv6/rpl-border-router: Add -DUIP_CONF_TCP=1 to CFLAGS

The example used to rely on the default value being set to 1 which
caused build failures on platforms which have a default UIP_CONF_TCP=0

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
platform/mulle: Add button-sensor.c stub to Makefile.

Required for building rpl-border-router.

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
platform/mulle: Only define UIP_CONF_TCP if unset

contiki-conf.h should only provide a default value when the project
has no local definition.

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
platform/mulle/tools: Add gitignore for scan_ftdi binary.

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
tools: Add gitignore file for tool binaries.

Keeps the built binaries from polluting the git status file list.

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
platform/mulle: Make hal_spi_{send,receive} static inline.

Causes problems when linking with Clang.

See also: http://clang.llvm.org/compatibility.html#inline

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
cpu/arm/k60: Add include guard to K60.h

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
cpu/arm/k60: Add a debugging helper hard fault handler.

This is basically a copy and paste of the hardfault handler originally
written by Joseph Yiu and published on various forums around the web.

When a hardfault occurs the new fault handler will try to dump
debugging information to the UART terminal.

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
cpu/arm/k60: Fix compiler warning about unused variables in uart.c

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
cpu/arm/k60: Add --start-group/--end-group to linker command.

Helps avoiding having to reorder the filenames on the command line when
linking.

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
platform/mulle: Add upload Makefile target.

make upload is shorthand for make projectname.u

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
cpu/arm/k60: Add __attribute__((unused)) to default fault handlers.

Was causing compiler warnings on LLVM/Clang and the compiler should
probably be made aware that we need those handlers even though they are
never referenced from actual code.

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>