wiktorkwiatkowski opened a new pull request, #3475:
URL: https://github.com/apache/mynewt-core/pull/3475

   This commit adds watchdog timer support for Apollo2-based boards. Apollo2 
microcontrollers allow selecting different WDT clock frequencies. To enable 
this feature, a new configuration variable is introduced: `AM_WATCHDOG_CLOCK`.
   
   You can set `AM_WATCHDOG_CLOCK` to one of the supported values:
   - 1 (default)
   - 16
   - 128
   
   The clock affects how long the watchdog timeout can be, since the hardware 
register for reset timeout is 8 bit.
   This means:
   - for 128Hz, max timeout ~ 2 seconds
   - for 16Hz, max timeout ~ 16 seconds
   - for 1Hz, max timeout 255 seconds
   
   If you choose a higher clock, you must decrease the interval values 
accordingly. Two other config variables should be adjusted based on the 
selected clock:
   - SANITY_INTERVAL
   - WATCHDOG_INTERVAL
   
   Example for syscfg.yml in an app or target:
   ```
   syscfg.vals:
       AM_WATCHDOG_CLOCK: 16
       SANITY_INTERVAL: 1000
       WATCHDOG_INTERVAL: 5000
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to