SPI_CS_POL_INACTIVE
val &= ~SPI_CS_POL_INACTIVE(spi_get_chipselect(spi, 0));
val |= SPI_CS_POL_INACTIVE(spi_get_chipselect(spi, 0));