1
0
mirror of https://github.com/elua/elua.git synced 2025-01-08 20:56:17 +08:00
elua/inc/newlib/genstd.h
Bogdan Marinescu a199d47615 Changed FS registration mechanism
Now it's possible to have more than one instance of a given file
system. For example, one could use more that one ROM file system
in different physical locations (a possible configuration is
internal Flash and external serial memories). This mechanism is
currently implemented only in the device manager (devman.c),
actual instance implementation require per-FS support (to be
implemented later).
2012-06-17 14:04:51 +03:00

27 lines
605 B
C

// stdio/stdout/stderr and generic console support
#ifndef __GENSTD_H__
#define __GENSTD_H__
#include "type.h"
#include "devman.h"
#include "platform.h"
// STD device name (for devman)
#define STD_DEV_NAME "/std"
#define STD_INFINITE_TIMEOUT PLATFORM_TIMER_INF_TIMEOUT
#define STD_INTER_CHAR_TIMEOUT 10000
// Send/receive function types
typedef void ( *p_std_send_char )( int fd, char c );
typedef int ( *p_std_get_char )( timer_data_type to );
// STD functions
void std_set_send_func( p_std_send_char pfunc );
void std_set_get_func( p_std_get_char pfunc );
int std_register();
#endif