19 #ifdef GSC_COMP_ENABLE_FATFS 24 extern int open_lcdwindow(
int *argc,
char ***argv);
27 extern const struct st_device vconsole_device;
29 extern const struct st_device vlcd_device;
30 extern const struct st_device framebuf_device;
32 extern const struct st_device grconsole_device;
33 extern const struct st_device eventcon_device;
34 extern const struct st_device sound_device;
35 extern const struct st_device veeprom_device;
36 extern const struct st_device vmmc_device;
37 extern const struct st_device vaudio_device;
38 extern const struct st_device vether_device;
40 extern const struct st_device powerkey_device;
41 extern const struct st_device gbkey_device;
45 static const struct st_device *
const dev_list[] = {
47 #ifdef GSC_DEV_ENABLE_RTC 50 #ifdef GSC_COMP_ENABLE_GRAPHICS 53 #ifdef GSC_DEV_ENABLE_I2CEEPROM 56 #ifdef GSC_DEV_ENABLE_STORAGE 59 #ifdef GSC_DEV_ENABLE_AUDIO // $gsc オーディオデバイスを有効にする 62 #ifdef GSC_DEV_ENABLE_ETHER // $gsc Etherデバイスを有効にする 68 #ifdef GSC_COMP_ENABLE_FATFS 70 static const char *
const storade_devices[] = {
78 #ifdef GSC_COMP_ENABLE_GRAPHICS 79 open_lcdwindow(argc, argv);
83 static void register_devices(
const struct st_device *
const list[])
88 register_device(*dev, 0);
96 register_devices(dev_list);
102 #ifdef GSC_DEV_ENABLE_RTC 109 #ifdef GSC_COMP_ENABLE_GRAPHICS // $gsc グラフィック描画を有効にする 113 #ifdef GSC_DEV_ENABLE_GRCONSOLE // $gsc グラフィックデバイス用コンソール出力を有効にする 114 register_device(&grconsole_device, 0);
119 #ifdef GSC_LIB_ENABLE_RANDOM 123 #ifdef GSC_DEV_ENABLE_NULL 125 register_device(&null_device, 0);
131 #ifdef GSC_COMP_ENABLE_FATFS // $gsc FATFSを有効にする 139 void init_syscalltbl(
void)
143 void reset_system(
void)
int register_storage_device(const char *const device_name[])
ストレージデバイスをリストでマウントする
画像表示デバイスドライバ ioctl 用マクロ定義
void init_system_process(void)
タスク起動後の初期化処理
void init_system_drivers(void)
基本ドライバ初期化後に登録するユーザドライバ登録処理
#define DEF_DEV_NAME_SD
標準ストレージデバイス名(MMC,SD等)
int init_time(char *devname)
時計を初期する
void init_system(int *argc, char ***argv)
ドライバ初期化以前に行う初期化処理
void register_console_in_dev(const struct st_device *in_dev)
システム標準のコンソール入力デバイスを登録する
const struct st_device led_device
LEDドライバ
void init_file(void)
全てのファイルディスクリプタを初期化する
void register_console_out_dev(const struct st_device *out_dev)
システム標準のコンソール出力デバイスを登録する
struct st_device GSC_KERNEL_ERROUT_DEVICE
$gsc エラーメッセージ出力デバイス
ストレージデバイスドライバ ioctl 用マクロ定義
void register_error_out_dev(const struct st_device *err_dev)
システム標準のエラー出力デバイスを登録する
#define DEF_DEV_NAME_RTC
標準リアルタイムクロックデバイス名
void init_storage(void)
外部記憶装置管理初期化
#define DEF_DEV_NAME_VIDEO
標準ビデオデバイス名
void draw_enlarged_bitmap(short px, short py, struct st_bitmap *bitmap, int rate)
拡大したビットマップデータを描画する
int init_graphics(char *devname)
グラフィックスライブラリを初期化する
t_time get_systime_sec(void)
システム時間(秒)を取得する