Does the description of WDOG_GetDefaultConfig not match the implementation?

キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

Does the description of WDOG_GetDefaultConfig not match the implementation?

ソリューションへジャンプ
236件の閲覧回数
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

タグ(1)
0 件の賞賛
1 解決策
198件の閲覧回数
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 件の賞賛
1 返信
199件の閲覧回数
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 件の賞賛