Skip to content

Commit

Permalink
Tidy docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ed-xmos committed Oct 4, 2023
1 parent 28682cf commit ee76f7c
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion doc/programming_guide/reference/i2c/i2c_master.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The following code snippet demonstrates the basic usage of an |I2C| master devic
.. code-block:: c
#include <xs1.h>
#include <i2c.h>
#include "i2c.h"
i2c_master_t i2c_ctx;
Expand Down
2 changes: 1 addition & 1 deletion doc/programming_guide/reference/i2c/i2c_slave.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The following code snippet demonstrates the basic usage of an |I2C| slave device
.. code-block:: c
#include <xs1.h>
#include <i2c.h>
#include "i2c.h"
port_t p_scl = XS1_PORT_1A;
port_t p_sda = XS1_PORT_1B;
Expand Down
9 changes: 1 addition & 8 deletions doc/programming_guide/reference/i2s/i2s.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ All |I2S| functions can be accessed via the ``i2s.h`` header:

.. code-block:: c
#include <i2s.h>
#include "i2s.h"
TDM is a protocol between two devices similar to |I2S| where one is the *master* and one is the *slave* which determines who drives the clock lines. The protocol is made up of four signals shown in :ref:`tdm_wire_table`.

Expand All @@ -54,13 +54,6 @@ TDM is a protocol between two devices similar to |I2S| where one is the *master*
the data direction. There may be several data lines in
differing directions.

All |I2S| functions can be accessed via the ``i2s.h`` header:

.. code-block:: c
#include "i2s.h"
Currently supported TDM functions can be accessed via the ``i2s_tdm_slave.h`` header:

.. code-block:: c
Expand Down
8 changes: 7 additions & 1 deletion doc/programming_guide/reference/i2s/i2s_common.rst
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
v.. include:: ../../../substitutions.rst
.. include:: ../../../substitutions.rst

****************
|I2S| Common API
****************

|I2S| Instances
===============

The following structures and functions are used by an |I2S| master or slave instance.

.. doxygengroup:: hil_i2s_core
:content-only:

TDM Instances
=============

The following structures and functions are used by an TDM master or slave instance.

.. doxygengroup:: hil_i2s_tdm_core
Expand Down
2 changes: 1 addition & 1 deletion doc/programming_guide/reference/spi/spi_master.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The following code snippet demonstrates the basic usage of an SPI master device.
.. code-block:: c
#include <xs1.h>
#include <spi.h>
#include "spi.h"
spi_master_t spi_ctx;
spi_master_device_t spi_dev;
Expand Down
2 changes: 1 addition & 1 deletion doc/programming_guide/reference/spi/spi_slave.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The following code snippet demonstrates the basic usage of an SPI slave device.
.. code-block:: c
#include <xs1.h>
#include <spi.h>
#include "spi.h"
// Setup callbacks
// NOTE: See API or SDK examples for more on using the callbacks
Expand Down
3 changes: 2 additions & 1 deletion doc/programming_guide/reference/uart/uart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ All UART functions can be accessed via the ``uart.h`` header:

.. code-block:: c
#include <uart.h>
#include "uart.h"
.. toctree::
:maxdepth: 2
Expand Down
2 changes: 1 addition & 1 deletion doc/shared/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ The peripheral IO framework is a collection of IO libraries written in C for XCO

- UART - transmit and receive
- |I2C| - master and slave
- |I2S| - master and slave
- |I2S| - master and slave and TDM slave Tx
- SPI - master and slave
2 changes: 1 addition & 1 deletion modules/uart/api/uart.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* Enum type representing the different options
* parity types.
*/
typedef enum uart_parity_t {
typedef enum uart_parity {
UART_PARITY_NONE = 0,
UART_PARITY_EVEN,
UART_PARITY_ODD
Expand Down

0 comments on commit ee76f7c

Please sign in to comment.