apache / mynewt-core

An OS to build, deploy and securely manage billions of devices
https://mynewt.apache.org/
Apache License 2.0
813 stars 365 forks source link

NRF52 hal_watchdog_init() doesn't fulfil interface #2404

Open rafacouto opened 3 years ago

rafacouto commented 3 years ago

Watchdog HAL documentation, function hal_watchdog_init() says it returns expiration time as positive value.

However, nrf52 implementation returns always 0.

Is the documentation wrong? the implementation?

// test assertion
assert(hal_watchdog_init(1000) > 0);
sjanc commented 3 years ago

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