soc: atmel_sam: Add _INST to ATMEL_SAM_DT_PIN* macros
The macros are used to get the pin(s) of a given driver instance. Add _INST prefix to match convention used by the devicetree.h. The original macros can now be used to obtain pin(s) of an arbitrary device instance identified by the nodelabel. Signed-off-by: Piotr Mienkowski <piotr.mienkowski@gmail.com>
This commit is contained in:
parent
da906cca24
commit
aaf64e0bdf
11 changed files with 68 additions and 57 deletions
|
@ -976,7 +976,7 @@ static void i2s0_sam_irq_config(void)
|
|||
DEVICE_DT_INST_GET(0), 0);
|
||||
}
|
||||
|
||||
static const struct soc_gpio_pin i2s0_pins[] = ATMEL_SAM_DT_PINS(0);
|
||||
static const struct soc_gpio_pin i2s0_pins[] = ATMEL_SAM_DT_INST_PINS(0);
|
||||
|
||||
static const struct i2s_sam_dev_cfg i2s0_sam_config = {
|
||||
.dev_dma = DEVICE_DT_GET(DT_INST_DMAS_CTLR_BY_NAME(0, tx)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue