Skip to content
This repository was archived by the owner on Jun 27, 2019. It is now read-only.

Commit ece20c7

Browse files
committed
Add a documentation note about the concurrency errors over SPI and UART
In future we add support to several users use the same SPI and UART but for now it will cause several errors. Signed-off-by: José Roberto de Souza <[email protected]>
1 parent b8a9f4d commit ece20c7

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/lib/io/include/sol-spi.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ void sol_spi_close(struct sol_spi *spi);
105105
* @param bus The SPI bus number to open
106106
* @param config The SPI bus configuration
107107
* @return A new SPI bus handle
108+
*
109+
* @note For now it only supports one user of the bus at time, 2 or mode devices
110+
* with different chip select on the same bus will cause concurrency errors.
108111
*/
109112
struct sol_spi *sol_spi_open(unsigned int bus, const struct sol_spi_config *config);
110113

src/lib/io/include/sol-uart.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ struct sol_uart_config {
9898
* ttyACM0 in small OSes it should be a id number.
9999
* @param config The UART bus configuration
100100
* @return A new UART bus handle
101+
*
102+
* @note For now it only supports one user of each port at time, 2 or more users
103+
* on the same port will cause several concurrency errors.
101104
*/
102105
struct sol_uart *sol_uart_open(const char *port_name, const struct sol_uart_config *config);
103106

0 commit comments

Comments
 (0)