mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
2362623490
Fixes #1138
50 lines
1.2 KiB
C
50 lines
1.2 KiB
C
/*
|
|
* Copyright (C) 2014 Freie Universität Berlin
|
|
*
|
|
* This file is subject to the terms and conditions of the GNU Lesser General
|
|
* Public License. See the file LICENSE in the top level directory for more
|
|
* details.
|
|
*/
|
|
|
|
/**
|
|
* @ingroup core_arch
|
|
* @{
|
|
*
|
|
* @file io_arch.h
|
|
* @brief Architecture dependent interface for the standard output
|
|
*
|
|
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
|
|
*/
|
|
|
|
#ifndef __IO_ARCH_H
|
|
#define __IO_ARCH_H
|
|
|
|
/**
|
|
* @brief Define mapping between kernel internal and arch interfaces
|
|
*
|
|
* This mapping is done for compatibility of existing platforms,
|
|
* new platforms should always use the *_arch_* interfaces.
|
|
* @{
|
|
*/
|
|
#ifdef COREIF_NG
|
|
#define fw_puts io_arch_puts
|
|
#endif
|
|
/** @} */
|
|
|
|
/**
|
|
* @brief Write a number of characters to the std-out
|
|
*
|
|
* The stdout is on most platforms mapped to the UART0. This is however only a
|
|
* weak convention and must not be true for all platforms.
|
|
*
|
|
* @param[in] data the data that is to be written
|
|
* @param[in] count the number of bytes to write
|
|
*
|
|
* @return the number of bytes that were actually written
|
|
*/
|
|
int io_arch_puts(char *data, int count);
|
|
|
|
|
|
#endif /* __IO_ARCH_H */
|
|
/** @} */
|