1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00
RIOT/projects/default/main.c
Oliver Hahm 3b218ec24a * changed API for rtc
* added drivers directory to doxygen file
* added missing include to sht11 header
* added rtc and sht11 support to default project
* added rtc to auto_init
* added rtc and sht11 support to shell
2010-11-04 18:16:39 +01:00

37 lines
587 B
C

/*
* Copyright (C) 2008, 2009, 2010 Kaspar Schleiser <kaspar@schleiser.de>
*/
#include <stdio.h>
#include <string.h>
#include <posix_io.h>
#include <shell.h>
#include <shell_commands.h>
#include <board_uart0.h>
int shell_readc() {
char c = 0;
posix_read(uart0_handler_pid, &c, 1);
return c;
}
void shell_putchar(int c) {
putchar(c);
}
int main(void) {
posix_open(uart0_handler_pid, 0);
puts("Welcome to ukleos!");
shell_t shell;
shell_init(&shell, _shell_command_list, shell_readc, shell_putchar);
shell_run(&shell);
return 0;
}