Moxa Technologies UC-7420/7410 Network Card User Manual


 
UC-7420/7410 User’s Manual Programmer’s Guide
5-11
Special Note
1. UC-7420/7410’s kernel will store the “pressed key history” in a buffer. The maximum buffer
size is 31 keys. If the buffer overflows, the first key of the 31 that was pressed will be dropped,
without sounding the buzzer.
2. Currently, UC-7420/7410 does NOT support pressing more than 1 key at the same time.
Make File Example
The following Makefile file example codes are copied from the Hello example on
UC-7420/7410’s CD-ROM.
CC = /usr/local/mxscaleb/mxscaleb-gcc
CPP = /usr/local/mxscaleb/mxscaleb-gcc
SOURCES = hello.c
OBJS = $(SOURCES:.c=.o)
all: hello
hello: $(OBJS)
$(CC) -o $@ $^ $(LDFLAGS) $(LIBS)
clean:
rm -f $(OBJS) hello core *.gdb