2014-06-11 14:59:24 +02:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2014 Freie Universität Berlin
|
|
|
|
*
|
|
|
|
* This file is subject to the terms and conditions of the GNU Lesser General
|
|
|
|
* Public License v2.1. See the file LICENSE in the top level directory for more
|
|
|
|
* details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2015-08-19 20:59:06 +02:00
|
|
|
* @ingroup boards_iotlab-m3
|
2014-06-11 14:59:24 +02:00
|
|
|
* @{
|
|
|
|
*
|
2015-05-22 07:34:41 +02:00
|
|
|
* @file
|
2015-08-19 20:59:06 +02:00
|
|
|
* @brief Board specific implementations for the iotlab-m3 board
|
2014-06-11 14:59:24 +02:00
|
|
|
*
|
2014-07-03 10:36:46 +02:00
|
|
|
* @author Thomas Eichinger <thomas.eichinger@fu-berlin.de>
|
2014-06-11 14:59:24 +02:00
|
|
|
*
|
|
|
|
* @}
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "board.h"
|
2016-03-11 18:03:07 +01:00
|
|
|
#include "periph/gpio.h"
|
2014-06-11 14:59:24 +02:00
|
|
|
|
|
|
|
void board_init(void)
|
|
|
|
{
|
|
|
|
/* initialize the CPU */
|
|
|
|
cpu_init();
|
|
|
|
|
2016-03-11 18:03:07 +01:00
|
|
|
/* initialize the boards LEDs and turn them off */
|
2016-03-17 14:54:05 +01:00
|
|
|
gpio_init(LED0_PIN, GPIO_OUT);
|
|
|
|
gpio_init(LED1_PIN, GPIO_OUT);
|
|
|
|
gpio_init(LED2_PIN, GPIO_OUT);
|
2016-03-11 18:03:07 +01:00
|
|
|
gpio_set(LED0_PIN);
|
|
|
|
gpio_set(LED1_PIN);
|
|
|
|
gpio_set(LED2_PIN);
|
2014-06-11 14:59:24 +02:00
|
|
|
}
|