Browse Source

AP_HAL: add HAL_CANFD_SUPPORTED define

apm_2208
Siddharth Purohit 4 years ago committed by Andrew Tridgell
parent
commit
153834465b
  1. 4
      libraries/AP_HAL/AP_HAL_Boards.h
  2. 6
      libraries/AP_HAL/board/chibios.h

4
libraries/AP_HAL/AP_HAL_Boards.h

@ -282,6 +282,10 @@
// plus one static notch with one harmonic // plus one static notch with one harmonic
#define HAL_HNF_MAX_FILTERS 18 #define HAL_HNF_MAX_FILTERS 18
#endif #endif
#endif // HAL_HNF_MAX_FILTERS
#ifndef HAL_CANFD_SUPPORTED
#define HAL_CANFD_SUPPORTED 0
#endif #endif
#ifndef __RAMFUNC__ #ifndef __RAMFUNC__

6
libraries/AP_HAL/board/chibios.h

@ -128,3 +128,9 @@
#ifndef HAL_BOARD_STORAGE_DIRECTORY #ifndef HAL_BOARD_STORAGE_DIRECTORY
#define HAL_BOARD_STORAGE_DIRECTORY "/APM" #define HAL_BOARD_STORAGE_DIRECTORY "/APM"
#endif #endif
#if defined(STM32H7XX) || defined(STM32G4)
#define HAL_CANFD_SUPPORTED 1
# else
#define HAL_CANFD_SUPPORTED 0
#endif

Loading…
Cancel
Save