mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-09-28 21:17:33 +00:00
added macros to remove unnecessary acquire and release calls
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user