analogdevicesinc / msdk

Software Development Kit for Analog Device's MAX-series microcontrollers
Apache License 2.0
60 stars 76 forks source link

fix(PeriphDrivers): Add missing timer dual edge capture mode #846

Closed mertekren closed 7 months ago

mertekren commented 8 months ago

Description

In user guides of MCUs (MAX32655, MAX32662, MAX32670, MAX32672, MAX32675, MAX32680, MAX32690, MAX78000, MAX78002 ) Timer peripheral supports Dual Edge Capture mode. This mode is missing in MSDK, although CMSIS includes this register: MXC_S_TMR_CTRL0_MODE_A_DUAL_EDGE for these devices.

For example, MAX32690 user guide section 23.7 shows as below: image

So, this mode is added.

Checklist Before Requesting Review

Jake-Carter commented 7 months ago

@mertekren FYI as of #831 the TMR enums have been updated to MXC_TMR_... to be more consistent. I resolved the merge conflicts in https://github.com/Analog-Devices-MSDK/msdk/pull/846/commits/354bf799b9b6444304b68438eb6216757c7d0995