Arch-specific code template that works on all platforms

This commit is contained in:
adamdunkels 2010-10-19 07:33:09 +00:00
parent 71d5c5f3c1
commit d55079e7ba
2 changed files with 17 additions and 0 deletions

View file

@ -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

View file

@ -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;
}
/*---------------------------------------------------------------------------*/