mcu_driver_select.h

来自「飞思卡尔HC08/HCS08系列单片机LCD驱动源码」· C头文件 代码 · 共 35 行

H
35
字号
/* Select the Correctly Driver for your MicroControllerUnit */
#ifndef MC68HC908AP64_h
	#define MC68HC908AP64_h
	#include <MC68HC908AP64.h>	/* Include peripheral declarations */
#endif

/* Choose the waiting Base Time for a Timer Interrupt */
#define gTimeBaseInterrupteachus 50

/* Define the kind of the MCU */
#define MC908   /* In case of HC08 family		 */
//#define MCS08 	/* In case of HCS08 family 	 */






/*++++++++++++++++++++++++++++++ DON碩 MODIFY +++++++++++++++++++++++++++++++*/

/* Waiting Base Time equivalent to a 1ms */
#define gTimeBaseInterruptperms 1000/gTimeBaseInterrupteachus								

/* Define a shortname for your variable type */ 
typedef unsigned char				UINT8;  /*  8 bits */
typedef unsigned short int	UINT16; /* 16 bits */
typedef unsigned long int		UINT32; /* 32 bits */

typedef signed char					INT8;   /*  8 bits */
typedef signed short int		INT16;  /* 16 bits */
typedef signed long int			INT32;  /* 32 bits */

typedef volatile UINT8			VUINT8;  /*  8 bits */
typedef volatile UINT16			VUINT16; /* 16 bits */
typedef volatile UINT32			VUINT32; /* 32 bits */

⌨️ 快捷键说明

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