Revision 2b0ba4bb

View differences:

scout_gumstix/encoder/Makefile
1 1
obj-m += encoder.o
2
KERNEL_DIR ?= /lib/modules/$(shell uname -r)/build
2 3

  
3 4
all: encoder.ko
4 5

  
5 6
encoder.ko: encoder.c
6
	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
7
	make -C $(KERNEL_DIR) M=$(PWD) modules
7 8

  
8 9
clean:
9
	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
10
	make -C $(KERNEL_DIR) M=$(PWD) clean
scout_gumstix/encoder/encoder.c
7 7
#include <linux/semaphore.h>
8 8
#include <linux/interrupt.h>
9 9
#include <linux/gpio.h>
10
#include <linux/irq.h>
10 11
#include <asm/atomic.h>
11 12

  
12 13
MODULE_AUTHOR("Tom Mullins");

Also available in: Unified diff