コード例 #1
0
static void icuwidthcb(ICUDriver *icup) {
  palSetPad(IOPORT3,10);
  last_width = icuGetWidthI(icup);
  icu_ch[radio_count] = last_width;
  radio_count += 1;
  if(radio_count == 4) radio_count=0;  
}
コード例 #2
0
static void icuwidthcb(ICUDriver *icup) {
  palSetPad(IOPORT3,10);
  last_width = icuGetWidthI(icup);
  if(last_width > 5000) frame_flag = 1;
  else if((frame_flag >= 1) && (frame_flag <= 9))
  {
	icu_ch[frame_flag - 1] = last_width;
	frame_flag += 1;
  }
 
  if(frame_flag == 9) frame_flag=0;  
}
コード例 #3
0
ファイル: main.c プロジェクト: Ankhbayar/mlab-chibios
static void icuwidthcb(ICUDriver *icup) {

  last_width = icuGetWidthI(icup);
}
コード例 #4
0
ファイル: main.c プロジェクト: Ozhvankov/STM32-GPS-Tracker
static void icuwidthcb(ICUDriver *icup) {

  palSetPad(GPIOD, GPIOD_LED4);
  last_width = icuGetWidthI(icup);
}