Arch-specific code template that works on all platforms

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