/* Writes requested amount of data to the SPI. 
This function will return after writing requested amount of data */
enum status_code spi_write_buffer_wait(struct spi_module *const module, uint8_t *tx_data, uint16_t length)
/* Writes requested amount of data to the SPI. 
This function will return after writing requested amount of data */
enum status_code spi_write_buffer_wait(struct spi_module *const module, uint8_t *tx_data, uint16_t length)
{
	return spi_transceive_buffer_wait(module, tx_data, NULL, length);
}