1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/sys/include/board_uart0.h
2014-11-21 13:09:02 +01:00

46 lines
918 B
C

/*
* Copyright (C) 2010 Freie Universität Berlin
*
* 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.
*/
/**
* @defgroup sys_uart0 UART0
* @ingroup sys
* @brief UART0 interface abstraction
* @{
*
* @file board_uart0.h
* @brief Interface definitions for the UART0 abstraction
*/
#ifndef __BOARD_UART0_H
#define __BOARD_UART0_H
#include "kernel_types.h"
#include "cpu-conf.h" /* To give user access to UART0_BUFSIZE */
#ifdef __cplusplus
extern "C" {
#endif
extern kernel_pid_t uart0_handler_pid;
void board_uart0_init(void);
void uart0_handle_incoming(int c);
void uart0_notify_thread(void);
int uart0_readc(void);
void uart0_putc(int c);
int uart0_puts(char *astring, int length);
#ifdef __cplusplus
}
#endif
/** @} */
#endif /* __BOARD_UART0_H */