Browse Source

tests: Makefiles: s/GPIO(x,y)/GPIO_PIN(x,y)/

pull/1/head
Thomas Eichinger 7 years ago
parent
commit
34bedb4870
  1. 2
      tests/driver_adt7310/Makefile
  2. 8
      tests/driver_at86rf2xx/Makefile
  3. 4
      tests/driver_dht/Makefile
  4. 2
      tests/driver_isl29125/Makefile
  5. 4
      tests/driver_kw2xrf/Makefile
  6. 4
      tests/driver_l3g4200d/Makefile
  7. 6
      tests/driver_lis3dh/Makefile
  8. 4
      tests/driver_lsm303dlhc/Makefile
  9. 6
      tests/driver_nrf24l01p_lowlevel/Makefile
  10. 2
      tests/driver_nvram_spi/Makefile
  11. 6
      tests/driver_pcd8544/Makefile
  12. 6
      tests/driver_pir/Makefile

2
tests/driver_adt7310/Makefile

@ -16,7 +16,7 @@ ifneq (,$(TEST_ADT7310_CS))
CFLAGS += -DTEST_ADT7310_CS=$(TEST_ADT7310_CS)
else
# set arbitrary default
CFLAGS += -DTEST_ADT7310_CS=GPIO\(0,0\)
CFLAGS += -DTEST_ADT7310_CS=GPIO_PIN\(0,0\)
endif
include $(RIOTBASE)/Makefile.include

8
tests/driver_at86rf2xx/Makefile

@ -38,22 +38,22 @@ endif
ifneq (,$(ATRF_CS))
CFLAGS += -DATRF_CS=$(ATRF_CS)
else
CFLAGS += -DATRF_CS=GPIO\(0,0\) # set default
CFLAGS += -DATRF_CS=GPIO_PIN\(0,0\) # set default
endif
ifneq (,$(ATRF_INT))
CFLAGS += -DATRF_INT=$(ATRF_INT)
else
CFLAGS += -DATRF_INT=GPIO\(0,1\) # set default
CFLAGS += -DATRF_INT=GPIO_PIN\(0,1\) # set default
endif
ifneq (,$(ATRF_SLEEP))
CFLAGS += -DATRF_SLEEP=$(ATRF_SLEEP)
else
CFLAGS += -DATRF_SLEEP=GPIO\(0,2\) # set default
CFLAGS += -DATRF_SLEEP=GPIO_PIN\(0,2\) # set default
endif
ifneq (,$(ATRF_RESET))
CFLAGS += -DATRF_RESET=$(ATRF_RESET)
else
CFLAGS += -DATRF_RESET=GPIO\(0,3\) # set default
CFLAGS += -DATRF_RESET=GPIO_PIN\(0,3\) # set default
endif
ifneq (,$(ATRF_SPI_SPEED))
CFLAGS += -DATRF_SPI_SPEED=$(ATRF_SPI_SPEED)

4
tests/driver_dht/Makefile

@ -5,7 +5,7 @@ FEATURES_REQUIRED = periph_gpio
# define default pin mappings for some boards:
ifneq (,$(filter stm32f4discovery,$(BOARD)))
export DHT_GPIO ?= GPIO\(4,3\)
export DHT_GPIO ?= GPIO_PIN\(4,3\)
endif
USEMODULE += dht
@ -22,7 +22,7 @@ ifneq (,$(DHT_GPIO))
CFLAGS += -DDHT_GPIO=$(DHT_GPIO)
else
# set random default
CFLAGS += -DDHT_GPIO=GPIO\(0,0\)
CFLAGS += -DDHT_GPIO=GPIO_PIN\(0,0\)
endif
include $(RIOTBASE)/Makefile.include

2
tests/driver_isl29125/Makefile

