Ian Hua / PwmInRC

Dependents:   triforce-control usbjoystick_prg

You are viewing an older revision! See the latest version

Homepage

Code is simple to use.

Will add a quick tutorial on use, and how to use the lost-signal/stall detection in due course.

Pulsewidth and period variables are:

  • Declared volatile to make sure the value read is not compiler optimised, since the values are modified through an ISR; and
  • Protected by mutex to make sure that values read are true (such as when an ISR is occurring, but a thread tries to read the value during the ISR).

All wikipages