system.h

来自「NEC 的无线通讯方案」· C头文件 代码 · 共 45 行

H
45
字号
/*
* $Id: system.h,v 1.5 2007/08/17 06:21:52 sunny Exp $
*/
/*
*******************************************************************************
**
**  This device driver was created by Applilet for the 78K0/KB2, 78K0/KC2,
**  78K0/KD2, 78K0/KE2 and 78K0/KF2 8-Bit Single-Chip Microcontrollers.
**
**  Copyright(C) NEC Electronics Corporation 2002 - 2005
**  All rights reserved by NEC Electronics Corporation.
**
**  This program should be used on your own responsibility.
**  NEC Electronics Corporation assumes no responsibility for any losses
**  incurred by customers or third parties arising from the use of this file.
**
**  Filename :	system.h
**  Abstract :	This file implements device driver for SYSTEM module.
**  APIlib :	NEC78K0KX2.lib V1.01 [09 Aug. 2005]
**
**  Device :	uPD78F0537
**
**  Compiler :	NEC/CC78K0
**
*******************************************************************************
*/
#ifndef	_MDSYSTEM_
#define	_MDSYSTEM_
/*
*******************************************************************************
**  MacroDefine
*******************************************************************************
*/
#define	CG_X1STAB_SEL	0x5
#define	CG_X1STAB_STA	0x1f
#define	CG_CPU_CLOCKSEL	0x0

enum CPUClock { SystemClock, Sys_Half, Sys_Quarter, Sys_OneEighth, Sys_OneSixteen, Sys_SubClock };
enum PSLevel { PS_STOP, PS_HALT };
enum StabTime { ST_Level0, ST_Level1, ST_Level2, ST_Level3, ST_Level4 };

void  Clock_Init( void );

#endif

⌨️ 快捷键说明

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