HAL_ChibiOS: fixed build on F4

This commit is contained in:
Andrew Tridgell 2019-02-13 18:44:45 +11:00
parent d6bedc3bdf
commit bd27d7fc26

View File

@ -122,11 +122,14 @@ void Shared_DMA::lock_core(void)
locks[stream_id2].deallocate = deallocate;
locks[stream_id2].obj = this;
}
} else if (stream_id1 == STM32_DMA_STREAM_ID_ANY ||
stream_id2 == STM32_DMA_STREAM_ID_ANY) {
}
#ifdef STM32_DMA_STREAM_ID_ANY
else if (stream_id1 == STM32_DMA_STREAM_ID_ANY ||
stream_id2 == STM32_DMA_STREAM_ID_ANY) {
// call allocator without needing locking
allocate(this);
}
#endif
have_lock = true;
}