Watchdog example

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

Watchdog example

1,147件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by miccio on Fri Aug 07 04:35:52 MST 2015
Hello everyone,
while going through the Watchdog example code (specifically, the one for lpc11c24) I noticed something a little misleading: the following snippet claims:

/* Comment this define to let the watchdog timeout. In this case, the board
   will continuously drop via to the WDT warning. */
#define DISABLE_WDT_TIMEOUT



However, there SysTick interrupt cointains this:

#if !defined(DISABLE_WDT_TIMEOUT)
Chip_WWDT_Feed(LPC_WWDT);
#endif


So it will actually feed the watchdog if the symbol isn't defined, therefore preventing it from timeout-ing.
So my conclusion is that it actually works the other way round, which is: comment the symbol -> no timeout , keep the symbol -> force timeout and call WDT_IRQHandler.

Is this a known issue or am I missing something? Thanks in advance
ラベル(1)
0 件の賞賛
返信
0 返答(返信)