-/*
- * port_spi.h
+/**
*
- * Created on: 26.11.2012
- * Author: Michal Horn
+ * @file port_spi.h
+ *
+ * @copyright Copyright (C) 2012-2013 Czech Technical University in Prague
+ *
+ * @author Michal Horn <hornmich@fel.cvut.cz>
*/
#ifndef PORT_SPI_H_
#define PORT_SPI_H_
//#include "sys_common.h"
-#include "sys/sys.h"
+#include "hal/hal.h"
-uint32_t hal_spi_port_transfer_command(uint32_t* config, uint32_t num_bytes, const uint32_t* commands);
+/**
+ * Transfer command through the spi
+ * @param[in] config Address of the SPI
+ * @param[in] num_bytes Number of bytes to be trasfered
+ * @param[in] commands SPI command to be sent
+ * @return spi response
+ */
+uint32_t hal_spi_port_transfer_command(uint32_t *config, uint32_t num_bytes, const uint32_t *commands);
#endif /* PORT_SPI_H_ */