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)

Reply via email to