Does the description of WDOG_GetDefaultConfig not match the implementation?

cancel
Showing results for 
Search instead for 
Did you mean: 

Does the description of WDOG_GetDefaultConfig not match the implementation?

Jump to solution
233 Views
mitterha
Senior Contributor I

Hallo,

the description of WDOG_GetDefaultConfig (driver version 2.1.1) of SDKs (version 2.7.0) for IMXRT processors specifies that the watchdog is enabled in wait mode but the implementation shows config->workMode.enableWait    = false;

This description is also used in the watchdog SDK example project which you can clone with MCUXpresso Config Tools.

Does the description of WDOG_GetDefaultConfig not match the implementation?

Kind regards,

Stefan

Tags (1)
0 Kudos
1 Solution
195 Views
mitterha
Senior Contributor I

Hello,

I realized that the above mentioned setting gets directly written to the WDW Bit of WCR register so it is correct what the SDK does.

I think it is just a bad naming because you set the structure member "enableWait" but the register you are changing with this has a "set one to disable" behaviour so better would be "disableWait".

Kind regards,

Stefan

View solution in original post

0 Kudos
1 Reply
196 Views
mitterha
Senior Contributor I

Hello,

I realized that the above mentioned setting gets directly written to the WDW Bit of WCR register so it is correct what the SDK does.

I think it is just a bad naming because you set the structure member "enableWait" but the register you are changing with this has a "set one to disable" behaviour so better would be "disableWait".

Kind regards,

Stefan

0 Kudos