target.h

来自「nxp的ARM9处理器LPC3180代码,提供了几乎所有的外设示例程序.」· C头文件 代码 · 共 60 行

H
60
字号
/*****************************************************************************
 *   target.h:  Header file for Philips LPC318x Family Microprocessors
 *
 *   Copyright(C) 2006, Philips Semiconductor
 *   All rights reserved.
 *
 *   History
 *   2005.10.01  ver 1.00    Prelimnary version, first Release
 *
******************************************************************************/
#ifndef __TARGET_H 
#define __TARGET_H

#ifdef __cplusplus
   extern "C" {
#endif

//This segment should not be modified
#ifndef TRUE
#define TRUE  1
#endif

#ifndef FALSE
#define FALSE 0
#endif

#define CPU_OSC_FREQ	13000000

/* Fcck = 208Mhz */
#define PLL_M		0x0F
#define PLL_N		0x00
#define PLL_P		0x00

#define PERIPH_DIV	0x0F

#define CPU_CLK		((PLL_M + 1) * CPU_OSC_FREQ)/(PLL_N + 1)

/*****************************************************************************
** Function name:		TargetInit
**
** Descriptions:		Initialize the target board; it is called in a 
**				necessary place, change it as needed
**
** parameters:			None
** Returned value:		None
**
******************************************************************************/
extern void TargetInit(void);
extern void TargetResetInit( void );
extern void GpioResetInit( void );

#ifdef __cplusplus
   }
#endif
 
#endif /* end __TARGET_H */
/******************************************************************************
**                            End Of File
******************************************************************************/

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?