uc-sdk
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
lpc17xx_systick.h File Reference

Contains all macro definitions and function prototypes support for SYSTICK firmware library on LPC17xx. More...

#include "LPC17xx.h"
#include "lpc_types.h"

Go to the source code of this file.

Macros

#define ST_CTRL_ENABLE   ((uint32_t)(1<<0))
 
#define ST_CTRL_TICKINT   ((uint32_t)(1<<1))
 
#define ST_CTRL_CLKSOURCE   ((uint32_t)(1<<2))
 
#define ST_CTRL_COUNTFLAG   ((uint32_t)(1<<16))
 
#define ST_RELOAD_RELOAD(n)   ((uint32_t)(n & 0x00FFFFFF))
 
#define ST_RELOAD_CURRENT(n)   ((uint32_t)(n & 0x00FFFFFF))
 
#define ST_CALIB_TENMS(n)   ((uint32_t)(n & 0x00FFFFFF))
 
#define ST_CALIB_SKEW   ((uint32_t)(1<<30))
 
#define ST_CALIB_NOREF   ((uint32_t)(1<<31))
 
#define CLKSOURCE_EXT   ((uint32_t)(0))
 
#define CLKSOURCE_CPU   ((uint32_t)(1))
 

Functions

void SYSTICK_InternalInit (uint32_t time)
 
void SYSTICK_ExternalInit (uint32_t freq, uint32_t time)
 
void SYSTICK_Cmd (FunctionalState NewState)
 
void SYSTICK_IntCmd (FunctionalState NewState)
 
uint32_t SYSTICK_GetCurrentValue (void)
 
void SYSTICK_ClearCounterFlag (void)
 

Detailed Description

Contains all macro definitions and function prototypes support for SYSTICK firmware library on LPC17xx.

Version
2.0
Date
21. May. 2010
Author
NXP MCU SW Application Team

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_systick.h.