soc: arm: nordic_nrf: Convert to new DT_INST macros
Convert older DT_INST_ macro use the new include/devicetree.h DT_INST macro APIs. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
f72bfda53c
commit
7b6796ee79
4 changed files with 4 additions and 6 deletions
|
@ -8,7 +8,7 @@
|
|||
|
||||
#define DT_UART_0_NAME DT_NORDIC_NRF_UART_UART_0_LABEL
|
||||
|
||||
#define DT_FLASH_DEV_NAME DT_INST_0_NORDIC_NRF51_FLASH_CONTROLLER_LABEL
|
||||
#define DT_FLASH_DEV_NAME DT_LABEL(DT_INST(0, nordic_nrf51_flash_controller))
|
||||
|
||||
#define DT_GPIO_P0_DEV_NAME DT_NORDIC_NRF_GPIO_GPIO_0_LABEL
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
#define DT_UART_1_NAME DT_NORDIC_NRF_UARTE_UART_1_LABEL
|
||||
|
||||
#define DT_FLASH_DEV_NAME DT_INST_0_NORDIC_NRF52_FLASH_CONTROLLER_LABEL
|
||||
#define DT_FLASH_DEV_NAME DT_LABEL(DT_INST(0, nordic_nrf52_flash_controller))
|
||||
|
||||
#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
|
||||
|
|
|
@ -17,8 +17,7 @@
|
|||
#define DT_UART_0_NAME DT_NORDIC_NRF_UARTE_UART_0_LABEL
|
||||
#define DT_UART_1_NAME DT_NORDIC_NRF_UARTE_UART_1_LABEL
|
||||
|
||||
#define DT_FLASH_DEV_NAME \
|
||||
DT_NORDIC_NRF53_FLASH_CONTROLLER_FLASH_CONTROLLER_LABEL
|
||||
#define DT_FLASH_DEV_NAME DT_LABEL(DT_INST(0, nordic_nrf53_flash_controller))
|
||||
|
||||
#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
|
||||
|
|
|
@ -17,8 +17,7 @@
|
|||
#define DT_UART_2_NAME DT_NORDIC_NRF_UARTE_UART_2_LABEL
|
||||
#define DT_UART_3_NAME DT_NORDIC_NRF_UARTE_UART_3_LABEL
|
||||
|
||||
#define DT_FLASH_DEV_NAME \
|
||||
DT_NORDIC_NRF91_FLASH_CONTROLLER_FLASH_CONTROLLER_LABEL
|
||||
#define DT_FLASH_DEV_NAME DT_LABEL(DT_INST(0, nordic_nrf91_flash_controller))
|
||||
|
||||
#define DT_GPIO_P0_DEV_NAME DT_NORDIC_NRF_GPIO_GPIO_0_LABEL
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue