2019-01-09 23:06:29 +01:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2019 Bas Stottelaar <basstottelaar@gmail.com>
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2023-01-13 01:09:51 +01:00
|
|
|
* @ingroup sys_stdio_null
|
2019-01-09 23:06:29 +01:00
|
|
|
* @{
|
|
|
|
*
|
|
|
|
* @file
|
|
|
|
* @brief STDIO null driver
|
|
|
|
*
|
|
|
|
* This file provides a null driver for STDIO that does not depend on anything.
|
|
|
|
*
|
|
|
|
* @author Bas Stottelaar <basstottelaar@gmail.com>
|
|
|
|
*
|
|
|
|
* @}
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "stdio_base.h"
|
|
|
|
|
|
|
|
#define ENABLE_DEBUG 0
|
|
|
|
#include "debug.h"
|
|
|
|
|
2023-06-14 17:25:48 +02:00
|
|
|
static ssize_t _write(const void* buffer, size_t len)
|
2019-01-09 23:06:29 +01:00
|
|
|
{
|
|
|
|
(void) buffer;
|
|
|
|
(void) len;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2023-06-14 17:25:48 +02:00
|
|
|
|
|
|
|
STDIO_PROVIDER(STDIO_NULL, NULL, NULL, _write)
|