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

📄 f91eval.h

📁 ucos_ii 在Z80系列单片机上的移植
💻 H
字号:
/*******************************************************
 *                                                     *
 * F91eval.h  -- header file for F91eval.c             *
 *                                                     *
 *  Copyright (C) 2004, Douglas Beattie Jr.            *
 *                                                     *
 *******************************************************/
#ifndef _F91EVAL_H_
#define _F91EVAL_H_

#ifdef _F91EVAL_COMPILE_
#define DECL_TYPE
#undef _F91EVAL_COMPILE_
#else
#define DECL_TYPE extern
#endif

#include "my_eZ80F91.h"

//#define CPU_FREQ 23961600     /* 23.9616_MHz */
//#define CPU_FREQ 11980800     /* 11.9808_MHz */
//#define CPU_FREQ 20000000     /* 20.0000_MHz */
#define CPU_FREQ 50000000     /* 50.0000_MHz */


#define CONSOLE_BAUD_RATE  57600


#define USE_UART0         /* comment out or remove for UART1 */

/* console I/O can be directed to either port by changing */
/* only the 2 following defines to either */
/*    PortD, UART0 */
/* or PortC, UART1 */
#ifdef USE_UART0
#define CONSOLE_PORT PortD  /* Port D is UART0 */
#define CONSOLE_UART UART0

#else
#define CONSOLE_PORT PortC  /* Port C is UART1 */
#define CONSOLE_UART UART1

#endif


/* declare function prototypes */
 //DECL_TYPE int puts(char *str);     /* eZ80 compiler had NO puts() function */

DECL_TYPE int putch(int ch);
DECL_TYPE int console_status(void);
DECL_TYPE int getch(void);
DECL_TYPE void set_console_ULCR(int BitsPerChar, int StopBits, int Parity);
DECL_TYPE void init_console_UART(void);

DECL_TYPE void select_console(void);
DECL_TYPE void select_IrDA(void);

#undef DECL_TYPE
#endif /* _F91EVAL_H_ */

⌨️ 快捷键说明

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