Browse Source

HAL_ChibiOS: added comment on IS_DMA_SAFE()

mission-4.1.18
Andrew Tridgell 7 years ago
parent
commit
a220220758
  1. 2
      libraries/AP_HAL_ChibiOS/Util.h

2
libraries/AP_HAL_ChibiOS/Util.h

@ -22,6 +22,8 @@ @@ -22,6 +22,8 @@
#include "ToneAlarm.h"
// this checks an address is in main memory and 16 bit aligned
// on the STM32F7 we assume all memory is DMA safe, and call dma_flush()
// and dma_invalidate() when needed
#define IS_DMA_SAFE(addr) ((uint32_t(addr) & 0xF0000001) == 0x20000000)
class ChibiOS::Util : public AP_HAL::Util {

Loading…
Cancel
Save