⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cpu.h

📁 富士通单片机MB90F387上实现MODBUS
💻 H
字号:
/**********************************************************
*
* The following software is for demonstration purposes only. 
* It is not fully tested, nor validated in order to fullfill  
* its task under all circumstances. Therefore, this software  
* or any part of it must only be used in an evaluation        
* laboratory environment.                                    
f* standard DISCLAIMER, available at www.accemic.com.
*
* Copyright (c) 2001-2003 Accemic GmbH & Co. KG 
* All rights reserved  
*
***********************************************************
*
* Module name        : cpu.h
* Version            : 1.0       
* Date of creation.  : 07.03.2003
* Last Modification  : 07.03.2003
* Authors            : Rainer Harthaus (RH)
* 
***********************************************************
* 
* Description: 
* - CPU series definition 
* - bootloader UART ICR definition
*
***********************************************************
*
* History
*
* Vers   * Datum    * Name  * Subject
* 1.00   * 07.03.03 * RH    * first creation
* 
***********************************************************
*
* Please visit www.accemic.com
* for updates and other valuable developer ressources
*
**********************************************************/

#ifndef CPU_H
#define CPU_H

/**********************************************************
* 385 family
***********************************************************/
#if   __CPU_MB90F387__    || __CPU_MB90F387S__
#define __CPU_MB90385_SERIES 1
#define monitor_icr_tx  13
#define monitor_icr_rx  13


/**********************************************************
* 390 family
***********************************************************/
#elif __CPU_MB90F394__    || __CPU_MB90F394H__
#define __CPU_MB90390_SERIES 1
#define monitor_icr_tx  12
#define monitor_icr_rx  12

/**********************************************************
* 420 family
***********************************************************/
#elif __CPU_MB90F423GA__  || __CPU_MB90F423GB__ || \
      __CPU_MB90F423GC__ 
#define __CPU_MB90420_SERIES 1
#define monitor_icr_tx  13
#define monitor_icr_rx  13

/**********************************************************
* 425 family
***********************************************************/
#elif __CPU_MB90F428__    || __CPU_MB90F428A__  || \
	  __CPU_MB90F428GA__  || __CPU_MB90F428GB__ || \
      __CPU_MB90F428GC__
#define __CPU_MB90425_SERIES 1
#define monitor_icr_tx  13
#define monitor_icr_rx  13

/**********************************************************
* 435 family
***********************************************************/
#elif __CPU_MB90F438L__   || __CPU_MB90F438S__  || \
      __CPU_MB90F439__    || __CPU_MB90F439S__
#define __CPU_MB90435_SERIES 1
#define monitor_icr_tx  14
#define monitor_icr_rx  14

/**********************************************************
* 440 family
***********************************************************/
#elif __CPU_MB90F443__    || __CPU_MB90F443G__
#define __CPU_MB90440_SERIES 1
#define monitor_icr_tx  14
#define monitor_icr_rx  14
  
/**********************************************************
* 455 family
***********************************************************/
#elif __CPU_MB90F455__    || __CPU_MB90F455S__  || \
	  __CPU_MB90F456__    || __CPU_MB90F456S__  || \
	  __CPU_MB90F457__    || __CPU_MB90F457S__
#define __CPU_MB90455_SERIES 1
#define monitor_icr_tx  13
#define monitor_icr_rx  13

/**********************************************************
* 460 family
**********************************************************/
#elif __CPU_MB90F462__ 
#define __CPU_MB90460_SERIES 1
#define monitor_icr_tx  14
#define monitor_icr_rx  14

/**********************************************************
* 495 family
***********************************************************/
#elif __CPU_MB90F497__    || __CPU_MB90F497G__  || \
      __CPU_MB90F498__    || __CPU_MB90F498G__
#define __CPU_MB90495_SERIES 1
#define monitor_icr_tx  13
#define monitor_icr_rx  13

/**********************************************************
* 520 family
***********************************************************/
#elif __CPU_MB90F523__    || __CPU_MB90F523A__  || \
      __CPU_MB90F523B__
#define __CPU_MB90520_SERIES 1
#define monitor_icr_tx  13
#define monitor_icr_rx  14
  
/**********************************************************
* 540 family
***********************************************************/
#elif __CPU_MB90F543__    || __CPU_MB90F543G__  || \
      __CPU_MB90F543GS__ 
#define __CPU_MB90540_SERIES 1
#define monitor_icr_tx  14
#define monitor_icr_rx  14

/**********************************************************
* 545 family
***********************************************************/
#elif __CPU_MB90F546__    || __CPU_MB90F546G__  || \
	  __CPU_MB90F546GS__  || __CPU_MB90F548__   || \
	  __CPU_MB90F548G__   || __CPU_MB90F548GS__ || \
	  __CPU_MB90F548GLS__ || __CPU_MB90F549__   || \
      __CPU_MB90F549G__   || __CPU_MB90F549GS__ 
#define __CPU_MB90545_SERIES 1
#define monitor_icr_tx  14
#define monitor_icr_rx  14

/**********************************************************
* 550 family
***********************************************************/
#elif __CPU_MB90F553A__ 
#define __CPU_MB90550A_SERIES 1
#define monitor_icr_tx  13
#define monitor_icr_rx  14

/**********************************************************
* 560 family
***********************************************************/
#elif __CPU_MB90F562__    || __CPU_MB90F562B__  
#define __CPU_MB90560_SERIES 1
#define monitor_icr_tx  13
#define monitor_icr_rx  13

/**********************************************************
* 565 family
***********************************************************/
#elif __CPU_MB90F568__
#define __CPU_MB90565_SERIES 1
#define monitor_icr_tx  13
#define monitor_icr_rx  13

/**********************************************************
* 570 family
***********************************************************/
#elif __CPU_MB90F574__    || __CPU_MB90F574A__ 
#define __CPU_MB90570_SERIES 1
#define monitor_icr_tx  14
#define monitor_icr_rx  14

/**********************************************************
* 580 family
***********************************************************/
#elif __CPU_MB90F583__    || __CPU_MB90F583B__  || \
	  __CPU_MB90F583C__   || __CPU_MB90F583CA__ ||\
  	  __CPU_MB90F584C__   || __CPU_MB90F584CA__
#define __CPU_MB90580_SERIES 1
#define monitor_icr_tx  11
#define monitor_icr_rx  14

/**********************************************************
* 590 family
***********************************************************/
#elif __CPU_MB90F591__    || __CPU_MB90F591A__  || \
	  __CPU_MB90F591G__   || __CPU_MB90F594__   || \
      __CPU_MB90F594A__   || __CPU_MB90F594G__
#define __CPU_MB90590_SERIES 1
#define monitor_icr_tx  12
#define monitor_icr_rx  12
  
/**********************************************************
* 595 family
***********************************************************/
#elif __CPU_MB90F598__    || __CPU_MB90F598G__ 
#define __CPU_MB90595_SERIES 1
#define monitor_icr_tx  14
#define monitor_icr_rx  14

#else
/**********************************************************
* Error: Your selected CPU is not defined in cpu.h
***********************************************************/
  #error Error: Your selected CPU is not defined in cpu.h
#endif

#endif

⌨️ 快捷键说明

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