megajohn (10.02.2010 13:22, просмотров: 171) ответил koyodza на ещё вопрос: как лучше сделать таблицу ссылок на данные?
были такие же мысли, делал так [+]
u16 *group_lw_edited5_p[] =
{
&base.w_capture_pot_ts, // 50
&base.w_lift_height_after_capture, // 51
&pars.w_dummy, // 52
&base.w_delay_lift_without_pots, // 53
&base.w_lift_height_paper, // 54
&base.w_descent_en_diff, // 55
&base.w_delay_pendulum_up, // 56
&base.w_delay_drop_pots_ts, // 57
&base.w_pendulum_max_ts, // 58
&pars.w_dummy, // 59
};
u16 *group_lw_show_p[] =
{
&pars.count_pots, // 80
&stat.water_total_cnt, // 81
&stat.pot_total_cnt, // 82
&pars.water_session_cnt, // 83
&pars.pot_session_cnt, // 84
&pendulum_curr_clk_, // 85
&caret_pos_curr_clk_, // 86
&caret_pos_need_clk_, // 87
};
////////////////////////////////////////////////////////////////////////////////
Tmenu_item PGM menu[] =
{
MENU_GROUP_LW( edited, 60, 69, group_lw_edited5_p, NULL ),
MENU_GROUP_LW( only_show, 80, 87, group_lw_show_p, NULL ),
MENU_END(),
};
mt50x_init( menu, 2, BR57600, F8N2 );