diff options
author | Stephane D'Alu <sdalu@sdalu.com> | 2016-07-08 12:58:25 +0200 |
---|---|---|
committer | Stephane D'Alu <sdalu@sdalu.com> | 2016-07-08 12:58:25 +0200 |
commit | 707b3a2f97ef9751e42bc377d68ff8479f3ef438 (patch) | |
tree | 20a39a9534b461b6845d66781b172424fbe23742 | |
parent | 0375554e956f96453e9381bf01bbe092ae218359 (diff) | |
download | ChibiOS-Contrib-707b3a2f97ef9751e42bc377d68ff8479f3ef438.tar.gz ChibiOS-Contrib-707b3a2f97ef9751e42bc377d68ff8479f3ef438.tar.bz2 ChibiOS-Contrib-707b3a2f97ef9751e42bc377d68ff8479f3ef438.zip |
renamed port to NRF5 to make room for NRF52832 chip
-rw-r--r-- | demos/NRF51/OSHCHIP_V1.0/Makefile | 2 | ||||
-rw-r--r-- | demos/NRF51/RT-WVSHARE_BLE400/Makefile | 2 | ||||
-rw-r--r-- | os/hal/boards/NRF51-DK/board.mk | 2 | ||||
-rw-r--r-- | os/hal/ports/NRF5/NRF51822/hal_adc_lld.c (renamed from os/hal/ports/NRF51/NRF51822/hal_adc_lld.c) | 0 | ||||
-rw-r--r-- | os/hal/ports/NRF5/NRF51822/hal_adc_lld.h (renamed from os/hal/ports/NRF51/NRF51822/hal_adc_lld.h) | 0 | ||||
-rw-r--r-- | os/hal/ports/NRF5/NRF51822/hal_ext_lld.c (renamed from os/hal/ports/NRF51/NRF51822/hal_ext_lld.c) | 0 | ||||
-rw-r--r-- | os/hal/ports/NRF5/NRF51822/hal_ext_lld.h (renamed from os/hal/ports/NRF51/NRF51822/hal_ext_lld.h) | 0 | ||||
-rw-r--r-- | os/hal/ports/NRF5/NRF51822/hal_ext_lld_isr.c (renamed from os/hal/ports/NRF51/NRF51822/hal_ext_lld_isr.c) | 0 | ||||
-rw-r--r-- | os/hal/ports/NRF5/NRF51822/hal_ext_lld_isr.h (renamed from os/hal/ports/NRF51/NRF51822/hal_ext_lld_isr.h) | 0 | ||||
-rw-r--r-- | os/hal/ports/NRF5/NRF51822/hal_gpt_lld.c (renamed from os/hal/ports/NRF51/NRF51822/hal_gpt_lld.c) | 0 | ||||
-rw-r--r-- | os/hal/ports/NRF5/NRF51822/hal_gpt_lld.h (renamed from os/hal/ports/NRF51/NRF51822/hal_gpt_lld.h) | 0 | ||||
-rw-r--r-- | os/hal/ports/NRF5/NRF51822/hal_i2c_lld.c (renamed from os/hal/ports/NRF51/NRF51822/hal_i2c_lld.c) | 0 | ||||
-rw-r--r-- | os/hal/ports/NRF5/NRF51822/hal_i2c_lld.h (renamed from os/hal/ports/NRF51/NRF51822/hal_i2c_lld.h) | 0 | ||||
-rw-r--r-- | os/hal/ports/NRF5/NRF51822/hal_lld.c (renamed from os/hal/ports/NRF51/NRF51822/hal_lld.c) | 0 | ||||
-rw-r--r-- | os/hal/ports/NRF5/NRF51822/hal_lld.h (renamed from os/hal/ports/NRF51/NRF51822/hal_lld.h) | 0 | ||||
-rw-r--r-- | os/hal/ports/NRF5/NRF51822/hal_pal_lld.c (renamed from os/hal/ports/NRF51/NRF51822/hal_pal_lld.c) | 0 | ||||
-rw-r--r-- | os/hal/ports/NRF5/NRF51822/hal_pal_lld.h (renamed from os/hal/ports/NRF51/NRF51822/hal_pal_lld.h) | 0 | ||||
-rw-r--r-- | os/hal/ports/NRF5/NRF51822/hal_pwm_lld.c (renamed from os/hal/ports/NRF51/NRF51822/hal_pwm_lld.c) | 0 | ||||
-rw-r--r-- | os/hal/ports/NRF5/NRF51822/hal_pwm_lld.h (renamed from os/hal/ports/NRF51/NRF51822/hal_pwm_lld.h) | 0 | ||||
-rw-r--r-- | os/hal/ports/NRF5/NRF51822/hal_qei_lld.c (renamed from os/hal/ports/NRF51/NRF51822/hal_qei_lld.c) | 0 | ||||
-rw-r--r-- | os/hal/ports/NRF5/NRF51822/hal_qei_lld.h (renamed from os/hal/ports/NRF51/NRF51822/hal_qei_lld.h) | 0 | ||||
-rw-r--r-- | os/hal/ports/NRF5/NRF51822/hal_rng_lld.c (renamed from os/hal/ports/NRF51/NRF51822/hal_rng_lld.c) | 0 | ||||
-rw-r--r-- | os/hal/ports/NRF5/NRF51822/hal_rng_lld.h (renamed from os/hal/ports/NRF51/NRF51822/hal_rng_lld.h) | 0 | ||||
-rw-r--r-- | os/hal/ports/NRF5/NRF51822/hal_serial_lld.c (renamed from os/hal/ports/NRF51/NRF51822/hal_serial_lld.c) | 0 | ||||
-rw-r--r-- | os/hal/ports/NRF5/NRF51822/hal_serial_lld.h (renamed from os/hal/ports/NRF51/NRF51822/hal_serial_lld.h) | 0 | ||||
-rw-r--r-- | os/hal/ports/NRF5/NRF51822/hal_spi_lld.c (renamed from os/hal/ports/NRF51/NRF51822/hal_spi_lld.c) | 0 | ||||
-rw-r--r-- | os/hal/ports/NRF5/NRF51822/hal_spi_lld.h (renamed from os/hal/ports/NRF51/NRF51822/hal_spi_lld.h) | 0 | ||||
-rw-r--r-- | os/hal/ports/NRF5/NRF51822/hal_st_lld.c (renamed from os/hal/ports/NRF51/NRF51822/hal_st_lld.c) | 0 | ||||
-rw-r--r-- | os/hal/ports/NRF5/NRF51822/hal_st_lld.h (renamed from os/hal/ports/NRF51/NRF51822/hal_st_lld.h) | 0 | ||||
-rw-r--r-- | os/hal/ports/NRF5/NRF51822/hal_wdg_lld.c (renamed from os/hal/ports/NRF51/NRF51822/hal_wdg_lld.c) | 0 | ||||
-rw-r--r-- | os/hal/ports/NRF5/NRF51822/hal_wdg_lld.h (renamed from os/hal/ports/NRF51/NRF51822/hal_wdg_lld.h) | 0 | ||||
-rw-r--r-- | os/hal/ports/NRF5/NRF51822/nrf51.h (renamed from os/hal/ports/NRF51/NRF51822/nrf51.h) | 0 | ||||
-rw-r--r-- | os/hal/ports/NRF5/NRF51822/nrf51_bitfields.h (renamed from os/hal/ports/NRF51/NRF51822/nrf51_bitfields.h) | 0 | ||||
-rw-r--r-- | os/hal/ports/NRF5/NRF51822/nrf51_delay.h (renamed from os/hal/ports/NRF51/NRF51822/nrf51_delay.h) | 0 | ||||
-rw-r--r-- | os/hal/ports/NRF5/NRF51822/platform.mk | 65 | ||||
-rw-r--r-- | os/hal/ports/NRF51/NRF51822/platform.mk | 65 |
36 files changed, 68 insertions, 68 deletions
diff --git a/demos/NRF51/OSHCHIP_V1.0/Makefile b/demos/NRF51/OSHCHIP_V1.0/Makefile index 6333de9..32ec1d8 100644 --- a/demos/NRF51/OSHCHIP_V1.0/Makefile +++ b/demos/NRF51/OSHCHIP_V1.0/Makefile @@ -92,7 +92,7 @@ CHIBIOS_CONTRIB = $(CHIBIOS)/../ChibiOS-Contrib include $(CHIBIOS_CONTRIB)/os/common/startup/ARMCMx/compilers/GCC/mk/startup_nrf51.mk
# HAL-OSAL files (optional).
include $(CHIBIOS)/os/hal/hal.mk
-include $(CHIBIOS_CONTRIB)/os/hal/ports/NRF51/NRF51822/platform.mk
+include $(CHIBIOS_CONTRIB)/os/hal/ports/NRF5/NRF51822/platform.mk
include $(CHIBIOS_CONTRIB)/os/hal/boards/OSHCHIP_V1.0/board.mk
include $(CHIBIOS)/os/hal/osal/rt/osal.mk
# RTOS files (optional).
diff --git a/demos/NRF51/RT-WVSHARE_BLE400/Makefile b/demos/NRF51/RT-WVSHARE_BLE400/Makefile index d9d0e95..cb1ee35 100644 --- a/demos/NRF51/RT-WVSHARE_BLE400/Makefile +++ b/demos/NRF51/RT-WVSHARE_BLE400/Makefile @@ -92,7 +92,7 @@ CHIBIOS_CONTRIB = $(CHIBIOS)/../ChibiOS-Contrib include $(CHIBIOS_CONTRIB)/os/common/startup/ARMCMx/compilers/GCC/mk/startup_nrf51.mk
# HAL-OSAL files (optional).
include $(CHIBIOS)/os/hal/hal.mk
-include $(CHIBIOS_CONTRIB)/os/hal/ports/NRF51/NRF51822/platform.mk
+include $(CHIBIOS_CONTRIB)/os/hal/ports/NRF5/NRF51822/platform.mk
include $(CHIBIOS_CONTRIB)/os/hal/boards/WVSHARE_BLE400/board.mk
include $(CHIBIOS)/os/hal/osal/rt/osal.mk
# RTOS files (optional).
diff --git a/os/hal/boards/NRF51-DK/board.mk b/os/hal/boards/NRF51-DK/board.mk index 9619bd4..631927b 100644 --- a/os/hal/boards/NRF51-DK/board.mk +++ b/os/hal/boards/NRF51-DK/board.mk @@ -8,4 +8,4 @@ BOARDINC = ${CHIBIOS_CONTRIB}/os/hal/boards/NRF51-DK JLINK_DEVICE = nrf51422 JLINK_PRE_FLASH = w4 4001e504 1 JLINK_ERASE_ALL = w4 4001e504 2\nw4 4001e50c 1\nsleep 100 - +JLINK_PIN_RESET = w4 40000544 1 diff --git a/os/hal/ports/NRF51/NRF51822/hal_adc_lld.c b/os/hal/ports/NRF5/NRF51822/hal_adc_lld.c index 7f3413c..7f3413c 100644 --- a/os/hal/ports/NRF51/NRF51822/hal_adc_lld.c +++ b/os/hal/ports/NRF5/NRF51822/hal_adc_lld.c diff --git a/os/hal/ports/NRF51/NRF51822/hal_adc_lld.h b/os/hal/ports/NRF5/NRF51822/hal_adc_lld.h index 36854fb..36854fb 100644 --- a/os/hal/ports/NRF51/NRF51822/hal_adc_lld.h +++ b/os/hal/ports/NRF5/NRF51822/hal_adc_lld.h diff --git a/os/hal/ports/NRF51/NRF51822/hal_ext_lld.c b/os/hal/ports/NRF5/NRF51822/hal_ext_lld.c index 47736c7..47736c7 100644 --- a/os/hal/ports/NRF51/NRF51822/hal_ext_lld.c +++ b/os/hal/ports/NRF5/NRF51822/hal_ext_lld.c diff --git a/os/hal/ports/NRF51/NRF51822/hal_ext_lld.h b/os/hal/ports/NRF5/NRF51822/hal_ext_lld.h index 37ae721..37ae721 100644 --- a/os/hal/ports/NRF51/NRF51822/hal_ext_lld.h +++ b/os/hal/ports/NRF5/NRF51822/hal_ext_lld.h diff --git a/os/hal/ports/NRF51/NRF51822/hal_ext_lld_isr.c b/os/hal/ports/NRF5/NRF51822/hal_ext_lld_isr.c index 52f07d6..52f07d6 100644 --- a/os/hal/ports/NRF51/NRF51822/hal_ext_lld_isr.c +++ b/os/hal/ports/NRF5/NRF51822/hal_ext_lld_isr.c diff --git a/os/hal/ports/NRF51/NRF51822/hal_ext_lld_isr.h b/os/hal/ports/NRF5/NRF51822/hal_ext_lld_isr.h index 736e55c..736e55c 100644 --- a/os/hal/ports/NRF51/NRF51822/hal_ext_lld_isr.h +++ b/os/hal/ports/NRF5/NRF51822/hal_ext_lld_isr.h diff --git a/os/hal/ports/NRF51/NRF51822/hal_gpt_lld.c b/os/hal/ports/NRF5/NRF51822/hal_gpt_lld.c index f39470f..f39470f 100644 --- a/os/hal/ports/NRF51/NRF51822/hal_gpt_lld.c +++ b/os/hal/ports/NRF5/NRF51822/hal_gpt_lld.c diff --git a/os/hal/ports/NRF51/NRF51822/hal_gpt_lld.h b/os/hal/ports/NRF5/NRF51822/hal_gpt_lld.h index 9b4cc9b..9b4cc9b 100644 --- a/os/hal/ports/NRF51/NRF51822/hal_gpt_lld.h +++ b/os/hal/ports/NRF5/NRF51822/hal_gpt_lld.h diff --git a/os/hal/ports/NRF51/NRF51822/hal_i2c_lld.c b/os/hal/ports/NRF5/NRF51822/hal_i2c_lld.c index 611a004..611a004 100644 --- a/os/hal/ports/NRF51/NRF51822/hal_i2c_lld.c +++ b/os/hal/ports/NRF5/NRF51822/hal_i2c_lld.c diff --git a/os/hal/ports/NRF51/NRF51822/hal_i2c_lld.h b/os/hal/ports/NRF5/NRF51822/hal_i2c_lld.h index e2c3d07..e2c3d07 100644 --- a/os/hal/ports/NRF51/NRF51822/hal_i2c_lld.h +++ b/os/hal/ports/NRF5/NRF51822/hal_i2c_lld.h diff --git a/os/hal/ports/NRF51/NRF51822/hal_lld.c b/os/hal/ports/NRF5/NRF51822/hal_lld.c index af5e377..af5e377 100644 --- a/os/hal/ports/NRF51/NRF51822/hal_lld.c +++ b/os/hal/ports/NRF5/NRF51822/hal_lld.c diff --git a/os/hal/ports/NRF51/NRF51822/hal_lld.h b/os/hal/ports/NRF5/NRF51822/hal_lld.h index e404020..e404020 100644 --- a/os/hal/ports/NRF51/NRF51822/hal_lld.h +++ b/os/hal/ports/NRF5/NRF51822/hal_lld.h diff --git a/os/hal/ports/NRF51/NRF51822/hal_pal_lld.c b/os/hal/ports/NRF5/NRF51822/hal_pal_lld.c index 69fc9fe..69fc9fe 100644 --- a/os/hal/ports/NRF51/NRF51822/hal_pal_lld.c +++ b/os/hal/ports/NRF5/NRF51822/hal_pal_lld.c diff --git a/os/hal/ports/NRF51/NRF51822/hal_pal_lld.h b/os/hal/ports/NRF5/NRF51822/hal_pal_lld.h index 5032916..5032916 100644 --- a/os/hal/ports/NRF51/NRF51822/hal_pal_lld.h +++ b/os/hal/ports/NRF5/NRF51822/hal_pal_lld.h diff --git a/os/hal/ports/NRF51/NRF51822/hal_pwm_lld.c b/os/hal/ports/NRF5/NRF51822/hal_pwm_lld.c index 456dcff..456dcff 100644 --- a/os/hal/ports/NRF51/NRF51822/hal_pwm_lld.c +++ b/os/hal/ports/NRF5/NRF51822/hal_pwm_lld.c diff --git a/os/hal/ports/NRF51/NRF51822/hal_pwm_lld.h b/os/hal/ports/NRF5/NRF51822/hal_pwm_lld.h index e2982d8..e2982d8 100644 --- a/os/hal/ports/NRF51/NRF51822/hal_pwm_lld.h +++ b/os/hal/ports/NRF5/NRF51822/hal_pwm_lld.h diff --git a/os/hal/ports/NRF51/NRF51822/hal_qei_lld.c b/os/hal/ports/NRF5/NRF51822/hal_qei_lld.c index 0979551..0979551 100644 --- a/os/hal/ports/NRF51/NRF51822/hal_qei_lld.c +++ b/os/hal/ports/NRF5/NRF51822/hal_qei_lld.c diff --git a/os/hal/ports/NRF51/NRF51822/hal_qei_lld.h b/os/hal/ports/NRF5/NRF51822/hal_qei_lld.h index 5037591..5037591 100644 --- a/os/hal/ports/NRF51/NRF51822/hal_qei_lld.h +++ b/os/hal/ports/NRF5/NRF51822/hal_qei_lld.h diff --git a/os/hal/ports/NRF51/NRF51822/hal_rng_lld.c b/os/hal/ports/NRF5/NRF51822/hal_rng_lld.c index 0a6ffbf..0a6ffbf 100644 --- a/os/hal/ports/NRF51/NRF51822/hal_rng_lld.c +++ b/os/hal/ports/NRF5/NRF51822/hal_rng_lld.c diff --git a/os/hal/ports/NRF51/NRF51822/hal_rng_lld.h b/os/hal/ports/NRF5/NRF51822/hal_rng_lld.h index c272b6c..c272b6c 100644 --- a/os/hal/ports/NRF51/NRF51822/hal_rng_lld.h +++ b/os/hal/ports/NRF5/NRF51822/hal_rng_lld.h diff --git a/os/hal/ports/NRF51/NRF51822/hal_serial_lld.c b/os/hal/ports/NRF5/NRF51822/hal_serial_lld.c index 029c5da..029c5da 100644 --- a/os/hal/ports/NRF51/NRF51822/hal_serial_lld.c +++ b/os/hal/ports/NRF5/NRF51822/hal_serial_lld.c diff --git a/os/hal/ports/NRF51/NRF51822/hal_serial_lld.h b/os/hal/ports/NRF5/NRF51822/hal_serial_lld.h index 79955b1..79955b1 100644 --- a/os/hal/ports/NRF51/NRF51822/hal_serial_lld.h +++ b/os/hal/ports/NRF5/NRF51822/hal_serial_lld.h diff --git a/os/hal/ports/NRF51/NRF51822/hal_spi_lld.c b/os/hal/ports/NRF5/NRF51822/hal_spi_lld.c index 7a70c13..7a70c13 100644 --- a/os/hal/ports/NRF51/NRF51822/hal_spi_lld.c +++ b/os/hal/ports/NRF5/NRF51822/hal_spi_lld.c diff --git a/os/hal/ports/NRF51/NRF51822/hal_spi_lld.h b/os/hal/ports/NRF5/NRF51822/hal_spi_lld.h index 4d1c452..4d1c452 100644 --- a/os/hal/ports/NRF51/NRF51822/hal_spi_lld.h +++ b/os/hal/ports/NRF5/NRF51822/hal_spi_lld.h diff --git a/os/hal/ports/NRF51/NRF51822/hal_st_lld.c b/os/hal/ports/NRF5/NRF51822/hal_st_lld.c index 181bc06..181bc06 100644 --- a/os/hal/ports/NRF51/NRF51822/hal_st_lld.c +++ b/os/hal/ports/NRF5/NRF51822/hal_st_lld.c diff --git a/os/hal/ports/NRF51/NRF51822/hal_st_lld.h b/os/hal/ports/NRF5/NRF51822/hal_st_lld.h index 8d12d2e..8d12d2e 100644 --- a/os/hal/ports/NRF51/NRF51822/hal_st_lld.h +++ b/os/hal/ports/NRF5/NRF51822/hal_st_lld.h diff --git a/os/hal/ports/NRF51/NRF51822/hal_wdg_lld.c b/os/hal/ports/NRF5/NRF51822/hal_wdg_lld.c index 0ce37ee..0ce37ee 100644 --- a/os/hal/ports/NRF51/NRF51822/hal_wdg_lld.c +++ b/os/hal/ports/NRF5/NRF51822/hal_wdg_lld.c diff --git a/os/hal/ports/NRF51/NRF51822/hal_wdg_lld.h b/os/hal/ports/NRF5/NRF51822/hal_wdg_lld.h index 8fea304..8fea304 100644 --- a/os/hal/ports/NRF51/NRF51822/hal_wdg_lld.h +++ b/os/hal/ports/NRF5/NRF51822/hal_wdg_lld.h diff --git a/os/hal/ports/NRF51/NRF51822/nrf51.h b/os/hal/ports/NRF5/NRF51822/nrf51.h index 1ed33d6..1ed33d6 100644 --- a/os/hal/ports/NRF51/NRF51822/nrf51.h +++ b/os/hal/ports/NRF5/NRF51822/nrf51.h diff --git a/os/hal/ports/NRF51/NRF51822/nrf51_bitfields.h b/os/hal/ports/NRF5/NRF51822/nrf51_bitfields.h index 0ab4598..0ab4598 100644 --- a/os/hal/ports/NRF51/NRF51822/nrf51_bitfields.h +++ b/os/hal/ports/NRF5/NRF51822/nrf51_bitfields.h diff --git a/os/hal/ports/NRF51/NRF51822/nrf51_delay.h b/os/hal/ports/NRF5/NRF51822/nrf51_delay.h index 2a672db..2a672db 100644 --- a/os/hal/ports/NRF51/NRF51822/nrf51_delay.h +++ b/os/hal/ports/NRF5/NRF51822/nrf51_delay.h diff --git a/os/hal/ports/NRF5/NRF51822/platform.mk b/os/hal/ports/NRF5/NRF51822/platform.mk new file mode 100644 index 0000000..4da40be --- /dev/null +++ b/os/hal/ports/NRF5/NRF51822/platform.mk @@ -0,0 +1,65 @@ +ifeq ($(USE_SMART_BUILD),yes) +HALCONF := $(strip $(shell cat halconf.h halconf_community.h 2>/dev/null | egrep -e "define")) + +# List of all the NRF51x platform files. +PLATFORMSRC = ${CHIBIOS}/os/hal/ports/common/ARMCMx/nvic.c \ + ${CHIBIOS_CONTRIB}/os/hal/ports/NRF5/NRF51822/hal_lld.c \ + ${CHIBIOS_CONTRIB}/os/hal/ports/NRF5/NRF51822/hal_st_lld.c + +ifneq ($(findstring HAL_USE_PAL TRUE,$(HALCONF)),) +PLATFORMSRC += ${CHIBIOS_CONTRIB}/os/hal/ports/NRF5/NRF51822/hal_pal_lld.c +endif +ifneq ($(findstring HAL_USE_SERIAL TRUE,$(HALCONF)),) +PLATFORMSRC += ${CHIBIOS_CONTRIB}/os/hal/ports/NRF5/NRF51822/hal_serial_lld.c +endif +ifneq ($(findstring HAL_USE_SPI TRUE,$(HALCONF)),) +PLATFORMSRC += ${CHIBIOS_CONTRIB}/os/hal/ports/NRF5/NRF51822/hal_spi_lld.c +endif +ifneq ($(findstring HAL_USE_EXT TRUE,$(HALCONF)),) +PLATFORMSRC += ${CHIBIOS_CONTRIB}/os/hal/ports/NRF5/NRF51822/hal_ext_lld_isr.c \ + ${CHIBIOS_CONTRIB}/os/hal/ports/NRF5/NRF51822/hal_ext_lld.c +endif +ifneq ($(findstring HAL_USE_I2C TRUE,$(HALCONF)),) +PLATFORMSRC += ${CHIBIOS_CONTRIB}/os/hal/ports/NRF5/NRF51822/hal_i2c_lld.c +endif +ifneq ($(findstring HAL_USE_ADC TRUE,$(HALCONF)),) +PLATFORMSRC += ${CHIBIOS_CONTRIB}/os/hal/ports/NRF5/NRF51822/hal_adc_lld.c +endif +ifneq ($(findstring HAL_USE_GPT TRUE,$(HALCONF)),) +PLATFORMSRC += ${CHIBIOS_CONTRIB}/os/hal/ports/NRF5/NRF51822/hal_gpt_lld.c +endif +ifneq ($(findstring HAL_USE_WDG TRUE,$(HALCONF)),) +PLATFORMSRC += ${CHIBIOS_CONTRIB}/os/hal/ports/NRF5/NRF51822/hal_wdg_lld.c +endif +ifneq ($(findstring HAL_USE_RNG TRUE,$(HALCONF)),) +PLATFORMSRC += ${CHIBIOS_CONTRIB}/os/hal/ports/NRF5/NRF51822/hal_rng_lld.c +endif +ifneq ($(findstring HAL_USE_PWM TRUE,$(HALCONF)),) +PLATFORMSRC += ${CHIBIOS_CONTRIB}/os/hal/ports/NRF5/NRF51822/hal_pwm_lld.c +endif +ifneq ($(findstring HAL_USE_QEI TRUE,$(HALCONF)),) +PLATFORMSRC += ${CHIBIOS_CONTRIB}/os/hal/ports/NRF5/NRF51822/hal_qei_lld.c +endif +else +PLATFORMSRC = ${CHIBIOS}/os/hal/ports/common/ARMCMx/nvic.c \ + ${CHIBIOS_CONTRIB}/os/hal/ports/NRF5/NRF51822/hal_lld.c \ + ${CHIBIOS_CONTRIB}/os/hal/ports/NRF5/NRF51822/hal_pal_lld.c \ + ${CHIBIOS_CONTRIB}/os/hal/ports/NRF5/NRF51822/hal_serial_lld.c \ + ${CHIBIOS_CONTRIB}/os/hal/ports/NRF5/NRF51822/hal_st_lld.c \ + ${CHIBIOS_CONTRIB}/os/hal/ports/NRF5/NRF51822/hal_spi_lld.c \ + ${CHIBIOS_CONTRIB}/os/hal/ports/NRF5/NRF51822/hal_ext_lld_isr.c \ + ${CHIBIOS_CONTRIB}/os/hal/ports/NRF5/NRF51822/hal_ext_lld.c \ + ${CHIBIOS_CONTRIB}/os/hal/ports/NRF5/NRF51822/hal_i2c_lld.c \ + ${CHIBIOS_CONTRIB}/os/hal/ports/NRF5/NRF51822/hal_adc_lld.c \ + ${CHIBIOS_CONTRIB}/os/hal/ports/NRF5/NRF51822/hal_gpt_lld.c \ + ${CHIBIOS_CONTRIB}/os/hal/ports/NRF5/NRF51822/hal_wdg_lld.c \ + ${CHIBIOS_CONTRIB}/os/hal/ports/NRF5/NRF51822/hal_rng_lld.c \ + ${CHIBIOS_CONTRIB}/os/hal/ports/NRF5/NRF51822/hal_pwm_lld.c \ + ${CHIBIOS_CONTRIB}/os/hal/ports/NRF5/NRF51822/hal_qei_lld.c +endif + +# Required include directories +PLATFORMINC = ${CHIBIOS}/os/hal/ports/common/ARMCMx \ + ${CHIBIOS_CONTRIB}/os/hal/ports/NRF5/NRF51822 + + diff --git a/os/hal/ports/NRF51/NRF51822/platform.mk b/os/hal/ports/NRF51/NRF51822/platform.mk deleted file mode 100644 index ad5b2c4..0000000 --- a/os/hal/ports/NRF51/NRF51822/platform.mk +++ /dev/null @@ -1,65 +0,0 @@ -ifeq ($(USE_SMART_BUILD),yes) -HALCONF := $(strip $(shell cat halconf.h halconf_community.h 2>/dev/null | egrep -e "define")) - -# List of all the NRF51x platform files. -PLATFORMSRC = ${CHIBIOS}/os/hal/ports/common/ARMCMx/nvic.c \ - ${CHIBIOS_CONTRIB}/os/hal/ports/NRF51/NRF51822/hal_lld.c \ - ${CHIBIOS_CONTRIB}/os/hal/ports/NRF51/NRF51822/hal_st_lld.c - -ifneq ($(findstring HAL_USE_PAL TRUE,$(HALCONF)),) -PLATFORMSRC += ${CHIBIOS_CONTRIB}/os/hal/ports/NRF51/NRF51822/hal_pal_lld.c -endif -ifneq ($(findstring HAL_USE_SERIAL TRUE,$(HALCONF)),) -PLATFORMSRC += ${CHIBIOS_CONTRIB}/os/hal/ports/NRF51/NRF51822/hal_serial_lld.c -endif -ifneq ($(findstring HAL_USE_SPI TRUE,$(HALCONF)),) -PLATFORMSRC += ${CHIBIOS_CONTRIB}/os/hal/ports/NRF51/NRF51822/hal_spi_lld.c -endif -ifneq ($(findstring HAL_USE_EXT TRUE,$(HALCONF)),) -PLATFORMSRC += ${CHIBIOS_CONTRIB}/os/hal/ports/NRF51/NRF51822/hal_ext_lld_isr.c \ - ${CHIBIOS_CONTRIB}/os/hal/ports/NRF51/NRF51822/hal_ext_lld.c -endif -ifneq ($(findstring HAL_USE_I2C TRUE,$(HALCONF)),) -PLATFORMSRC += ${CHIBIOS_CONTRIB}/os/hal/ports/NRF51/NRF51822/hal_i2c_lld.c -endif -ifneq ($(findstring HAL_USE_ADC TRUE,$(HALCONF)),) -PLATFORMSRC += ${CHIBIOS_CONTRIB}/os/hal/ports/NRF51/NRF51822/hal_adc_lld.c -endif -ifneq ($(findstring HAL_USE_GPT TRUE,$(HALCONF)),) -PLATFORMSRC += ${CHIBIOS_CONTRIB}/os/hal/ports/NRF51/NRF51822/hal_gpt_lld.c -endif -ifneq ($(findstring HAL_USE_WDG TRUE,$(HALCONF)),) -PLATFORMSRC += ${CHIBIOS_CONTRIB}/os/hal/ports/NRF51/NRF51822/hal_wdg_lld.c -endif -ifneq ($(findstring HAL_USE_RNG TRUE,$(HALCONF)),) -PLATFORMSRC += ${CHIBIOS_CONTRIB}/os/hal/ports/NRF51/NRF51822/hal_rng_lld.c -endif -ifneq ($(findstring HAL_USE_PWM TRUE,$(HALCONF)),) -PLATFORMSRC += ${CHIBIOS_CONTRIB}/os/hal/ports/NRF51/NRF51822/hal_pwm_lld.c -endif -ifneq ($(findstring HAL_USE_QEI TRUE,$(HALCONF)),) -PLATFORMSRC += ${CHIBIOS_CONTRIB}/os/hal/ports/NRF51/NRF51822/hal_qei_lld.c -endif -else -PLATFORMSRC = ${CHIBIOS}/os/hal/ports/common/ARMCMx/nvic.c \ - ${CHIBIOS_CONTRIB}/os/hal/ports/NRF51/NRF51822/hal_lld.c \ - ${CHIBIOS_CONTRIB}/os/hal/ports/NRF51/NRF51822/hal_pal_lld.c \ - ${CHIBIOS_CONTRIB}/os/hal/ports/NRF51/NRF51822/hal_serial_lld.c \ - ${CHIBIOS_CONTRIB}/os/hal/ports/NRF51/NRF51822/hal_st_lld.c \ - ${CHIBIOS_CONTRIB}/os/hal/ports/NRF51/NRF51822/hal_spi_lld.c \ - ${CHIBIOS_CONTRIB}/os/hal/ports/NRF51/NRF51822/hal_ext_lld_isr.c \ - ${CHIBIOS_CONTRIB}/os/hal/ports/NRF51/NRF51822/hal_ext_lld.c \ - ${CHIBIOS_CONTRIB}/os/hal/ports/NRF51/NRF51822/hal_i2c_lld.c \ - ${CHIBIOS_CONTRIB}/os/hal/ports/NRF51/NRF51822/hal_adc_lld.c \ - ${CHIBIOS_CONTRIB}/os/hal/ports/NRF51/NRF51822/hal_gpt_lld.c \ - ${CHIBIOS_CONTRIB}/os/hal/ports/NRF51/NRF51822/hal_wdg_lld.c \ - ${CHIBIOS_CONTRIB}/os/hal/ports/NRF51/NRF51822/hal_rng_lld.c \ - ${CHIBIOS_CONTRIB}/os/hal/ports/NRF51/NRF51822/hal_pwm_lld.c \ - ${CHIBIOS_CONTRIB}/os/hal/ports/NRF51/NRF51822/hal_qei_lld.c -endif - -# Required include directories -PLATFORMINC = ${CHIBIOS}/os/hal/ports/common/ARMCMx \ - ${CHIBIOS_CONTRIB}/os/hal/ports/NRF51/NRF51822 - - |