mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-06-10 16:55:58 +00:00
added macros to remove unnecessary acquire and release calls
This commit is contained in:
parent
4b73783359
commit
e40a9d3846
@ -144,9 +144,11 @@ namespace sta
|
||||
/* The address is bit-shifted by one to work properly for the STM32 HAL. */
|
||||
: I2CDevice(intf, address << 1, master, blocking)
|
||||
{
|
||||
#ifdef STA_ASSERT_ENABLED
|
||||
intf->acquire();
|
||||
STA_ASSERT(intf->hasAddress(address));
|
||||
intf->release();
|
||||
#endif // STA_ASSERT_ENABLED
|
||||
}
|
||||
|
||||
} // namespace sta
|
||||
|
Loading…
x
Reference in New Issue
Block a user