int error; /**< オプション指定エラー検出フラグ。 */
} user_option_t;
-#define USER_OPTION_INITIALIZER \
-{ \
- .cpu_name = "\0", \
- .cpu_freq = 20, \
- .mot_file = "\0", \
- .serial_port = "\0", \
- .version = 0, \
- .help = 0, \
- .debug = 0, \
- .error = 0, \
-}
-
#define USER_OPTION_CPU_NAME(P) ((P)->cpu_name)
#define USER_OPTION_CPU_FREQ(P) ((P)->cpu_freq)
#define USER_OPTION_MOT_FILE(P) ((P)->mot_file)
SERIAL *serial = NULL;
enum ErrorCode ec = NoError;
uint32_t devcode = 0;
- user_option_t user_option = USER_OPTION_INITIALIZER;
+ user_option_t user_option;
/*
* バナーを表示する。