Skip to content
Snippets Groups Projects
  1. Jan 24, 2020
  2. Jan 20, 2020
  3. Jan 09, 2020
  4. Jan 05, 2020
  5. Jan 04, 2020
  6. Jan 03, 2020
  7. Jan 02, 2020
  8. Dec 31, 2019
  9. Dec 30, 2019
  10. Dec 29, 2019
  11. Dec 28, 2019
  12. Dec 26, 2019
  13. Dec 22, 2019
    • rahix's avatar
      Merge 'Port hardware locks to new mutex API' · b46a9e7a
      rahix authored
      Move hw-locks to new mutex API in multiple steps to keep diffs readable.  The
      users of hw-locks are **not** ported to the new-semantics; this needs to be
      done as a follow up.  One patch is included, porting the MAX30001 driver in
      commit 6da4644e ("chore(max30001): Port to new mutex and hw-lock APIs").
      
      See merge request card10/firmware!356
      b46a9e7a
    • rahix's avatar
      chore(max30001): Port to new mutex and hw-lock APIs · 6da4644e
      rahix authored
      
      Using a FreeRTOS mutex directly is deprecated.  Replace it with a
      `struct mutex`.  Similarly, the deprecated `hwlock_acquire_timeout()`
      is replaced with `hwlock_acquire()`.
      
      Signed-off-by: default avatarRahix <rahix@rahix.de>
      6da4644e
    • rahix's avatar
      feat(hw-locks): Introduce new hw-lock API · 605d5e56
      rahix authored
      
      Re-add a `hwlock_acquire()` method, but this time without a timeout
      parameter.  From a functional point of view, this is just a wrapper
      around `mutex_lock()`.
      
      Additionally, add `hwlock_acquire_nonblock()` which behaves like
      `mutex_trylock()`.
      
      Signed-off-by: default avatarRahix <rahix@rahix.de>
      605d5e56
    • rahix's avatar
      chore(hw-locks): Rename to hwlock_acquire_timeout · 610a3048
      rahix authored
      
      Rename hwlock_acquire() to hwlock_acquire_timeout() in preparation for
      future changes to the hw-lock API.  Change all uses of the hw-lock API
      to reflect this change.
      
      This commit does not introduce any functional changes, except getting
      rid of the timeout usage warnings.  This change is no-op, because the
      hwlock_acquire() implementation already replaces any non-zero timeout
      value with portMAX_DELAY.
      
      Signed-off-by: default avatarRahix <rahix@rahix.de>
      610a3048
Loading