Fixes and improvements (#185)
- unPhone improvements related to power and boot (add boot count logging) - Cleanup of Mutex acquire/release - Removed `tt_assert()` in favour of `assert()` - Fix sim build (likely failed due to migration of GitHub Actions to Ubuntu 24.04)
This commit is contained in:
committed by
GitHub
parent
3be251d8fb
commit
d86dc40472
@@ -5,8 +5,8 @@
|
||||
namespace tt {
|
||||
|
||||
Semaphore::Semaphore(uint32_t maxCount, uint32_t initialCount) {
|
||||
tt_assert(!TT_IS_IRQ_MODE());
|
||||
tt_assert((maxCount > 0U) && (initialCount <= maxCount));
|
||||
assert(!TT_IS_IRQ_MODE());
|
||||
assert((maxCount > 0U) && (initialCount <= maxCount));
|
||||
|
||||
if (maxCount == 1U) {
|
||||
handle = xSemaphoreCreateBinary();
|
||||
@@ -24,7 +24,7 @@ Semaphore::Semaphore(uint32_t maxCount, uint32_t initialCount) {
|
||||
}
|
||||
|
||||
Semaphore::~Semaphore() {
|
||||
tt_assert(!TT_IS_IRQ_MODE());
|
||||
assert(!TT_IS_IRQ_MODE());
|
||||
vSemaphoreDelete(handle);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user