Blame view

RIOT/tests/driver_grove_ledbar/Makefile 599 Bytes
a752c7ab   elopes   add first test an...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  APPLICATION = driver_grove_ledbar
  include ../Makefile.tests_common
  
  USEMODULE += grove_ledbar
  
  # set default device parameters in case they are undefined
  # the following params are for board pba-d-01-kw2x and pins PA01 and PA02
  TEST_GROVE_LEDBAR_CLK ?= 	GPIO_PIN\(0,1\)
  TEST_GROVE_LEDBAR_DAT ?= 	GPIO_PIN\(0,2\)
  TEST_GROVE_LEDBAR_DIR ?=	GROVE_LEDBAR_G2R
  
  # export parameters
  CFLAGS += -DGROVE_LEDBAR_CLK=$(TEST_GROVE_LEDBAR_CLK)
  CFLAGS += -DGROVE_LEDBAR_DAT=$(TEST_GROVE_LEDBAR_DAT)
  CFLAGS += -DGROVE_LEDBAR_DIR=$(TEST_GROVE_LEDBAR_DIR)
  
  test:
  	tests/01-run.py
  
  include $(RIOTBASE)/Makefile.include