Browse files

Minor edit - code 'clean-up'

  • Loading branch information...
1 parent 86f40b4 commit 6eaa8dc655d6b798fa0445d1fee11eb5fdff64ba @azman committed Apr 8, 2013
Showing with 3 additions and 4 deletions.
  1. +1 −2 makefile
  2. +2 −2 src/my1comlib.h
View
3 makefile
@@ -11,7 +11,6 @@ TESTOBJ = my1cons.o $(TESTBIN).o
PACKDIR = $(PROJECT)-$(shell cat VERSION)
PACKDAT = README CHANGELOG VERSION
PLATBIN ?= $(shell uname -m)
-VERSION = -DMY1APP_PROGVERS=\"$(shell date +%Y%m%d)\"
DELETE = rm -rf
COPY = cp -R
@@ -42,7 +41,7 @@ CC = $(CROSS_COMPILE)gcc
CPP = $(CROSS_COMPILE)g++
debug: CFLAGS += -DMY1DEBUG
pack: ARCNAME = $(PACKDIR)-$(PLATBIN)-$(shell date +%Y%m%d)$(ARCHEXT)
-version: VERSION = -DMY1APP_PROGVERS=\"$(shell cat VERSION)\"
+version: CFLAGS += -DMY1APP_PROGVERS=\"$(shell cat VERSION)\"
main: $(CONSPRO)
View
4 src/my1comlib.h
@@ -73,8 +73,8 @@ int put_data_serial(ASerialPort_t* aPort, byte_t* aData, int aCount);
int get_data_serial(ASerialPort_t* aPort, byte_t* aData, int* aCount);
void put_byte_serial(ASerialPort_t* aPort, byte_t aData);
byte_t get_byte_serial(ASerialPort_t* aPort);
-void purge_serial(ASerialPort_t* aPort);
-void flush_serial(ASerialPort_t* aPort);
+void purge_serial(ASerialPort_t* aPort); /** purge input */
+void flush_serial(ASerialPort_t* aPort); /** flush output*/
void wait_outgoing(ASerialPort_t* aPort);
int check_incoming(ASerialPort_t* aPort);
/** Functions to control/check DTR/DSR/RTS/CTS: */

0 comments on commit 6eaa8dc

Please sign in to comment.