然后定义一堆结构体数组struct MenuItem MainMenu[4] =
{
{4,(unsigned char *)"1.获取CPU频率 ",&NULL_Function,&MENU_NULL,&MENU_NULL},
{4,(unsigned char *)"2.获取时间 ",&NULL_Function,&MENU_NULL,&MENU_NULL},
{4,(unsigned char *)"3.波特率设置 ",&NULL_Function,Baudrate,&MENU_NULL},
{4,(unsigned char *)"4.系统设置 ",&NULL_Function,&MENU_NULL,&MENU_NULL},
};
struct MenuItem MailMenu[4] =
{
{4,(unsigned char *)"1.收件箱",&NULL_Function,&MENU_NULL,&MENU_NULL},
{4,(unsigned char *)"2.发件箱",&NULL_Function,&MENU_NULL,&MENU_NULL},
{4,(unsigned char *)"3.写新邮件",&NULL_Function,Baudrate,&MENU_NULL},
{4,(unsigned char *)"4.邮箱设置",&NULL_Function,&MENU_NULL,&MENU_NULL},
};
|