User avatar
RedDragon
Posts: 13
Joined: Sun Jun 03, 2018 5:57 am
Contact: Website

How to set FIQ to GPIO

Sun Apr 28, 2019 3:54 am

I am working on an RC meter. The measurement requires four digit precision of time measurement. I have tried using nanosleep,pigpio, direct gpio interrupt routin, but I could reach only three stable digits.

Direct interrupt programming called my attention to FIQ which may solve the problem. What plan to do:
Insert a code between FIQ and the current FIQ routin (USB). FIQ also activated by gpio edge, read a free running timer for timestemp, if not my GPIO edge activated FIQ call original one, do calculations in a userland program.

Any suggestion, advice or example program how to program FIQ highly appriciated!

Return to “C/C++”