📄 cpu.h
字号:
/** ###################################################################
** THIS BEAN MODULE IS GENERATED BY THE TOOL. DO NOT MODIFY IT.
** Filename : Cpu.H
** Project : le4
** Processor : MC9RS08LE4CPC
** Beantype : MC9RS08LE4_28
** Version : Bean 01.003, Driver 01.05, CPU db: 3.00.000
** Datasheet : MC9RS08LE4RM Rev. 0 Draft C 8/2008
** Compiler : CodeWarrior RS08 C Compiler
** Date/Time : 19/2/2009, 18:21
** Abstract :
** This bean "MC9RS08LE4_28" contains initialization of the
** CPU and provides basic methods and events for CPU core
** settings.
** Settings :
**
** Contents :
** SetWaitMode - void Cpu_SetWaitMode(void);
** GetLowVoltageFlag - bool Cpu_GetLowVoltageFlag(void);
** ClearLowVoltageFlag - void Cpu_ClearLowVoltageFlag(void);
** Delay100US - void Cpu_Delay100US(word us100);
**
** (c) Copyright UNIS, a.s. 1997-2008
** UNIS, a.s.
** Jundrovska 33
** 624 00 Brno
** Czech Republic
** http : www.processorexpert.com
** mail : info@processorexpert.com
** ###################################################################*/
#ifndef __Cpu
#define __Cpu
/* Active configuration define symbol */
#define PEcfg_Debug_LE4CPC 1
/*Include shared modules, which are used for whole project*/
#include "PE_Types.h"
#include "PE_Error.h"
#include "PE_Const.h"
#include "IO_Map.h"
/* MODULE Cpu. */
#define CPU_BUS_CLK_HZ 0x000FF780UL /* Initial value of the bus clock frequency in Hz */
#define CPU_INSTR_CLK_HZ 0x000FF780UL /* Initial value of the instruction clock frequency in Hz */
#define CPU_INT_CLK_HZ 0x7FBCUL /* Value of the internal oscillator clock frequency in Hz */
#define CPU_TICK_NS 0x7775U /* CPU tick is a unit derived from the frequency of external clock source. If no external clock is enabled or available it is derived from the value of internal clock source. The value of this constant represents period of the clock source in ns. */
#define CPU_CORE_RS08 /* Specification of the core type of the selected cpu */
#define CPU_DERIVATIVE_MC9RS08LE4 /* Name of the selected cpu derivative */
#define CPU_PARTNUM_MC9RS08LE4CPC /* Part number of the selected cpu */
#define Cpu_ClearLowVoltageFlag() (SPMSC1_LVDACK = 1)
/*
** ===================================================================
** Method : Cpu_ClearLowVoltageFlag (bean MC9RS08LE4_28)
**
** Description :
** This method clears the low voltage detect flag. This method
** can be enabled only if LVD module is enabled (property <LVD
** module> is set to 'Enabled' value) and LVD reset is disabled
** (property <LVD operation> is not set to 'Reset' value).
** Parameters : None
** Returns : Nothing
** ===================================================================
*/
#define Cpu_GetLowVoltageFlag() (SPMSC1_LVDF)
/*
** ===================================================================
** Method : Cpu_GetLowVoltageFlag (bean MC9RS08LE4_28)
**
** Description :
** This method returns the flag of the Low Voltage Detect
** device. The flag is set when the low-voltage error is
** detected. This method can be enabled only if LVD module is
** enabled (property <LVD module> is set to 'Enabled' value)
** and LVD reset is disabled (property <LVD operation> is not
** set to 'Reset' value).
** Parameters : None
** Returns :
** --- - This method returns a true when flag is
** set otherwise returns a false.
** ===================================================================
*/
#define Cpu_SetWaitMode() __asm("WAIT") /* Set WAIT mode */
/*
** ===================================================================
** Method : Cpu_SetWaitMode (bean MC9RS08LE4_28)
**
** Description :
** Sets the low power mode - Wait mode.
** For more information about the wait mode, see the
** documentation of this CPU.
** Release from the Wait mode: Reset or interrupt
** Parameters : None
** Returns : Nothing
** ===================================================================
*/
void Cpu_Delay100US(word us100);
/*
** ===================================================================
** Method : Cpu_Delay100US (bean MC9RS08LE4_28)
**
** Description :
** This method realizes software delay. The length of delay
** is at least 100 microsecond multiply input parameter
** [us100]. As the delay implementation is not based on real
** clock, the delay time may be increased by interrupt
** service routines processed during the delay. The method
** is independent on selected speed mode.
** Parameters :
** NAME - DESCRIPTION
** us100 - Number of 100 us delay repetitions.
** Returns : Nothing
** ===================================================================
*/
void PE_low_level_init(void);
/*
** ===================================================================
** Method : PE_low_level_init (bean MC9RS08LE4_28)
**
** Description :
** Initializes beans and provides common register initialization.
** The method is called automatically as a part of the
** application initialization code.
** This method is internal. It is used by Processor Expert only.
** ===================================================================
*/
/* END Cpu. */
#endif /* ifndef __Cpu */
/*
** ###################################################################
**
** This file was created by UNIS Processor Expert 3.04 [04.19]
** for the Freescale RS08 series of microcontrollers.
**
** ###################################################################
*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -