Blame view

RIOT/tests/driver_my9221/Makefile 613 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
21
22
  APPLICATION = driver_my9221
  include ../Makefile.tests_common
  
  USEMODULE += my9221
  
  # 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_MY9221_CLK ?= GPIO_PIN\(0,1\)
  TEST_MY9221_DAT ?= GPIO_PIN\(0,2\)
  TEST_MY9221_DIR ?= MY9221_DIR_FWD
  TEST_MY9221_NUM ?= 10
  
  # export parameters
  CFLAGS += -DTEST_MY9221_CLK=$(TEST_MY9221_CLK)
  CFLAGS += -DTEST_MY9221_DAT=$(TEST_MY9221_DAT)
  CFLAGS += -DTEST_MY9221_DIR=$(TEST_MY9221_DIR)
  CFLAGS += -DTEST_MY9221_NUM=$(TEST_MY9221_NUM)
  
  test:
  	tests/01-run.py
  
  include $(RIOTBASE)/Makefile.include