Add function to force edge triggering for interrupt