-
Notifications
You must be signed in to change notification settings - Fork 51
Open
Description
I hope I am wrong, but I think there might be a race condition in the gpio's into_{x}
methods.
Line 386 in f8b6ff8
gpio.pupdr.modify(|r, w| { |
Notice how we perform a read-modify-write sequence without anything preventing the same thing being done to another pin in the same port.
As far as I can see, I believe we would need either a critical section or exclusive access to some sort of token to guarantee exclusive access. A critical section would cause a slight bit of overhead but would otherwise be non-breaking API-wise, I think.
Metadata
Metadata
Assignees
Labels
No labels