1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/sys/auto_init.c
Oliver Hahm fb1cb91c75 [board/msp-430-common board/msba2 core/]
* introduced dummy function for msp-430 config-save
* moved sysconfig from board to core

[sys/transceiver cpu/]
* moved some buffer size defines to cpu dependent parts

* some cleanups
2010-12-03 18:42:03 +01:00

50 lines
966 B
C

#include <stdint.h>
#include <stdio.h>
#include <board_uart0.h>
#ifdef MODULE_RTC
#include <lpc2387-rtc.h>
#endif
#include <auto_init.h>
#define ENABLE_DEBUG
#include <debug.h>
extern void main(void);
void auto_init(void) {
#ifdef MODULE_HWTIMER
DEBUG("Auto init hwtimer module.\n");
hwtimer_init();
#endif
#ifdef MODULE_SWTIMER
DEBUG("Auto init swtimer module.\n");
swtimer_init();
#endif
#ifdef MODULE_UART0
DEBUG("Auto init uart0 module.\n");
board_uart0_init();
#endif
#ifdef MODULE_RTC
DEBUG("Auto init rtc module.\n");
rtc_init();
rtc_enable();
#endif
#ifdef MODULE_SHT11
DEBUG("Auto init SHT11 module.\n");
sht11_init();
#endif
#ifdef MODULE_GPIOINT
DEBUG("Auto init gpioint module.\n");
gpioint_init();
#endif
#ifdef MODULE_CC110X
DEBUG("Auto init CC1100 module.\n");
cc1100_init();
#endif
#ifdef MODULE_LTC4150
DEBUG("Auto init ltc4150 module.\n");
ltc4150_init();
#endif
main();
}