2019-04-06 09:08:09 -04:00
|
|
|
/* SPDX-License-Identifier: Apache-2.0 */
|
|
|
|
|
2018-01-25 12:36:23 -06:00
|
|
|
/* SoC level DTS fixup file */
|
|
|
|
|
2018-11-13 15:15:23 +01:00
|
|
|
#define DT_NUM_IRQ_PRIO_BITS DT_ARM_V7M_NVIC_E000E100_ARM_NUM_IRQ_PRIORITY_BITS
|
2018-11-13 12:24:15 +01:00
|
|
|
|
2018-10-03 16:07:41 +02:00
|
|
|
#define DT_ADC_0_NAME DT_NORDIC_NRF_SAADC_ADC_0_LABEL
|
2018-11-13 12:24:15 +01:00
|
|
|
|
2018-12-20 15:36:53 +01:00
|
|
|
#ifdef DT_NORDIC_NRF_UART_UART_0_LABEL
|
2018-10-03 14:39:06 +02:00
|
|
|
#define DT_UART_0_NAME DT_NORDIC_NRF_UART_UART_0_LABEL
|
2018-12-20 15:36:53 +01:00
|
|
|
#else
|
|
|
|
#define DT_UART_0_NAME DT_NORDIC_NRF_UARTE_UART_0_LABEL
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define DT_UART_1_NAME DT_NORDIC_NRF_UARTE_UART_1_LABEL
|
2018-06-21 11:51:46 +02:00
|
|
|
|
2019-06-11 14:20:32 -05:00
|
|
|
#define DT_FLASH_DEV_NAME DT_INST_0_NORDIC_NRF52_FLASH_CONTROLLER_LABEL
|
2018-01-25 12:36:23 -06:00
|
|
|
|
2018-10-04 12:37:10 +02:00
|
|
|
#define DT_GPIO_P0_DEV_NAME DT_NORDIC_NRF_GPIO_GPIO_0_LABEL
|
|
|
|
#define DT_GPIO_P1_DEV_NAME DT_NORDIC_NRF_GPIO_GPIO_1_LABEL
|
2018-11-13 12:24:15 +01:00
|
|
|
|
2019-12-06 11:09:51 +01:00
|
|
|
#if defined(DT_NORDIC_NRF_TWIM_I2C_0_LABEL)
|
|
|
|
#define DT_I2C_0_NAME DT_NORDIC_NRF_TWIM_I2C_0_LABEL
|
|
|
|
#else
|
|
|
|
#define DT_I2C_0_NAME DT_NORDIC_NRF_TWI_I2C_0_LABEL
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(DT_NORDIC_NRF_TWIM_I2C_1_LABEL)
|
|
|
|
#define DT_I2C_1_NAME DT_NORDIC_NRF_TWIM_I2C_1_LABEL
|
|
|
|
#else
|
|
|
|
#define DT_I2C_1_NAME DT_NORDIC_NRF_TWI_I2C_1_LABEL
|
|
|
|
#endif
|
2018-11-13 15:15:23 +01:00
|
|
|
|
2019-12-06 11:41:51 +01:00
|
|
|
#if defined(DT_NORDIC_NRF_SPIM_SPI_0_LABEL)
|
|
|
|
#define DT_SPI_0_NAME DT_NORDIC_NRF_SPIM_SPI_0_LABEL
|
|
|
|
#else
|
2018-10-03 14:08:07 +02:00
|
|
|
#define DT_SPI_0_NAME DT_NORDIC_NRF_SPI_SPI_0_LABEL
|
2019-12-06 11:41:51 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(DT_NORDIC_NRF_SPIM_SPI_1_LABEL)
|
|
|
|
#define DT_SPI_1_NAME DT_NORDIC_NRF_SPIM_SPI_1_LABEL
|
|
|
|
#else
|
2018-10-03 14:08:07 +02:00
|
|
|
#define DT_SPI_1_NAME DT_NORDIC_NRF_SPI_SPI_1_LABEL
|
2019-12-06 11:41:51 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(DT_NORDIC_NRF_SPIM_SPI_2_LABEL)
|
|
|
|
#define DT_SPI_2_NAME DT_NORDIC_NRF_SPIM_SPI_2_LABEL
|
|
|
|
#else
|
2018-10-03 14:08:07 +02:00
|
|
|
#define DT_SPI_2_NAME DT_NORDIC_NRF_SPI_SPI_2_LABEL
|
2019-12-06 11:41:51 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#define DT_SPI_3_NAME DT_NORDIC_NRF_SPIM_SPI_3_LABEL
|
2018-11-13 15:15:23 +01:00
|
|
|
|
2018-10-04 12:52:00 +02:00
|
|
|
#define DT_WDT_0_NAME DT_NORDIC_NRF_WATCHDOG_WDT_0_LABEL
|
2018-11-13 12:24:15 +01:00
|
|
|
|
2019-06-11 13:27:19 +02:00
|
|
|
#define DT_RTC_0_NAME DT_NORDIC_NRF_RTC_RTC_0_LABEL
|
|
|
|
#define DT_RTC_1_NAME DT_NORDIC_NRF_RTC_RTC_1_LABEL
|
|
|
|
#define DT_RTC_2_NAME DT_NORDIC_NRF_RTC_RTC_2_LABEL
|
|
|
|
|
2018-01-25 12:36:23 -06:00
|
|
|
/* End of SoC Level DTS fixup file */
|