Changeset 85d5f6c in rtems


Ignore:
Timestamp:
Mar 6, 2019, 12:26:29 PM (7 weeks ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
a06356b
Parents:
b82a4b4
git-author:
Sebastian Huber <sebastian.huber@…> (03/06/19 12:26:29)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/06/19 12:29:04)
Message:

bsp/atsam: Accept only 8/16 bits per word

For proper 16 bits per word support we need probably some DMA
adjustments. For 9 to 15 bits per word we need support for the variable
peripheral select, see SR_MR[PS] register bit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bsps/arm/atsam/spi/atsam_spi_bus.c

    rb82a4b4 r85d5f6c  
    327327  ) {
    328328    if (
    329       msg->bits_per_word < 8
    330         || msg->bits_per_word > 16
     329      (msg->bits_per_word != 8 && msg->bits_per_word != 16)
    331330        || msg->mode > 3
    332331        || msg->speed_hz > bus->base.max_speed_hz
     
    459458
    460459  if (
    461     bus->base.speed_hz > MAX_SPI_FREQUENCY ||
    462     bus->base.bits_per_word < 8 ||
    463     bus->base.bits_per_word > 16
     460    bus->base.speed_hz > MAX_SPI_FREQUENCY
     461      || (bus->base.bits_per_word != 8 && bus->base.bits_per_word != 16)
    464462  ) {
    465463      return -EINVAL;
Note: See TracChangeset for help on using the changeset viewer.