You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@mynewt.apache.org by "William San Filippo (JIRA)" <ji...@apache.org> on 2017/06/23 17:18:00 UTC
[jira] [Created] (MYNEWT-792) os_cputime functions do not return
errors from hal_timer in certain cases.
William San Filippo created MYNEWT-792:
------------------------------------------
Summary: os_cputime functions do not return errors from hal_timer in certain cases.
Key: MYNEWT-792
URL: https://issues.apache.org/jira/browse/MYNEWT-792
Project: Mynewt
Issue Type: Bug
Security Level: Public (Viewable by anyone)
Components: OS
Affects Versions: v1_0_0_rel
Reporter: William San Filippo
Assignee: William San Filippo
Fix For: v1_1_0_rel
The code in os_cputime.c, specifically os_cputime_timer_relative() and os_cputime_timer_start() do not return an error. The underlying hal_timer functions return an error in certain cases (no callback specified, timer currently running, NULL timer) but this error is not reported. This should be fixed.
Furthermore, there should be comments in the code saying that you cannot call os_cputime_timer_relative() or os_cputime_timer_start() if the timer is currently running or an error will be returned.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)