Fixed paths.
platform/mulle/mk60/Makefile.mk60: Clean up toolchain definitions

Added conditionals to allow overriding the defaults for the GCC path
and target triple.

Usage:
export GCCBIN=/path/to/your/toolchain/gcc/bin
make TARGET=mulle

Additionally, if you would like to build using another target triple:
export TARGET_TRIPLE=armv7m-none-eabi-or-whatever
make TARGET=mulle

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
Added delay after radio power on.
Added leds.
Better handling of interrupts when entering/leaving critical sections.
Cleaning up.
Moved around files.
Moved *printf implementation to separate folder.
platform/mulle/tools: rename scan_fdti -> scan_ftdi

Fixed typo in directory name.

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
platform/mulle: scan_ftdi build fix.

Added missing #include <stdlib.h> for EXIT_SUCCESS and EXIT_FAILURE.

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
.gitignore: Add *.mulle for ignoring Mulle binaries.

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
platform/mulle: Add LIS3DH accelerometer driver.

This driver is split into two parts, one platform specific part
in lis3dh-arch.c, and one platform independent part in lis3dh.c

Both parts currently live inside the platform/mulle/dev directory
but it should be possible to move the lis3dh.[ch] to a more general
directory.

Included are two examples for reading the data from the accelerometer.

- examples/lis3dh-poll is the minimal example for initializing the
   hardware and to read live samples.

- examples/lis3dh-fifo is an example for using the builtin FIFO
   for reading multiple samples in quick succession. This example
   also computes some statistics on the accelerometer data.

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

Remove lis3dh_{enable,disable}_adc() which have been replaced by
lis3dh_set_aux_adc().
Add declarations of lis3dh_read_aux_adc{1,2,3} for reading the
auxiliary ADC values.

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
platform/mulle/power-control: New power control API.

The power-control API provides simple wrappers to turn on and off
auxiliary power on the Mulle board.

The auxiliary power lines currently controlled by this library are:
- Vperiph
- Vsec
- Analog VDD

Vperiph is only used for onboard peripherals while AVDD and VSEC are
available in the expansion port.

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
platform/mulle: Use power-control API in LIS3DH driver.

This patch replaces the explicit GPIO writes with power
control library calls to turn on Vperiph during LIS3DH
initialization.

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
platform/mulle/power-control: Move board definitions into separate file.

power-control-board.h now contains all the hardware specific register names
and addresses.
power-control.h only contains the function declarations.

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
platform/mulle: Move Vperiph power on from device driver to platform bring up.

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
platform/mulle/contiki-conf.h: add parentheses.

Avoids silly build failures.

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
platform/mulle/lis3dh: minor comment wording change

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
platform/mulle: Move K60 cpu into ARM cpu directory.

Attempting to follow the layout of the rest of Contiki.

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
cpu/arm/k60/mulle.ld: Cleaned up and added C++ sections.

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