Arch-specific code template that works on all platforms
This commit is contained in:
parent
71d5c5f3c1
commit
d55079e7ba
|
@ -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
|
||||
|
|
15
apps/collect-view/collect-view-template.c
Normal file
15
apps/collect-view/collect-view-template.c
Normal 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;
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
Loading…
Reference in a new issue