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 e7702bb0e2 Manual merge of remotefs/ into trunk. Tested with the simulator and (partially) on a ET-STM32 board. Other changes:
- FAT changed to support the new opendir/readdir/closedir mechanism, and to use lseek directly instead of ioctl (also fixed a bug in FAT's lseek that always returned 0 instead of file position).
- ET-STM32 console moved to UART2@19200bps (to allow RFS to run on UART0). If UART0 is needee for console, remember to disable RFS.
- freed 700+ bytes of RAM by changing the devman implementation to keep pointers instead of actual DM_DEVICE structures
- other minor code changes and fixes
2010-02-01 18:47:41 +00:00

27 lines
610 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_UART_INFINITE_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 )( s32 to );
// STD functions
void std_set_send_func( p_std_send_char pfunc );
void std_set_get_func( p_std_get_char pfunc );
const DM_DEVICE* std_get_desc();
#endif