examples/rpl-border-router: Fix two minor warnings.

 - Remove unused variable i in generate_routes.
 - Add cast to unsigned long for printf(..%lu..) in generate_routes.

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
platform/mulle: Added Mulle platform.

This is the first commit of a port for Eistec's new Mulle platform.

The new Mulle is based on a Freescale Kinetis K60 (ARM Cortex M4) and
has some on board peripherals:

- Atmel AT86RF212 (rf230) radio
- FM25L04B 4 Kbit FRAM
- M25P16 16 MBit flash memory
- LIS3DH accelerometer
- LiPo battery charging circuit

Maintainer for the new port is Joakim Gebart <joakim.gebart@eistec.se>

See http://www.eistec.se or info@eistec.se for more information about
hardware and software.
Fixed tool installation scripts.
Added linkerscript.
Added startup code.
Added gdb init file.
Added config file for openocd.
Fixed some paths.
Fixed so that objects are not recompiled everytime.
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>