Skip to content

SPI.cpp sets MOSI idle to low #367

Open
@drmcnelson

Description

@drmcnelson

SPI.cpp sets MOSI idle state to low.

This is an error and it makes it incompatible with accepted convention and incompatible with many peripheral chips.

Please comment out the following lines.

/* set MOSI idle value to low */
sppcr |= R_SPI0_SPPCR_MOIFE_Msk;
_spi_ctrl.p_regs->SPPCR = (uint8_t) sppcr;

If you insist on leaving it like that then at least provide an API so it can be corrected by users.

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: codeRelated to content of the project itselftype: imperfectionPerceived defect in any part of project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions