?? config.h
字號:
/*
****************************************Copyright (c)**************************************************
** 廣州致遠(yuǎn)電子有限公司
** CAN開發(fā)組
** http://www.zyinside.com
**
**--------------File Info-------------------------------------------------------------------------------
** File Name: config.h
** Last modified Date: 2004-09-17
** Last Version: 1.0
** Descriptions: User Configurable File
**
**------------------------------------------------------------------------------------------------------
** Created By: Chenmingji
** Created date: 2004-09-17
** Version: 1.0
** Descriptions: First version
**
**------------------------------------------------------------------------------------------------------
** Modified by:
** Modified date:
** Version:
** Descriptions:
**
********************************************************************************************************/
#ifndef __CONFIG_H
#define __CONFIG_H
//This segment should not be modified
#ifndef TRUE
#define TRUE 1
#endif
#ifndef FALSE
#define FALSE 0
#endif
#ifndef __KERNEL__
#define __KERNEL__
#endif
#ifndef MODULE
#define MODULE
#endif
#include <linux/config.h>
#include <linux/module.h>
MODULE_LICENSE("GPL");
#ifdef CONFIG_SMP
#define __SMP__
#endif
#include <linux/version.h>
#include <linux/kernel.h> /* printk() */
#include <linux/fs.h> /* everything... */
#include <linux/errno.h> /* error codes */
#include <linux/ioport.h>
#include <asm/io.h>
#include <linux/proc_fs.h>
#include <linux/fcntl.h> /* O_ACCMODE */
#include <linux/sched.h>
#include <asm/irq.h>
#include <asm/system.h> /* cli(), *_flags */
#include <linux/wait.h>
#include <linux/init.h>
#include <asm/hardware.h>
#include <asm/uaccess.h>
#include <linux/poll.h>
#include <linux/ioctl.h>
typedef u8 uint8; /* defined for unsigned 8-bits integer variable 無符號8位整型變量 */
typedef s8 int8; /* defined for signed 8-bits integer variable 有符號8位整型變量 */
typedef u16 uint16; /* defined for unsigned 16-bits integer variable 無符號16位整型變量 */
typedef s16 int16; /* defined for signed 16-bits integer variable 有符號16位整型變量 */
typedef u32 uint32; /* defined for unsigned 32-bits integer variable 無符號32位整型變量 */
typedef s32 int32; /* defined for signed 32-bits integer variable 有符號32位整型變量 */
typedef float fp32; /* single precision floating point variable (32bits) 單精度浮點數(shù)(32位長度) */
typedef double fp64; /* double precision floating point variable (64bits) 雙精度浮點數(shù)(64位長度) */
/********************************/
/*Application Program Configurations*/
/* 應(yīng)用程序配置 */
/********************************/
//This segment could be modified as needed.
//以下根據(jù)需要改動
#include "SJA1000.h"
#define CAN_MAJOR_NR 251 //CAN控制器主設(shè)備號定義為251
#define DEVICE_NAME "SJA1000_CAN" //CAN控制器設(shè)備名
#endif
/*********************************************************************************************************
** End Of File
********************************************************************************************************/
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -