M4 GPIO output control in the EOS-S3 is inherently unsafe as all 8 GPIO outputs are controlled from a single register (see here).
For embedded-hal gpio implementation it might be better to wrap single gpios with a mutex in order to make them thread-safe.
There's a long road before work on the hal starts but I'm opening this as a reminder
Basic context:
M4 GPIO output control in the EOS-S3 is inherently unsafe as all 8 GPIO outputs are controlled from a single register (see here). For embedded-hal gpio implementation it might be better to wrap single gpios with a mutex in order to make them thread-safe. There's a long road before work on the hal starts but I'm opening this as a reminder