#ifndef __SCI_H__ #define __SCI_H__ /* * SCIをコントロールするルーチン * * @author fenrir (M.Naruoka) * @since 04/06/04 * @version 1.0 */ #ifdef __cplusplus extern "C" { #endif /* SCI0 */ #ifndef SCI0_DISABLE #ifndef SCI0_TX_BUFFER_SIZE #define SCI0_TX_BUFFER_SIZE 16 #endif #ifndef SCI0_RX_BUFFER_SIZE #define SCI0_RX_BUFFER_SIZE 16 #endif void sci0_init(); int sci0_write(char *data, int size); int sci0_read(char *c, int size); int sci0_tx_size(); int sci0_rx_size(); #endif /* ! SCI0_DISABLE */ /* SCI1 */ #ifndef SCI1_DISABLE #ifndef SCI1_TX_BUFFER_SIZE #define SCI1_TX_BUFFER_SIZE 1024 #endif #ifndef SCI1_RX_BUFFER_SIZE #define SCI1_RX_BUFFER_SIZE 128 #endif void sci1_init(); int sci1_write(char *data, int size); int sci1_read(char *c, int size); int sci1_tx_size(); int sci1_rx_size(); #endif /* ! SCI1_DISABLE */ /* SCI2 */ #ifndef SCI2_DISABLE #ifndef SCI2_TX_BUFFER_SIZE #define SCI2_TX_BUFFER_SIZE 128 #endif #ifndef SCI2_RX_BUFFER_SIZE #define SCI2_RX_BUFFER_SIZE 1024 #endif void sci2_init(); int sci2_write(char *data, int size); int sci2_read(char *c, int size); int sci2_tx_size(); int sci2_rx_size(); #endif /* ! SCI2_DISABLE */ #ifdef __cplusplus }; #endif #endif /* __SCI_H__ */