We are working on project which has three different SPI communications(SPI1, SPI2, SPI3) each one of them has dissimiliar configrations
SPI2
dataconfig1_t.CS_HOLD = TRUE;
dataconfig1_t.WDEL = FALSE;
dataconfig1_t.DFSEL = SPI_FMT_0;
dataconfig1_t.CSNR = 0xFE;

SPI3
dataconfig1_t.CS_HOLD = TRUE;
dataconfig1_t.WDEL = TRUE;
dataconfig1_t.DFSEL = SPI_FMT_3;//8 bit icin fmt2
dataconfig1_t.CSNR = 0xFE;

so my question is how should i do in this situation??? should I rewrite the configs every time when i use different spi ??