Site Tools


Hotfix release available: 2024-02-06a "Kaos". upgrade now! [55.1] (what's this?)
New release available: 2024-02-06 "Kaos". upgrade now! [55] (what's this?)
Hotfix release available: 2023-04-04a "Jack Jackrum". upgrade now! [54.1] (what's this?)
New release available: 2023-04-04 "Jack Jackrum". upgrade now! [54] (what's this?)
Hotfix release available: 2022-07-31b "Igor". upgrade now! [53.1] (what's this?)
Hotfix release available: 2022-07-31a "Igor". upgrade now! [53] (what's this?)
New release available: 2022-07-31 "Igor". upgrade now! [52.2] (what's this?)
New release candidate 2 available: rc2022-06-26 "Igor". upgrade now! [52.1] (what's this?)
New release candidate available: 2022-06-26 "Igor". upgrade now! [52] (what's this?)
Hotfix release available: 2020-07-29a "Hogfather". upgrade now! [51.4] (what's this?)
New release available: 2020-07-29 "Hogfather". upgrade now! [51.3] (what's this?)
New release candidate 3 available: 2020-06-09 "Hogfather". upgrade now! [51.2] (what's this?)
New release candidate 2 available: 2020-06-01 "Hogfather". upgrade now! [51.1] (what's this?)
New release candidate available: 2020-06-01 "Hogfather". upgrade now! [51] (what's this?)
Hotfix release available: 2018-04-22c "Greebo". upgrade now! [50.3] (what's this?)
Hotfix release available: 2018-04-22b "Greebo". upgrade now! [50.2] (what's this?)
Hotfix release available: 2018-04-22a "Greebo". upgrade now! [50.1] (what's this?)
New release available: 2018-04-22 "Greebo". upgrade now! [50] (what's this?)
Hotfix release available: 2017-02-19g "Frusterick Manners". upgrade now! [49.7] (what's this?)
Hotfix release available: 2017-02-19f "Frusterick Manners". upgrade now! [49.6] (what's this?)
Hotfix release available: 2017-02-19e "Frusterick Manners". upgrade now! [49.5] (what's this?)
Hotfix release available fixing CVE-2017-12979 and CVE-2017-12980: 2017-02-19d "Frusterick Manners". upgrade now! [49.4] (what's this?)
Hotfix release available fixing CVE-2017-12583: 2017-02-19c "Frusterick Manners". upgrade now! [49.3] (what's this?)
device_driver_api

UI

이 API는 LCD Control, Key Input, Printer용 String rander기능이 있음.

UI API

Buzzer

Key Back Light

Thermal Printer

MMD1100

LED

LED API

Makefile

###################################################################################################
#	Using Linaro <- Build Root 
###################################################################################################
COMPILER_CROSS_HOST = /home/stephanos/VI/host
CROSS_COMPILE_PREFIX = arm-linux-gnueabihf

###################################################################################################
#	Using Linaro
###################################################################################################
# COMPILER_CROSS_HOST = /home/stephanos/VI/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf
# CROSS_COMPILE_PREFIX = arm-linux-gnueabihf

###################################################################################################
###################################################################################################
CROSS_TOOL = $(COMPILER_CROSS_HOST)/bin
CROSS_BASE = /home/stephanos/VI/host/arm-buildroot-linux-gnueabihf/sysroot

###################################################################################################
###################################################################################################
GPP		= $(CROSS_TOOL)/$(CROSS_COMPILE_PREFIX)-g++
CC		= $(CROSS_TOOL)/$(CROSS_COMPILE_PREFIX)-gcc
LD		= $(CROSS_TOOL)/$(CROSS_COMPILE_PREFIX)-ld
AR		= $(CROSS_TOOL)/$(CROSS_COMPILE_PREFIX)-ar
DUMP	= $(CROSS_TOOL)/$(CROSS_COMPILE_PREFIX)-objdump
COPY	= $(CROSS_TOOL)/$(CROSS_COMPILE_PREFIX)-objcopy
CP		= cp

###################################################################################################
###################################################################################################
INC_DIR += -I$(CROSS_BASE)/usr/include/

INC_DIR += -I$(CROSS_BASE)/usr/include/directfb
## INC_DIR += -I$(CROSS_BASE)/usr/include/bluetooth

## INC_DIR += -I.
## INC_DIR += -I./include

LIB_DIR += -L$(CROSS_BASE)
LIB_DIR += -L$(CROSS_BASE)/lib
LIB_DIR += -L$(CROSS_BASE)/usr/lib


###################################################################################################
###################################################################################################
fs: rootfs.ubifs rootfs.ubi

rootfs.ubifs:
	/home/stephanos/VI/host/sbin/mkfs.ubifs -d /home/stephanos/VI/rootfs -e 0x1f000 -c 2048 -m 0x800 -x lzo -o rootfs.ubifs

rootfs.ubi:
	/home/stephanos/VI/host/sbin/ubinize -o rootfs.ubi -m 0x800 -p 0x20000 -s 2048 ubi.cfg

all:
	$(CC) $(INC_DIR) \
		  $(LIB_DIR) \
		  -o test-directfb \
		  test-directfb.c \
		  CRC_LRC.c \
		  MemoryControl.c \
		  MMD1100.c \
		  Buzzer.c \
		  LED.c \
		  KeyBackLight.c \
		  ThermalPrinter.c \
		  UI.c \
		  -ldrm \
		  -ldirectfb
	cp	./test-directfb ../rootfs/root

clean:
	rm rootfs.ubifs
	rm rootfs.ubi
	rm test-directfb
device_driver_api.txt · Last modified: 2017/10/31 13:45 by 1.241.172.144