I am trying to understand why my spi_dt_spec doesn't get the right pins when I use the SPI_DT_SPEC_GET(DT_NODELABEL(kx122_spi), SPI_OP, 0); macros.
I tried to expand it and see what the macro actually returns. from what I understand
SPI_DT_SPEC_GET(DT_NODELABEL(kx122_spi), SPI_OP, 0 expands to &__device_dts_ord_DT_N_NODELABEL_kx122_spi_BUS_ORD.
I am getting something wrong because the compiler doesn't recognize this identifier.
P.S. i think it may have something to do with the DT_CAT function:
does this function concats node_id with _BUS to form node_id_BUS?