Table of Contents

UI

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

UI API

Buzzer

Buzzer API

Key Back Light

Key Back Light API

Thermal Printer

Thermal Printer API

MMD1100

MMD1100 API

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