Something looks wrong here
24000000/300000=8 so PIOS_SPI_PRESCALER_8 would be used here not 16.