@ -16,7 +16,7 @@ ifneq (,$(TEST_ISL29125_IRQ_PIN))
CFLAGS += -DTEST_ISL29125_IRQ_PIN=$(TEST_ISL29125_IRQ_PIN)
else
# set random default
CFLAGS += -DTEST_ISL29125_IRQ_PIN=GPIO\(0,0\)
CFLAGS += -DTEST_ISL29125_IRQ_PIN=GPIO_PIN\(0,0\)
endif
include $(RIOTBASE)/Makefile.include

4
tests/driver_kw2xrf/Makefile

@ -37,12 +37,12 @@ endif
ifneq (,$(KWRF_CS))
CFLAGS += -DKWRF_CS=$(KWRF_CS)
else
CFLAGS += -DKWRF_CS=GPIO\(0,0\) # set default
CFLAGS += -DKWRF_CS=GPIO_PIN\(0,0\) # set default
endif
ifneq (,$(KWRF_INT))
CFLAGS += -DKWRF_INT=$(KWRF_INT)
else
CFLAGS += -DKWRF_INT=GPIO\(0,1\) # set default
CFLAGS += -DKWRF_INT=GPIO_PIN\(0,1\) # set default
endif
ifneq (,$(KWRF_SPI_SPEED))
CFLAGS += -DKWRF_SPI_SPEED=$(KWRF_SPI_SPEED)

4
tests/driver_l3g4200d/Makefile

@ -22,13 +22,13 @@ ifneq (,$(TEST_L3G4200D_INT))
CFLAGS += -DTEST_L3G4200D_INT=$(TEST_L3G4200D_INT)
else
# set random default
CFLAGS += -DTEST_L3G4200D_INT=GPIO\(0,0\)
CFLAGS += -DTEST_L3G4200D_INT=GPIO_PIN\(0,0\)
endif
ifneq (,$(TEST_L3G4200D_DRDY))
CFLAGS += -DTEST_L3G4200D_DRDY=$(TEST_L3G4200D_DRDY)
else
# set random default
CFLAGS += -DTEST_L3G4200D_DRDY=GPIO\(0,1\)
CFLAGS += -DTEST_L3G4200D_DRDY=GPIO_PIN\(0,1\)
endif
include $(RIOTBASE)/Makefile.include

6
tests/driver_lis3dh/Makefile

@ -16,19 +16,19 @@ ifneq (,$(TEST_LIS3DH_CS))
CFLAGS += -DTEST_LIS3DH_CS=$(TEST_LIS3DH_CS)
else
# set arbitrary default
CFLAGS += -DTEST_LIS3DH_CS=GPIO\(0,0\)
CFLAGS += -DTEST_LIS3DH_CS=GPIO_PIN\(0,0\)
endif
ifneq (,$(TEST_LIS3DH_INT1))
CFLAGS += -DTEST_LIS3DH_INT1=$(TEST_LIS3DH_INT1)
else
# set arbitrary default
CFLAGS += -DTEST_LIS3DH_INT1=GPIO\(0,1\)
CFLAGS += -DTEST_LIS3DH_INT1=GPIO_PIN\(0,1\)
endif
ifneq (,$(TEST_LIS3DH_INT2))
CFLAGS += -DTEST_LIS3DH_INT2=$(TEST_LIS3DH_INT2)
else
# set arbitrary default
CFLAGS += -DTEST_LIS3DH_INT2=GPIO\(0,2\)
CFLAGS += -DTEST_LIS3DH_INT2=GPIO_PIN\(0,2\)
endif
include $(RIOTBASE)/Makefile.include

4
tests/driver_lsm303dlhc/Makefile

