GPIO in the kernel: an introduction
GPIO in the kernel: an introduction
Posted Jan 18, 2013 8:44 UTC (Fri) by russell (guest, #10458)Parent article: GPIO in the kernel: an introduction
1. GPIO can be both output and input at the same time. Yep you may want to read back the value of an output. MCUs I've used in the past offered this. After all output are really just stronger versions of the pull up/down :)
2. GPIO have pull up/down resistors.
3. And this is the BIG one. GPIO has state BEFORE the kernel boots. Bootstrap code can set the state of GPIO during the first few cycles of operation. This can eliminate the need for extra external hardware. However, the kernel blows this away and you have to wait for userspace to boot before you get control!!!! This behaviour on for example RPi required extra hardware to be added to the circuit to prevent this kind of transient boot behaviour from glitching relays.
