mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
ac6d4788eb
* cosmetics in ltc4150 driver
39 lines
611 B
C
39 lines
611 B
C
/*
|
|
* Copyright (C) 2008, 2009, 2010 Kaspar Schleiser <kaspar@schleiser.de>
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
|
|
#include <posix_io.h>
|
|
#include <ltc4150.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);
|
|
ltc4150_start();
|
|
|
|
puts("Welcome to ukleos!");
|
|
|
|
shell_t shell;
|
|
shell_init(&shell, NULL, shell_readc, shell_putchar);
|
|
|
|
shell_run(&shell);
|
|
|
|
return 0;
|
|
}
|
|
|
|
|