config_nec78k0.h
来自「NEC 的无线通讯方案」· C头文件 代码 · 共 69 行
H
69 行
/*
* $Id: config_nec78k0.h,v 1.4 2007/10/23 07:52:04 sunny Exp $
*/
#ifndef __CONFIG_NEC78K0_H__
#define __CONFIG_NEC78K0_H__
//#define uPD78F0547_80
//#define uPD78F0537_64
//#define uPD78F0525_52
//#define uPD78F0514_48
#if defined( uPD78F0547_80 )
#define ENABLE_UART0 0
#define ENABLE_UART6 1
#define ENABLE_CSI10 0
#define ENABLE_CSI11 1
#define ENABLE_IIC0 0
#if (ENABLE_UART0 && ENABLE_CSI10)
#error "Can enable both UART0 and CSI10."
#endif
#elif defined( uPD78F0537_64 )
#define ENABLE_UART0 0
#define ENABLE_UART6 1
#define ENABLE_CSI10 0
#define ENABLE_CSI11 1
#define ENABLE_IIC0 0
#if (ENABLE_UART0 && ENABLE_CSI10)
#error "Can enable both UART0 and CSI10."
#endif
#elif defined( uPD78F0525_52 )
#define ENABLE_UART0 0
#define ENABLE_UART6 1
#define ENABLE_CSI10 1
#define ENABLE_CSI11 0
#define ENABLE_IIC0 0
#if (ENABLE_UART0 && ENABLE_CSI10)
#error "Can enable both UART0 and CSI10."
#endif
#if ENABLE_CSI11
#error "No CSI11 for uPD78F0525_52."
#endif
#elif defined( uPD78F0514_48 )
#define ENABLE_UART0 0
#define ENABLE_UART6 1
#define ENABLE_CSI10 1
#define ENABLE_CSI11 0
#define ENABLE_IIC0 0
#if (ENABLE_UART0 && ENABLE_CSI10)
#error "Can enable both UART0 and CSI10."
#endif
#if ENABLE_CSI11
#error "No CSI11 for uPD78F0514_48."
#endif
#else
#error "MCU type not defined in Compiler option '-d', or..."
#error "Unknown MCU type defined."
#endif
#define NEC78K0_INTERNAL_OSC 1
#if ENABLE_UART0 || ENABLE_UART6
#define CONSOLE
#endif // #if ENABLE_UART0 || ENABLE_UART6
#ifdef _UNET_H_
#include "macrodriver.h"
#endif
#endif // #ifndef __CONFIG_NEC78K0_H__
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?