From 6b1099c487e9d7be85d4fbd513f9e5236d0d10d4 Mon Sep 17 00:00:00 2001 From: NĂ©lio Laranjeiro Date: Sun, 30 Mar 2008 20:35:33 +0200 Subject: Renamed the makefile and update the main.c in the test. --- digital/io/src/getsamples/Makefile | 23 ----------------------- digital/io/src/getsamples/Makefile.getsamples | 23 +++++++++++++++++++++++ digital/io/src/getsamples/test/main.c | 7 +++++++ 3 files changed, 30 insertions(+), 23 deletions(-) delete mode 100644 digital/io/src/getsamples/Makefile create mode 100644 digital/io/src/getsamples/Makefile.getsamples diff --git a/digital/io/src/getsamples/Makefile b/digital/io/src/getsamples/Makefile deleted file mode 100644 index c59fdb64..00000000 --- a/digital/io/src/getsamples/Makefile +++ /dev/null @@ -1,23 +0,0 @@ -CFLAGS = -O2 -Wall - -all: prgm exe dot png - -prgm: getSamplesFsm.fsm getSamplesFsm.conf - python ../../../../tools/dfagen/dfagen.py -o c -d $< -c getSamplesFsm.conf -p getsamples - -exe: getSamplesFsm.fsm getSamplesFsm.conf - make prgm - #if [ -f getsamples_cb.c ]; then vimdiff getsamples_cb.c getsamples_cb_skel.c; else mv getsamples_cb_skel.c getsamples_cb.c; fi; - -dot: getSamplesFsm.fsm getSamplesFsm.conf - python ../../../../tools/dfagen/dfagen.py -o dot -d $< -c getSamplesFsm.conf -p getsamples - -png: getsamples.dot - dot -Tpng -o getsamples.png getsamples.dot - -clean: - rm -f getsamples.h - rm -f getsamples_cb.h - rm -f getsamples.dot - rm -f getsamples.png - rm -f getsamples.c diff --git a/digital/io/src/getsamples/Makefile.getsamples b/digital/io/src/getsamples/Makefile.getsamples new file mode 100644 index 00000000..c59fdb64 --- /dev/null +++ b/digital/io/src/getsamples/Makefile.getsamples @@ -0,0 +1,23 @@ +CFLAGS = -O2 -Wall + +all: prgm exe dot png + +prgm: getSamplesFsm.fsm getSamplesFsm.conf + python ../../../../tools/dfagen/dfagen.py -o c -d $< -c getSamplesFsm.conf -p getsamples + +exe: getSamplesFsm.fsm getSamplesFsm.conf + make prgm + #if [ -f getsamples_cb.c ]; then vimdiff getsamples_cb.c getsamples_cb_skel.c; else mv getsamples_cb_skel.c getsamples_cb.c; fi; + +dot: getSamplesFsm.fsm getSamplesFsm.conf + python ../../../../tools/dfagen/dfagen.py -o dot -d $< -c getSamplesFsm.conf -p getsamples + +png: getsamples.dot + dot -Tpng -o getsamples.png getsamples.dot + +clean: + rm -f getsamples.h + rm -f getsamples_cb.h + rm -f getsamples.dot + rm -f getsamples.png + rm -f getsamples.c diff --git a/digital/io/src/getsamples/test/main.c b/digital/io/src/getsamples/test/main.c index 2bbfe6e6..33a3fd80 100644 --- a/digital/io/src/getsamples/test/main.c +++ b/digital/io/src/getsamples/test/main.c @@ -22,6 +22,11 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * }}} */ +#define uint32_t (unsigned int) +#define uint16_t (unsigned short) +#define uint8_t (unsigned char) + + #include "../getsamples.h" #include "../getsamples_robo.h" @@ -34,6 +39,8 @@ getsamples_print_test (getsamples_t *getsamples) switch (getsamples->fsm) { + case GETSAMPLES_STATE_START: + printf ("START"); case GETSAMPLES_STATE_PREPARE_ARM: printf ("PREPARE_ARM"); break; -- cgit v1.2.3