From d55079e7babd1c0b45a954641238ace80f475cd9 Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Tue, 19 Oct 2010 07:33:09 +0000 Subject: [PATCH] Arch-specific code template that works on all platforms --- apps/collect-view/Makefile.collect-view | 2 ++ apps/collect-view/collect-view-template.c | 15 +++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 apps/collect-view/collect-view-template.c diff --git a/apps/collect-view/Makefile.collect-view b/apps/collect-view/Makefile.collect-view index 426b29d92..8155e4699 100644 --- a/apps/collect-view/Makefile.collect-view +++ b/apps/collect-view/Makefile.collect-view @@ -2,4 +2,6 @@ collect-view_src = collect-view.c ifeq ($(TARGET), sky) collect-view_src += collect-view-sky.c +else +collect-view_src += collect-view-template.c endif diff --git a/apps/collect-view/collect-view-template.c b/apps/collect-view/collect-view-template.c new file mode 100644 index 000000000..a6fa1c4b4 --- /dev/null +++ b/apps/collect-view/collect-view-template.c @@ -0,0 +1,15 @@ +#include "collect-view.h" + +enum { + SENSOR1, + SENSOR2, +}; + +/*---------------------------------------------------------------------------*/ +void +collect_view_arch_read_sensors(struct collect_view_data_msg *msg) +{ + msg->sensors[SENSOR1] = 0; + msg->sensors[SENSOR2] = 0; +} +/*---------------------------------------------------------------------------*/