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.
在MSP432P401R RTOS中,如何将clock source由Clock System改为 WDT_A (in interval timer mode) ?
The basic idea is to use the watchdog timer to drive the TI-RTOS' Clock tick. This is accomplished by the following steps.
1 Tell TI-RTOS that the Clock tick will be driven by the application. This is accomplished in the TI-RTOS configuration file (.cfg).
2 Create a Hwi for the watchdog timer. This can be done during runtime execution or via the TI-RTOS configuration file (.cfg). For this example, we'll create it in the configuration file.
3 Enable the watchdog during runtime.
4 Restrict the DEEPSLEEP_1 (aka LPM4) mode, otherwise the watchdog is deactivated when entering that mode. The power savings between DEEPSLEEP_0 and DEEPSLEEP_1 is small.
5 Have the Hwi function call Clock_tick() to drive the Clock modules internal timing.