Skip to content

follow-up(#5174): keep SAM SCK driven low across the writeBit SPI handoff #5181

Closed

Description

@zackees

Unaddressed CodeRabbit review finding(s) from #5174, checked against current master.

1. src/platforms/arm/sam/fastspi_arm_sam.h:164

In SAMHardwareSPIOutput::writeBit(), PIO_PDR hands SCK/MOSI back to peripheral A before enableSPI() runs. In that window the SCK pad is not driven, so a clock pull-up (or an interrupt that lengthens the window) can make an extra rising edge. SM16716 counts it as a data bit and the following RGB bytes shift.

Missed CodeRabbit review: merged before the review was read (clud pr_merge_watch bug, fixed in talos-hq/clud#2719).

Metadata

Metadata

Assignees

No one assigned

    Labels

    coderabbit-followupsanitized

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions