This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP432 看门狗的使用

SDK 里面的接口函数,Watchdog_close  函数是关闭开门狗功能 还是和Watchdog_open 配对使用的?

  • 432的库里面没有这个两个函数吧?
    我从TI下载的库函数的例子里都是使用
    /* Halting the Watchdog */
    MAP_WDT_A_holdTimer();
  • 另外一半如果你这两个同时使用是有这种情形:先使用关闭看门狗关闭,然后当设置完成,或程序后面执行中需要开启时候再使用开启函数开启。
  • 请您看一下

    dev.ti.com/.../_watchdog_m_s_p432_8h.html

    By default the Watchdog driver has resets turned on. This means that if Watchdog_clear() is not called to reset the Watchdog timer before it times out, a reset will be generated. Watchdog_close() will stop the Watchdog timer. To restart it again, Watchdog_open() must be called.

    以及函数说明


    void Watchdog_close ( Watchdog_Handle handle )
    Function to close a Watchdog peripheral specified by the Watchdog handle.It stops (holds) the Watchdog counting on applicable platforms.

    Precondition
    Watchdog_open() has to be called first.

    Parameters
    handle A Watchdog_Handle returned from Watchdog_open