This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
部分代码 | |
config LED_DEV | |
tristate "led device" | |
help | |
led control node. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ifneq ($(KERNELRELEASE),) | |
obj-m := mylist.o | |
else | |
KDIR := /home/guoqian/4-3-1/linux-2.6.29 | |
all: | |
make -C $(KDIR) M=$(PWD) modules ARCH=arm CROSS_COMPILE=arm-linux- | |
clean: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ifneq ($(KERNELRELEASE),) | |
obj-m := alloc_mem.o | |
else | |
KDIR := /home/guoqian/4-3-1/linux-2.6.29 | |
all: | |
make -C $(KDIR) M=$(PWD) modules ARCH=arm CROSS_COMPILE=arm-linux- | |
clean: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ifneq ($(KERNELRELEASE),) | |
obj-m :=hello.o | |
else | |
KDIR:= /lib/modules/2.6.18-53.el5/build | |
all: | |
make -C $(KDIR) M=$(PWD) modules | |
clean: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*************************************************************** | |
A globalmem driver as an example of char device drivers | |
The initial developer of the original code is Baohua Song | |
<author@linuxdriver.cn>. All Rights Reserved. | |
****************************************************************/ | |
#include <linux/module.h> | |
#include <linux/types.h> | |
#include <linux/fs.h> | |
#include <linux/errno.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
`timescale 1ns / 1ps | |
//////////////////////////////////////////////////////////////////////////////// | |
// Company: | |
// Engineer: | |
// | |
// Create Date: 17:11:32 08/28/08 | |
// Design Name: | |
// Module Name: my_uart_rx | |
// Project Name: | |
// Target Device: |