?? cpu.h
字號:
/** ###################################################################
** THIS BEAN MODULE IS GENERATED BY THE TOOL. DO NOT MODIFY IT.
** Filename : Cpu.H
** Project : Bulid_option_8367
** Processor : 56F8367
** Beantype : 56F8367
** Version : Bean 01.031, Driver 01.32, CPU db: 2.87.053
** Datasheet : MC56F8357/D Rev. 1.0, MC56F8300UM/D - Rev. 1.0
** Compiler : Metrowerks DSP C Compiler
** Date/Time : 8/31/2007, 10:40 AM
** Abstract :
**
** Settings :
**
** Contents :
** EnableInt - void Cpu_EnableInt(void);
** DisableInt - void Cpu_DisableInt(void);
** SetWaitMode - void Cpu_SetWaitMode(void);
** SetStopMode - void Cpu_SetStopMode(void);
** SetDataMode - void Cpu_SetDataMode(byte Mode);
**
** (c) Freescale Semiconductor
** 2004 All Rights Reserved
**
** (c) Copyright UNIS, spol. s r.o. 1997-2006
** UNIS, spol. s r.o.
** Jundrovska 33
** 624 00 Brno
** Czech Republic
** http : www.processorexpert.com
** mail : info@processorexpert.com
** ###################################################################*/
#ifndef __Cpu_H
#define __Cpu_H
/* MODULE Cpu. */
/* Active PE project configuration */
#define PEcfg_ldmpROMxRAM
/* Active CPU bean */
#define PE_CPU_TYPE_56F8367
/* Active CPU variant */
#define PE_CPU_VARIANT_56F8367
/* Active CPU family */
#define PE_CPU_FAMILY_56800
/* Active CPU subfamily */
#define PE_CPU_SUBFAMILY_56F83x
/*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"
#include "assert.h"
#ifndef __BWUserType_TShadowRegs
#define __BWUserType_TShadowRegs
typedef struct { /* Shadow register type. */
word* R0; /* Shadow register R0. */
word* R1; /* Shadow register R1. */
int16_t N; /* Shadow register N. */
int16_t M01; /* Shadow register M01. */
} TShadowRegs;
#endif
/* Global variables */
extern volatile word SR_lock; /* Lock */
extern volatile word SR_reg; /* Current value of the SR register */
#define Cpu_SetStopMode() asm(STOP) /* Set STOP mode */
/*
** ===================================================================
** Method : Cpu_SetStopMode (bean 56F8367)
**
** Description :
** Sets low power mode - Stop mode.
** For more information about the stop mode see this CPU
** documentation.
** Parameters : None
** Returns : Nothing
** ===================================================================
*/
#define Cpu_SetWaitMode() asm(WAIT) /* Set WAIT mode */
/*
** ===================================================================
** Method : Cpu_SetWaitMode (bean 56F8367)
**
** Description :
** Sets low power mode - Wait mode.
** For more information about the wait mode see this CPU
** documentation.
** Release from wait mode: Reset or interrupt
** Parameters : None
** Returns : Nothing
** ===================================================================
*/
#define Cpu_DisableInt() __DI() /* Disable interrupts */
/*
** ===================================================================
** Method : Cpu_DisableInt (bean 56F8367)
**
** Description :
** Disables all maskable interrupts
** Parameters : None
** Returns : Nothing
** ===================================================================
*/
#define Cpu_EnableInt() __EI(0) /* Enable interrupts */
/*
** ===================================================================
** Method : Cpu_EnableInt (bean 56F8367)
**
** Description :
** Enables all maskable interrupts
** Parameters : None
** Returns : Nothing
** ===================================================================
*/
void Cpu_SetDataMode(byte Mode);
/*
** ===================================================================
** Method : Cpu_SetDataMode (bean 56F8367)
**
** Description :
** Sets the Data memory map to use either internal &
** external resources or external resources only.
** Parameters :
** NAME - DESCRIPTION
** Mode - Data memory access mode.
** Possible modes:
** INT_EXT_MODE - use internal & external
** resources
** EXT_MODE - use external resources only
** Returns : Nothing
** ===================================================================
*/
void PE_low_level_init(void);
/*
** ===================================================================
** Method : PE_low_level_init (bean 56F8367)
**
** 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.
** ===================================================================
*/
void Cpu_Interrupt(void);
/*
** ===================================================================
** Method : Cpu_Interrupt (bean 56F8367)
**
** Description :
** The method services unhandled interrupt vectors.
** This method is internal. It is used by Processor Expert only.
** ===================================================================
*/
void _EntryPoint(void);
/*
** ===================================================================
** Method : _EntryPoint (bean 56F8367)
**
** Description :
** Initializes the whole system like timing and so on. At the end
** of this function, the C startup is invoked to initialize stack,
** memory areas and so on.
** This method is internal. It is used by Processor Expert only.
** ===================================================================
*/
/* END Cpu. */
#endif
/* __Cpu_H */
/*
** ###################################################################
**
** This file was created by UNIS Processor Expert 2.98.02 [03.79]
** for the Freescale 56800 series of microcontrollers.
**
** ###################################################################
*/
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -