Skip to content

SPI mode and bit order not set correctly #12

Closed
@trevor-makes

Description

@trevor-makes

See this line in SPI.cpp

spcmd0 &= !(((uint32_t)0xFF) << 2); should be spcmd0 &= ~(((uint32_t)0xFF) << 2);

The logical not makes the mask 0 and wipes out the earlier settings. Should be a bitwise not to make the mask FFFFFC03.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions