NXP's driver library for LPC17xx, ported to mbed's online compiler. Not tested! I had to fix a lot of warings and found a couple of pretty obvious bugs, so the chances are there are more. Original: http://ics.nxp.com/support/documents/microcontrollers/zip/lpc17xx.cmsis.driver.library.zip

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

lpc17xx_timer.c File Reference

lpc17xx_timer.c File Reference

: Contains all functions support for Timer firmware library on LPC17xx More...

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

Software that is described herein is for illustrative purposes only which provides customers with programming information regarding the products. This software is supplied "AS IS" without any warranties. NXP Semiconductors assumes no responsibility or liability for the use of the software, conveys no license or title under any patent, copyright, or mask work right to the product. NXP Semiconductors reserves the right to make changes in the software without notification. NXP Semiconductors also make no representation or warranty that such application will be suitable for the specified use without further testing or modification.

Definition in file lpc17xx_timer.c.