2014-02-02 16:48:18 +01:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2014 Freie Universität Berlin
|
|
|
|
*
|
2014-07-31 19:45:27 +02:00
|
|
|
* 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.
|
2014-02-02 16:48:18 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @ingroup cpu
|
|
|
|
* @{
|
|
|
|
*
|
2015-05-22 07:34:41 +02:00
|
|
|
* @file
|
2014-02-02 16:48:18 +01:00
|
|
|
* @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();
|
|
|
|
}
|