Igor Skochinsky / Mbed 2 deprecated DriverLibrary

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

TIM_Private_Functions

TIM_Private_Functions
[TIM]

Functions

uint32_t TIM_GetPClock (uint32_t timernum)
 Get peripheral clock of each timer controller.
uint32_t TIM_ConverUSecToVal (uint32_t timernum, uint32_t usec)
 Convert a time to a timer count value.
uint32_t TIM_ConverPtrToTimeNum (LPC_TIM_TypeDef *TIMx)
 Convert a timer register pointer to a timer number.

Function Documentation

uint32_t TIM_ConverPtrToTimeNum ( LPC_TIM_TypeDef *  TIMx )

Convert a timer register pointer to a timer number.

Parameters:
[in]TIMxPointer to a timer register set
Returns:
The timer number (0 to 3) or -1 if register pointer is bad

Definition at line 106 of file lpc17xx_timer.c.

uint32_t TIM_ConverUSecToVal ( uint32_t  timernum,
uint32_t  usec 
)

Convert a time to a timer count value.

Parameters:
[in]timernumTimer number
[in]usecTime in microseconds
Returns:
The number of required clock ticks to give the time delay

Definition at line 89 of file lpc17xx_timer.c.

uint32_t TIM_GetPClock ( uint32_t  timernum )

Get peripheral clock of each timer controller.

Parameters:
[in]timernumTimer number
Returns:
Peripheral clock of timer

Definition at line 58 of file lpc17xx_timer.c.