WatchDog的使用
<h4>1、设置看门狗 timeout 超时时间:</h4>
<pre><code class="language-shell">i2ctransfer -y -f 4 w3@0x15 0x00 0x02 0x01 (1分钟)</code></pre>
<p>以此类比 0x01 = 1 分钟;0x02 = 2 分钟;0x03 = 3 分钟;
打开 watchdog:</p>
<pre><code class="language-shell">i2ctransfer -y -f 4 w3@0x15 0x00 0x03 0x01</code></pre>
<p>喂狗:</p>
<pre><code class="language-shell">i2ctransfer -y -f 4 w3@0x15 0x00 0x04 0x01</code></pre>
<p>关闭看门狗:</p>
<pre><code class="language-shell">i2ctransfer -y -f 4 w3@0x15 0x00 0x03 0x00</code></pre>