Add board_capture.c ,h  for TIM 2. Should be rewrite.