GPIOPPS(4)
π¦ GPIOPPS(4) π¦
Kernel Interfaces Manual energy, bestie β this page is literally about installing a PPS handler on GPIO pins. no cap.
π NAME π
gpiopps β install a PPS handler on GPIO pins β¨
πΈ SYNOPSIS πΈ
gpiopps* at gpio? offset 0 mask 0x1 flag 0x0
π DESCRIPTION π
Okay so the gpiopps driver gives you a 1PPS handler using the PPSAPI on one or two GPIO pins. iconic.
The base pin number is set in the kernel configuration file with the offset locator. The mask should have 1 or 2 bits set, showing which pins offset from the base pin should be used (0 .. 31). Pin configurations are discussed below, iykyk.
The flag locator modifies the pin configuration:
0x01β The PPS ASSERT signal should be triggered on the negative (falling) edge of the assert pin. The default is to trigger on the positive (rising) edge of the pin. π0x02β By default,gpioppswill use double-edge triggering when only a single pin is specified and the underlying GPIO hardware supports it. This flag disables the use of double-edge triggering.
If a single pin is specified, gpiopps uses double-edge triggering to support ASSERT and CLEAR PPS signals. If the underlying GPIO hardware does not support double-edge triggering, or if this feature is disabled in the flag locator, then only ASSERT will be signaled on the specified edge.
If two pins are specified, the first pin is used to trigger the ASSERT signal and the second pin is used to trigger the CLEAR signal. The ASSERT pin's trigger edge is specified by the flag locator, and the CLEAR pin triggers on the opposite edge. This allows ASSERT and CLEAR signals to be triggered even if the underlying GPIO hardware does not support double-edge triggering. In this scenario, both GPIO pins would be connected in parallel to the device sending the 1PPS signals. π«Ά
The offset, mask, and flag locators can also be specified when gpiopps is attached at runtime using the GPIOATTACH ioctl(2) on the gpio(4) device. periodt.
π SEE ALSO π
gpio(4)drvctl(8)gpioctl(8)
β HISTORY β
The gpiopps driver first appeared in NetBSD 9.0. π
π AUTHORS π
The gpiopps driver was written by Brad Spencer <brad@anduin.eldar.org>. π
xoxo bestie π β this page is Debian source/version GPIOPPS(4), dated May 11, 2018. mwah! π§
π¦ where this page comes from
- nixpkgs unstable: netbsd-source 11.0
- Copyright (c) 2016 Brad Spencer <brad@anduin.eldar.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms