Skip to content
Snippets Groups Projects
Commit 18202736 authored by rahix's avatar rahix
Browse files

feat(hw-locks): hwlock_release() should return void


With the switch to the new mutex API, hwlock_release() cannot fail under
any circumstances.  To emphasize this, make it return void instead of
int (Previously it just always returned 0).

Signed-off-by: default avatarRahix <rahix@rahix.de>
parent d93c7f00
No related branches found
No related tags found
No related merge requests found
......@@ -55,9 +55,8 @@ int hwlock_acquire(enum hwlock_periph p, TickType_t wait)
return 0;
}
int hwlock_release(enum hwlock_periph p)
void hwlock_release(enum hwlock_periph p)
{
assert(p < _HWLOCK_MAX);
mutex_unlock(&hwlock_mutex[p]);
return 0;
}
......@@ -98,7 +98,7 @@ enum hwlock_periph {
};
int hwlock_acquire(enum hwlock_periph p, TickType_t wait);
int hwlock_release(enum hwlock_periph p);
void hwlock_release(enum hwlock_periph p);
/* ---------- Display ------------------------------------------------------ */
/* Forces an unlock of the display. Only to be used in Epicardium */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment