93 extern struct st_tcb *run_task;
112 con_out_dev = (
struct st_device *)out_dev;
137 int cputs(
unsigned char *str,
unsigned int len)
144 for(i=0; i<len; i++) {
175 int cgets(
unsigned char *str,
unsigned int count)
257 con_err_dev = (
struct st_device *)err_dev;
267 int eputs(
unsigned char *str,
unsigned int len)
274 for(i=0; i<len; i++) {
struct st_device * con_err_dev
デフォルトエラー出力デバイス
struct st_device * con_in_dev
デフォルト標準入力デバイス
void register_console_out_dev(const struct st_device *out_dev)
システム標準のコンソール出力デバイスを登録する
void register_console_in_dev(const struct st_device *in_dev)
システム標準のコンソール入力デバイスを登録する
void set_console_out_device_ISR(struct st_device *dev)
標準出力デバイスを設定する
int write_device(struct st_device *dev, const void *buf, unsigned int count)
デバイスにデータを書き込む
int read_device(struct st_device *dev, void *buf, unsigned int count)
デバイスよりデータを読み出す
int eputs(unsigned char *str, unsigned int len)
エラー出力より文字列を出力する
struct st_device * stdin_dev
タスク標準入力デバイス
int cwait(unsigned int timeout)
標準入力より入力を待つ
int cgetcnw(unsigned char *rd)
標準入力より1文字を取得する(待ち無し)
struct st_device * stdout_dev
タスク標準出力デバイス
int cputs(unsigned char *str, unsigned int len)
標準出力より文字列を出力する
int getc_device(struct st_device *dev, unsigned char *data)
デバイスよりデータを1バイト読み出す
void register_error_out_dev(const struct st_device *err_dev)
システム標準のエラー出力デバイスを登録する
int putc_device(struct st_device *dev, unsigned char data)
デバイスにデータを1バイト書き込む
void set_console_in_device_ISR(struct st_device *dev)
標準入力デバイスを設定する
int cputc(unsigned char td)
標準出力より1文字を出力する
struct st_device * con_out_dev
デフォルト標準出力デバイス
struct st_device * error_dev
タスクエラー出力デバイス
int cgetc(unsigned char *rd)
標準入力より1文字を取得する
int select_device(struct st_device *dev, unsigned int timeout)
デバイスのアクセス準備完了を待つ
void set_error_out_device_ISR(struct st_device *dev)
エラー出力デバイスを設定する
void init_console_device(void)
全てのコンソール入出力デバイスを初期化する
int cgets(unsigned char *str, unsigned int count)
標準入力より文字列を取得する