2018-01-26 02:36:23 +08:00
|
|
|
/* SoC level DTS fixup file */
|
|
|
|
|
2016-09-23 21:13:13 +08:00
|
|
|
#define CONFIG_NUM_IRQ_PRIO_BITS ARM_V6M_NVIC_E000E100_ARM_NUM_IRQ_PRIORITY_BITS
|
2018-06-28 20:47:45 +08:00
|
|
|
|
|
|
|
#define CONFIG_ADC_0_IRQ NORDIC_NRF_ADC_40007000_IRQ_0
|
|
|
|
#define CONFIG_ADC_0_IRQ_PRI NORDIC_NRF_ADC_40007000_IRQ_0_PRIORITY
|
|
|
|
#define CONFIG_ADC_0_NAME NORDIC_NRF_ADC_40007000_LABEL
|
|
|
|
|
2018-07-11 20:11:18 +08:00
|
|
|
#define CONFIG_UART_0_BASE NORDIC_NRF_UART_40002000_BASE_ADDRESS
|
2018-06-08 21:29:24 +08:00
|
|
|
#define CONFIG_UART_0_IRQ_PRI NORDIC_NRF_UART_40002000_IRQ_0_PRIORITY
|
2018-07-11 20:11:18 +08:00
|
|
|
#define CONFIG_UART_0_IRQ_NUM NORDIC_NRF_UART_40002000_IRQ_0
|
2018-06-08 21:29:24 +08:00
|
|
|
#define CONFIG_UART_0_BAUD_RATE NORDIC_NRF_UART_40002000_CURRENT_SPEED
|
|
|
|
#define CONFIG_UART_0_NAME NORDIC_NRF_UART_40002000_LABEL
|
2018-08-28 22:24:22 +08:00
|
|
|
#define CONFIG_UART_0_TX_PIN NORDIC_NRF_UART_40002000_TX_PIN
|
|
|
|
#define CONFIG_UART_0_RX_PIN NORDIC_NRF_UART_40002000_RX_PIN
|
|
|
|
#if defined(NORDIC_NRF_UART_40002000_RTS_PIN)
|
|
|
|
#define CONFIG_UART_0_RTS_PIN NORDIC_NRF_UART_40002000_RTS_PIN
|
|
|
|
#endif
|
|
|
|
#if defined(NORDIC_NRF_UART_40002000_CTS_PIN)
|
|
|
|
#define CONFIG_UART_0_CTS_PIN NORDIC_NRF_UART_40002000_CTS_PIN
|
|
|
|
#endif
|
2018-01-22 21:48:38 +08:00
|
|
|
|
2018-01-26 02:45:18 +08:00
|
|
|
#define FLASH_DEV_NAME NRF_NRF51_FLASH_CONTROLLER_4001E000_LABEL
|
2018-01-26 02:36:23 +08:00
|
|
|
|
2018-07-18 19:05:13 +08:00
|
|
|
#define CONFIG_GPIO_P0_DEV_NAME NORDIC_NRF_GPIO_50000000_LABEL
|
|
|
|
#define CONFIG_GPIOTE_IRQ_PRI NORDIC_NRF_GPIOTE_40006000_IRQ_0_PRIORITY
|
|
|
|
#define CONFIG_GPIOTE_IRQ NORDIC_NRF_GPIOTE_40006000_IRQ_0
|
2018-07-03 22:09:32 +08:00
|
|
|
|
2018-09-04 20:55:40 +08:00
|
|
|
#define CONFIG_I2C_0_BASE_ADDR NORDIC_NRF_I2C_40003000_BASE_ADDRESS
|
|
|
|
#define CONFIG_I2C_0_NAME NORDIC_NRF_I2C_40003000_LABEL
|
|
|
|
#define CONFIG_I2C_0_BITRATE NORDIC_NRF_I2C_40003000_CLOCK_FREQUENCY
|
|
|
|
#define CONFIG_I2C_0_IRQ_PRI NORDIC_NRF_I2C_40003000_IRQ_0_PRIORITY
|
|
|
|
#define CONFIG_I2C_0_IRQ NORDIC_NRF_I2C_40003000_IRQ_0
|
|
|
|
#define CONFIG_I2C_0_SDA_PIN NORDIC_NRF_I2C_40003000_SDA_PIN
|
|
|
|
#define CONFIG_I2C_0_SCL_PIN NORDIC_NRF_I2C_40003000_SCL_PIN
|
|
|
|
|
|
|
|
#define CONFIG_I2C_1_BASE_ADDR NORDIC_NRF_I2C_40004000_BASE_ADDRESS
|
|
|
|
#define CONFIG_I2C_1_NAME NORDIC_NRF_I2C_40004000_LABEL
|
|
|
|
#define CONFIG_I2C_1_BITRATE NORDIC_NRF_I2C_40004000_CLOCK_FREQUENCY
|
|
|
|
#define CONFIG_I2C_1_IRQ_PRI NORDIC_NRF_I2C_40004000_IRQ_0_PRIORITY
|
|
|
|
#define CONFIG_I2C_1_IRQ NORDIC_NRF_I2C_40004000_IRQ_0
|
|
|
|
#define CONFIG_I2C_1_SDA_PIN NORDIC_NRF_I2C_40004000_SDA_PIN
|
|
|
|
#define CONFIG_I2C_1_SCL_PIN NORDIC_NRF_I2C_40004000_SCL_PIN
|
2018-03-03 23:44:49 +08:00
|
|
|
|
2018-09-04 21:03:58 +08:00
|
|
|
#define CONFIG_SPI_0_BASE_ADDRESS NORDIC_NRF_SPI_40003000_BASE_ADDRESS
|
|
|
|
#define CONFIG_SPI_0_NAME NORDIC_NRF_SPI_40003000_LABEL
|
|
|
|
#define CONFIG_SPI_0_IRQ_PRI NORDIC_NRF_SPI_40003000_IRQ_0_PRIORITY
|
|
|
|
#define CONFIG_SPI_0_IRQ NORDIC_NRF_SPI_40003000_IRQ_0
|
|
|
|
#define CONFIG_SPI_0_NRF_SCK_PIN NORDIC_NRF_SPI_40003000_SCK_PIN
|
|
|
|
#define CONFIG_SPI_0_NRF_MOSI_PIN NORDIC_NRF_SPI_40003000_MOSI_PIN
|
|
|
|
#define CONFIG_SPI_0_NRF_MISO_PIN NORDIC_NRF_SPI_40003000_MISO_PIN
|
|
|
|
#define CONFIG_SPI_0_NRF_CSN_PIN NORDIC_NRF_SPI_40003000_CSN_PIN
|
|
|
|
|
|
|
|
#define CONFIG_SPI_1_BASE_ADDRESS NORDIC_NRF_SPI_40004000_BASE_ADDRESS
|
|
|
|
#define CONFIG_SPI_1_NAME NORDIC_NRF_SPI_40004000_LABEL
|
|
|
|
#define CONFIG_SPI_1_IRQ_PRI NORDIC_NRF_SPI_40004000_IRQ_0_PRIORITY
|
|
|
|
#define CONFIG_SPI_1_IRQ NORDIC_NRF_SPI_40004000_IRQ_0
|
|
|
|
#define CONFIG_SPI_1_NRF_SCK_PIN NORDIC_NRF_SPI_40004000_SCK_PIN
|
|
|
|
#define CONFIG_SPI_1_NRF_MOSI_PIN NORDIC_NRF_SPI_40004000_MOSI_PIN
|
|
|
|
#define CONFIG_SPI_1_NRF_MISO_PIN NORDIC_NRF_SPI_40004000_MISO_PIN
|
|
|
|
#define CONFIG_SPI_1_NRF_CSN_PIN NORDIC_NRF_SPI_40004000_CSN_PIN
|
|
|
|
|
2018-04-17 21:29:12 +08:00
|
|
|
#define CONFIG_WDT_0_NAME NORDIC_NRF_WATCHDOG_40010000_LABEL
|
|
|
|
#define CONFIG_WDT_NRF_IRQ NORDIC_NRF_WATCHDOG_40010000_IRQ_WDT
|
|
|
|
#define CONFIG_WDT_NRF_IRQ_PRI NORDIC_NRF_WATCHDOG_40010000_IRQ_WDT_PRIORITY
|
|
|
|
|
2018-01-26 02:36:23 +08:00
|
|
|
/* End of SoC Level DTS fixup file */
|