Skip to content

Commit

Permalink
platform/mikro-e/dev: restructure relay click driver files and update…
Browse files Browse the repository at this point in the history
… test application

Signed-off-by: Mayank Sirotiya <Mayank.Sirotiya@imgtec.com>
  • Loading branch information
mayank-sirotiya-imgtec committed Jun 23, 2016
1 parent 5d0c7d4 commit ac94758
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 6 deletions.
13 changes: 9 additions & 4 deletions platform/mikro-e/apps/test-relay/Makefile
@@ -1,10 +1,15 @@
CONTIKI_PROJECT=test-relay
CONTIKI=../../../..
CONTIKI_PROJECT = test-relay
CONTIKI = ../../../..

APPS += dev
APPDIRS += ../..
RELAY_CLICK = relay-click

CFLAGS += -DRELAY_CLICK

APPS += relay-click
APPDIRS += ../../dev

all: $(CONTIKI_PROJECT)
xc32-bin2hex $(CONTIKI_PROJECT).$(TARGET)

distclean: cleanall

Expand Down
2 changes: 1 addition & 1 deletion platform/mikro-e/apps/test-relay/test-relay.c
Expand Up @@ -37,7 +37,7 @@
*/

#include "contiki.h"
#include "relay-click.h"
#include "dev/common-clicks.h"
/*---------------------------------------------------------------------------*/
PROCESS(test_relay_click, "Test relay-click");
AUTOSTART_PROCESSES(&test_relay_click);
Expand Down
Binary file removed platform/mikro-e/apps/test-relay/test-relay.mikro-e
Binary file not shown.
1 change: 0 additions & 1 deletion platform/mikro-e/dev/Makefile.dev

This file was deleted.

4 changes: 4 additions & 0 deletions platform/mikro-e/dev/common-clicks.h
Expand Up @@ -36,4 +36,8 @@
#include "motion-click/motion-click.h"
#endif

#ifdef RELAY_CLICK
#include "relay-click/relay-click.h"
#endif

#endif /* __COMMON_CLICKS_H__ */
2 changes: 2 additions & 0 deletions platform/mikro-e/dev/relay-click/Makefile.relay-click
@@ -0,0 +1,2 @@

relay-click_src += relay-click.c
File renamed without changes.
File renamed without changes.

0 comments on commit ac94758

Please sign in to comment.