Changed mask data types to unsigned in spi_2.c