@ -35,13 +35,13 @@ ifneq (,$(TEST_LSM303DLHC_ACC_PIN))
CFLAGS += -DTEST_LSM303DLHC_ACC_PIN=$(TEST_LSM303DLHC_ACC_PIN)
else
# set random default
CFLAGS += -DTEST_LSM303DLHC_ACC_PIN=GPIO\(0,0\)
CFLAGS += -DTEST_LSM303DLHC_ACC_PIN=GPIO_PIN\(0,0\)
endif
ifneq (,$(TEST_LSM303DLHC_MAG_PIN))
CFLAGS += -DTEST_LSM303DLHC_MAG_PIN=$(TEST_LSM303DLHC_MAG_PIN)
else
# set random default
CFLAGS += -DTEST_LSM303DLHC_MAG_PIN=GPIO\(0,1\)
CFLAGS += -DTEST_LSM303DLHC_MAG_PIN=GPIO_PIN\(0,1\)
endif
include $(RIOTBASE)/Makefile.include

6
tests/driver_nrf24l01p_lowlevel/Makefile

@ -10,9 +10,9 @@ USEMODULE += nrf24l01p
FEATURES_REQUIRED = periph_spi
SPI_PORT ?= SPI_0
CE_PIN ?= GPIO\(0,0\)
CS_PIN ?= GPIO\(0,1\)
IRQ_PIN ?= GPIO\(0,2\)
CE_PIN ?= GPIO_PIN\(0,0\)
CS_PIN ?= GPIO_PIN\(0,1\)
IRQ_PIN ?= GPIO_PIN\(0,2\)
include $(RIOTBASE)/Makefile.include

2
tests/driver_nvram_spi/Makefile

@ -16,7 +16,7 @@ ifneq (,$(TEST_NVRAM_SPI_CS))
CFLAGS += -DTEST_NVRAM_SPI_CS=$(TEST_NVRAM_SPI_CS)
else
# set arbitrary default
CFLAGS += -DTEST_NVRAM_SPI_CS=GPIO\(0,0\)
CFLAGS += -DTEST_NVRAM_SPI_CS=GPIO_PIN\(0,0\)
endif
ifneq (,$(TEST_NVRAM_SPI_SIZE))
CFLAGS += -DTEST_NVRAM_SPI_SIZE=$(TEST_NVRAM_SPI_SIZE)

6
tests/driver_pcd8544/Makefile

@ -10,13 +10,13 @@ ifeq (,$(TEST_PCD8544_SPI))
CFLAGS += -DTEST_PCD8544_SPI=SPI_0
endif
ifeq (,$(TEST_PCD8544_CS))
CFLAGS += -DTEST_PCD8544_CS=GPIO\(0,0\)
CFLAGS += -DTEST_PCD8544_CS=GPIO_PIN\(0,0\)
endif
ifeq (,$(TEST_PCD8544_RESET))
CFLAGS += -DTEST_PCD8544_RESET=GPIO\(0,1\)
CFLAGS += -DTEST_PCD8544_RESET=GPIO_PIN\(0,1\)
endif
ifeq (,$(TEST_PCD8544_MODE))
CFLAGS += -DTEST_PCD8544_MODE=GPIO\(0,2\)
CFLAGS += -DTEST_PCD8544_MODE=GPIO_PIN\(0,2\)
endif
include $(RIOTBASE)/Makefile.include

6
tests/driver_pir/Makefile

@ -5,10 +5,10 @@ FEATURES_REQUIRED = periph_gpio
# Define default pin mappings for some boards:
ifneq (,$(filter stm32f4discovery,$(BOARD)))
export PIR_GPIO ?= GPIO\(3,7\)
export PIR_GPIO ?= GPIO_PIN\(3,7\)
endif
ifneq (,$(filter arduino-due,$(BOARD)))
export PIR_GPIO ?= GPIO\(0,20\)
export PIR_GPIO ?= GPIO_PIN\(0,20\)
endif
USEMODULE += pir
@ -18,7 +18,7 @@ ifneq (,$(PIR_GPIO))
CFLAGS += -DPIR_GPIO=$(PIR_GPIO)
else
# set random default
CFLAGS += -DPIR_GPIO=GPIO\(0,0\)
CFLAGS += -DPIR_GPIO=GPIO_PIN\(0,0\)
endif
include $(RIOTBASE)/Makefile.include

Loading…
Cancel
Save