zephyr/soc/arm/nordic_nrf/nrf51/dts.fixup

68 lines
3.4 KiB
Plaintext

/* SoC level DTS fixup file */
#define CONFIG_NUM_IRQ_PRIO_BITS ARM_V6M_NVIC_E000E100_ARM_NUM_IRQ_PRIORITY_BITS
#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
#define CONFIG_UART_0_BASE NORDIC_NRF_UART_40002000_BASE_ADDRESS
#define CONFIG_UART_0_IRQ_PRI NORDIC_NRF_UART_40002000_IRQ_0_PRIORITY
#define CONFIG_UART_0_IRQ_NUM NORDIC_NRF_UART_40002000_IRQ_0
#define CONFIG_UART_0_BAUD_RATE NORDIC_NRF_UART_40002000_CURRENT_SPEED
#define CONFIG_UART_0_NAME NORDIC_NRF_UART_40002000_LABEL
#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
#define FLASH_DEV_NAME NRF_NRF51_FLASH_CONTROLLER_4001E000_LABEL
#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
#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
#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
#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
/* End of SoC Level DTS fixup file */