[$is_event_jimu] 2 [$group_e] 元件事件库.脉冲累计计数器 [$group_e2] 计数事件库.脉冲累计计数器 [$group] 元件库-测量器.$pname$ [$last_ver_update_time] 2021-04-03 [$min_need_ver] 1.23 [$p_list] [$short_show_UIname] [$code_area_type] codes,exe_per_1ms,init_code [$blocks_type] [$name] 累计脉冲计数的初始化积木 [$引脚占用列表,用于提示冲突] [$寄存器占用列表,用于提示冲突,但=>后的值没变则不提示冲突] [$中断函数号占用列表,用于提示冲突] [$thread_do] [$cs] [$shared_func_In_main_c] [$function_ref_define_in_headfile] @@file=maichong_counter2.h extern u32 last_count_puls_$rnd_varname_pre$; void a_t_callback_$rnd_varname_pre$(); [$replace_map] $_xgm$extline = $field$extline ,mytype|num, ptype|TIMES $_xgm$port = $field$port ,mytype|num, ptype|TIMES $_xgm$mode = $field$mode ,mytype|num, ptype|TIMES [$init_code_for_define_area] @@file=maichong_counter2.c u32 last_count_puls_$rnd_varname_pre$=0; void a_t_callback_$rnd_varname_pre$(){ //外部中断的回调 last_count_puls_$rnd_varname_pre$++; } [$init_code_for_define_area_once] @@file=maichong_counter2.c [$init_code_for_init_val] TT_init_from_jimu( [($_xgm$extline),type=num] , [($_xgm$port),type=num] ,[($_xgm$mode),type=num] ); TT_reg_callback_for_extline_use_timer_enum( [($_xgm$extline),type=num] ,a_t_callback_$rnd_varname_pre$ ); last_count_puls_$rnd_varname_pre$=0; [$timer0_1ms_code] [$timer0_100us_code] [$run] [$toolbox_block_code]