]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lib.git/blob - rpp/include/hal/port_spi.h
Remove extern variable declarations in the HAL header file
[pes-rpp/rpp-lib.git] / rpp / include / hal / port_spi.h
1 /**
2  *
3  * @file port_spi.h
4  *
5  * @copyright Copyright (C) 2012-2013 Czech Technical University in Prague
6  *
7  * @author Michal Horn <hornmich@fel.cvut.cz>
8  */
9
10 #ifndef PORT_SPI_H_
11 #define PORT_SPI_H_
12
13 //#include "sys_common.h"
14 #include "hal/hal.h"
15
16 /**
17  * Transfer command through the spi
18  * @param[in] config    Address of the SPI
19  * @param[in] num_bytes Number of bytes to be trasfered
20  * @param[in] commands  SPI command to be sent
21  * @return spi response
22  */
23 uint32_t hal_spi_port_transfer_command(uint32_t *config, uint32_t num_bytes, const uint32_t *commands);
24
25
26 #endif /* PORT_SPI_H_ */