C:/nxpdrv/LPC1700CMSIS/Drivers/source/lpc17xx_timer.c File Reference
: Contains all functions support for Timer firmware library on LPC17xx More...
#include "lpc17xx_timer.h"
#include "lpc17xx_clkpwr.h"
#include "lpc17xx_pinsel.h"
#include "lpc17xx_libcfg_default.h"
Go to the source code of this file.
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. | |
FlagStatus | TIM_GetIntStatus (LPC_TIM_TypeDef *TIMx, uint8_t IntFlag) |
Get Interrupt Status. | |
FlagStatus | TIM_GetIntCaptureStatus (LPC_TIM_TypeDef *TIMx, uint8_t IntFlag) |
Get Capture Interrupt Status. | |
void | TIM_ClearIntPending (LPC_TIM_TypeDef *TIMx, uint8_t IntFlag) |
Clear Interrupt pending. | |
void | TIM_ClearIntCapturePending (LPC_TIM_TypeDef *TIMx, uint8_t IntFlag) |
Clear Capture Interrupt pending. | |
void | TIM_ConfigStructInit (uint8_t TimerCounterMode, void *TIM_ConfigStruct) |
Configuration for Timer at initial time. | |
void | TIM_Init (LPC_TIM_TypeDef *TIMx, uint8_t TimerCounterMode, void *TIM_ConfigStruct) |
Initial Timer/Counter device Set Clock frequency for Timer Set initial configuration for Timer. | |
void | TIM_DeInit (LPC_TIM_TypeDef *TIMx) |
Close Timer/Counter device. | |
void | TIM_Cmd (LPC_TIM_TypeDef *TIMx, FunctionalState NewState) |
Start/Stop Timer/Counter device. | |
void | TIM_ResetCounter (LPC_TIM_TypeDef *TIMx) |
Reset Timer/Counter device, Make TC and PC are synchronously reset on the next positive edge of PCLK. | |
void | TIM_ConfigMatch (LPC_TIM_TypeDef *TIMx, TIM_MATCHCFG_Type *TIM_MatchConfigStruct) |
Configuration for Match register. | |
void | TIM_ConfigCapture (LPC_TIM_TypeDef *TIMx, TIM_CAPTURECFG_Type *TIM_CaptureConfigStruct) |
Configuration for Capture register. | |
uint32_t | TIM_GetCaptureValue (LPC_TIM_TypeDef *TIMx, uint8_t CaptureChannel) |
Read value of capture register in timer/counter device. |
Detailed Description
: Contains all functions support for Timer firmware library on LPC17xx
- Version:
- : 1.0
- Date:
- : 14. April. 2009
- Author:
- : HieuNguyen
Definition in file lpc17xx_timer.c.
Generated on Mon Feb 8 10:01:42 2010 for LPC1700CMSIS Standard Peripheral Firmware Library by 1.5.9