wiringPi : gpio utility add for odroid
Change-Id: I6dcdfb0130eee7f38543598752da481d2408037f
This commit is contained in:
committed by
Yang Deokgyu
parent
1769321c56
commit
066914ee14
10
gpio/Makefile
Normal file → Executable file
10
gpio/Makefile
Normal file → Executable file
@@ -30,6 +30,9 @@ ifneq ($V,1)
|
||||
Q ?= @
|
||||
endif
|
||||
|
||||
# BRAND_NAME = Pi
|
||||
BRAND_NAME = Odroid
|
||||
|
||||
#DEBUG = -g -O0
|
||||
DEBUG = -O2
|
||||
CC = gcc
|
||||
@@ -41,9 +44,16 @@ LIBS = -lwiringPi -lwiringPiDev -lpthread -lrt -lm -lcrypt
|
||||
|
||||
# May not need to alter anything below this line
|
||||
###############################################################################
|
||||
ifeq ($(BRAND_NAME), Odroid)
|
||||
|
||||
SRC = gpio_odroid.c readall_odroid.c pins.c
|
||||
|
||||
else
|
||||
|
||||
SRC = gpio.c readall.c pins.c
|
||||
|
||||
endif
|
||||
|
||||
OBJ = $(SRC:.c=.o)
|
||||
|
||||
all: gpio
|
||||
|
||||
Reference in New Issue
Block a user