예제 #1
0
static void icuperiodcb(ICUDriver *icup) {
  
  palSetPad(IOPORT3,10);
  last_period = icuGetPeriodI(icup);
  if(last_period > 5000) frame_flag = 1;
  if((frame_flag > 1) && (frame_flag <= 9))
  {
	icu_ch[frame_flag++ - 1] = (char) last_period;
		
  }
 
  if(frame_flag == 9) frame_flag=0; 

}
예제 #2
0
static void icuperiodcb(ICUDriver *icup) {

  last_period = icuGetPeriodI(icup);
}
예제 #3
0
static void icuperiodcb(ICUDriver *icup) {

  palClearPad(GPIOD, GPIOD_LED4);
  last_period = icuGetPeriodI(icup);
}