keil_examples/timer/timer.c
/******************************************************************************
** Function name:		disable_timer
**
** Descriptions:		Disable timer
**
** parameters:			timer number: 0 or 1 oe 2 or 3
** Returned value:		None
** 
******************************************************************************/
Function name:         disable_timer
Descriptions:          Disable timer

timer number: 0 or 1 oe 2 or 3
Returned value:                None
Function name : disable_timer Descriptions : Disable timer timer number : 0 or 1 oe 2 or 3 Returned value : None
void disable_timer( uint8_t timer_num )
{
  if ( timer_num == 0 )
  {
	LPC_TIM0->TCR = 0;
  }
  else if ( timer_num == 1 )
  {
	LPC_TIM1->TCR = 0;
  }
  else if ( timer_num == 2 )
  {
	LPC_TIM2->TCR = 0;
  }
  else if ( timer_num == 3 )
  {
	LPC_TIM2->TCR = 0;
  }
  return;
}
void disable_timer ( uint8_t timer_num ) { if ( timer_num == 0 ) { LPC_TIM0 -> TCR = 0 ; } else if ( timer_num == 1 ) { LPC_TIM1 -> TCR = 0 ; } else if ( timer_num == 2 ) { LPC_TIM2 -> TCR = 0 ; } else if ( timer_num == 3 ) { LPC_TIM2 -> TCR = 0 ; } return ; }
Function name:         disable_timer
Descriptions:          Disable timer
Function name : disable_timer Descriptions : Disable timer