HomeFreeBSD

Configure the timer capture pin to input mode in the timer control

Description

Configure the timer capture pin to input mode in the timer control
register, in addition to configuring it as input with the pinmux driver.

There was a control register bit commented as "no desc in datasheet". A
later revision of the manual reveals the bit to be an input/output control
for the timer pin. In addition to configuring capture or pulse mode, you
apparently have to separately configure the pin direction in the timer
control register.

Before this change, the timer block was apparently driving a signal onto a
pad configured by pinmux as input. Capture mode still accidentally worked
for me during testing because I was using a very strong signal source that
just out-muscled the weaker drive from the misconfigured pin.

Details

Provenance
ianAuthored on
Parents
rS312858: MFC r311993: Fix typo in r311971 and now in r312405 too.
Branches
Unknown
Tags
Unknown