Changeset 538a0a8 in rtems for bsps/arm


Ignore:
Timestamp:
Feb 2, 2018, 6:06:16 AM (2 years ago)
Author:
Christian Mauderer <christian.mauderer@…>
Branches:
master
Children:
6878519
Parents:
03fecae
git-author:
Christian Mauderer <christian.mauderer@…> (02/02/18 06:06:16)
git-committer:
Christian Mauderer <christian.mauderer@…> (02/12/18 13:25:02)
Message:

bsp/atsam: Allow to use a decoder for SPI CS.

The SPI controller supports a decoder connected to the chip select
lines. This patch allows to use this mode.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bsps/arm/atsam/include/bsp/atsam-spi.h

    r03fecae r538a0a8  
    2222#endif /* __cplusplus */
    2323
     24typedef struct {
     25  uint8_t     spi_peripheral_id;
     26  const Pin  *pins;
     27  Spi        *spi_regs;
     28  size_t      pin_count;
     29  bool        chip_select_decode;
     30} atsam_spi_config;
     31
    2432int spi_bus_register_atsam(
    2533  const char *bus_path,
    26   uint8_t     spi_peripheral_id,
    27   Spi        *spi_regs,
    28   const Pin  *pins,
    29   size_t      pin_count
     34  const atsam_spi_config *config
    3035);
    3136
Note: See TracChangeset for help on using the changeset viewer.