99 lines
		
	
	
		
			3.1 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			99 lines
		
	
	
		
			3.1 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
/**********************************************************************
 | 
						||
* $Id$		lpc43xx_atimer.h			2011-06-02
 | 
						||
*//**
 | 
						||
* @file		lpc43xx_atimer.h
 | 
						||
* @brief	Contains all functions support for Alarm Timer firmware
 | 
						||
* 			library on lpc43xx
 | 
						||
* @version	1.0
 | 
						||
* @date		02. June. 2011
 | 
						||
* @author	NXP MCU SW Application Team
 | 
						||
*
 | 
						||
* Copyright(C) 2011, NXP Semiconductor
 | 
						||
* All rights reserved.
 | 
						||
*
 | 
						||
***********************************************************************
 | 
						||
* 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.
 | 
						||
* Permission to use, copy, modify, and distribute this software and its
 | 
						||
* documentation is hereby granted, under NXP Semiconductors<72>
 | 
						||
* relevant copyright in the software, without fee, provided that it
 | 
						||
* is used in conjunction with NXP Semiconductors microcontrollers.  This
 | 
						||
* copyright, permission, and disclaimer notice must appear in all copies of
 | 
						||
* this code.
 | 
						||
**********************************************************************/
 | 
						||
 | 
						||
/* Peripheral group ----------------------------------------------------------- */
 | 
						||
/** @defgroup ATIMER ATIMER (Alarm Timer)
 | 
						||
 * @ingroup LPC4300CMSIS_FwLib_Drivers
 | 
						||
 * @{
 | 
						||
 */
 | 
						||
 | 
						||
#ifndef __lpc43xx_ATIMER_H_
 | 
						||
#define __lpc43xx_ATIMER_H_
 | 
						||
 | 
						||
/* Includes ------------------------------------------------------------------- */
 | 
						||
#include "LPC43xx.h"
 | 
						||
#include "lpc_types.h"
 | 
						||
 | 
						||
#ifdef __cplusplus
 | 
						||
extern "C"
 | 
						||
{
 | 
						||
#endif
 | 
						||
 | 
						||
/* Private Macros ------------------------------------------------------------- */
 | 
						||
/** @defgroup ATIMER_Private_Macros ALARM Timer Private Macros
 | 
						||
 * @{
 | 
						||
 */
 | 
						||
 | 
						||
/* ---------------- CHECK PARAMETER DEFINITIONS ---------------------------- */
 | 
						||
/** Macro to determine if it is valid ALARM TIMER peripheral */
 | 
						||
#define PARAM_ATIMERx(n)	(((uint32_t *)n)==((uint32_t *)LPC_ATIMER))
 | 
						||
 | 
						||
 | 
						||
/**
 | 
						||
 * @}
 | 
						||
 */
 | 
						||
 | 
						||
 | 
						||
/* Public Functions ----------------------------------------------------------- */
 | 
						||
/** @defgroup ATIMER_Public_Functions ATIMER Public Functions
 | 
						||
 * @{
 | 
						||
 */
 | 
						||
 | 
						||
 | 
						||
/* Init/DeInit ATIMER functions -----------*/
 | 
						||
void ATIMER_Init(LPC_ATIMER_Type *ATIMERx, uint32_t PresetValue);
 | 
						||
void ATIMER_DeInit(LPC_ATIMER_Type *ATIMERx);
 | 
						||
 | 
						||
/* ATIMER interrupt functions -------------*/
 | 
						||
void ATIMER_IntEnable(LPC_ATIMER_Type *ATIMERx);
 | 
						||
void ATIMER_IntDisable(LPC_ATIMER_Type *ATIMERx);
 | 
						||
void ATIMER_ClearIntStatus(LPC_ATIMER_Type *ATIMERx);
 | 
						||
void ATIMER_SetIntStatus(LPC_ATIMER_Type *ATIMERx);
 | 
						||
 | 
						||
/* ATIMER configuration functions --------*/
 | 
						||
void ATIMER_UpdatePresetValue(LPC_ATIMER_Type *ATIMERx,uint32_t PresetValue);
 | 
						||
uint32_t ATIMER_GetPresetValue(LPC_ATIMER_Type *ATIMERx);
 | 
						||
 | 
						||
/**
 | 
						||
 * @}
 | 
						||
 */
 | 
						||
#ifdef __cplusplus
 | 
						||
}
 | 
						||
#endif
 | 
						||
 | 
						||
#endif /* __lpc43xx_ATIMER_H_ */
 | 
						||
 | 
						||
/**
 | 
						||
 * @}
 | 
						||
 */
 | 
						||
 |