You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2020/10/27 01:20:03 UTC

[GitHub] [mynewt-core] rafacouto opened a new issue #2404: NRF52 hal_watchdog_init() doesn't fulfil interface

rafacouto opened a new issue #2404:
URL: https://github.com/apache/mynewt-core/issues/2404


   Watchdog HAL [documentation, function *hal_watchdog_init()*](https://mynewt.apache.org/latest/os/modules/hal/hal_watchdog/hal_watchdog.html#c.hal_watchdog_init) says it **returns expiration time as positive value**.
   
   However, [nrf52 implementation](https://github.com/apache/mynewt-core/blob/master/hw/mcu/nordic/nrf52xxx/src/hal_watchdog.c#L44) returns always 0.
   
   Is the documentation wrong? the implementation?
   
       // test assertion
       assert(hal_watchdog_init(1000) > 0);


----------------------------------------------------------------
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.

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



[GitHub] [mynewt-core] sjanc commented on issue #2404: NRF52 hal_watchdog_init() doesn't fulfil interface

Posted by GitBox <gi...@apache.org>.
sjanc commented on issue #2404:
URL: https://github.com/apache/mynewt-core/issues/2404#issuecomment-717066021


   looks like documentation needs to be updated, I've checked few random MCUs and all return 0 on success


----------------------------------------------------------------
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.

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