static void timer_b_interrupt(void) { //char tmp[128]; time_count++; if(debug_timer == 1 && time_count % 10 == 0) { if(debug_timer_pwm == 0) { debug_timer_pwm = 1; open_pwm(irreceiver_data->pwm_no);;//on } else { debug_timer_pwm = 0; close_pwm(irreceiver_data->pwm_no);//off } } if(shot_time !=0 && (time_count*10) >= shot_time) { //sprintf(tmp, "[%lu][%lu]", shot_time, time_count*10); //strcat(logbuf, tmp); oneshot_event(); } }
static void timer_b_interrupt(void) { char tmp[128]; time_count++; if(shot_time !=0 && (time_count*10) >= shot_time) { //sprintf(tmp, "[%lu][%lu]\n", shot_time, time_count*10); strcat(logbuf, tmp); oneshot_event(); } }
static enum hrtimer_restart timer_hr_interrupt(struct hrtimer *timer) { oneshot_event(); return HRTIMER_NORESTART; }