2014-02-02 16:48:18 +01:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2014 Freie Universität Berlin
|
|
|
|
*
|
|
|
|
* This file is subject to the terms and conditions of the GNU Lesser General
|
|
|
|
* Public License. See the file LICENSE in the top level directory for more
|
|
|
|
* details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @ingroup cpu
|
|
|
|
* @{
|
|
|
|
*
|
|
|
|
* @file startup.c
|
|
|
|
* @brief Calls startup functions on MSP430-based platforms
|
|
|
|
*
|
|
|
|
* @author Kaspar Schleiser <kaspar@schleiser.de>
|
|
|
|
* @author Oliver Hahm <oliver.hahm@inria.fr>
|
|
|
|
*
|
|
|
|
* @}
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "irq.h"
|
2010-09-22 15:10:42 +02:00
|
|
|
#include <stdio.h>
|
2013-12-16 17:54:58 +01:00
|
|
|
#include "kernel_internal.h"
|
2010-09-22 15:10:42 +02:00
|
|
|
|
2013-02-11 22:10:03 +01:00
|
|
|
extern void board_init(void);
|
2010-09-22 15:10:42 +02:00
|
|
|
|
2013-06-21 03:52:57 +02:00
|
|
|
__attribute__((constructor)) static void startup(void)
|
|
|
|
{
|
2010-09-22 15:10:42 +02:00
|
|
|
/* use putchar so the linker links it in: */
|
|
|
|
putchar('\n');
|
|
|
|
|
|
|
|
board_init();
|
|
|
|
|
2013-03-07 20:51:26 +01:00
|
|
|
puts("RIOT MSP430 hardware initialization complete.\n");
|
2010-09-22 15:10:42 +02:00
|
|
|
|
|
|
|
kernel_init();
|
|
|
|
}
|