AP_HAL: add HAL_CANFD_SUPPORTED define

This commit is contained in:
Siddharth Purohit 2021-05-03 18:23:04 +05:30 committed by Andrew Tridgell
parent 287151a858
commit 153834465b
2 changed files with 10 additions and 0 deletions

View File

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

View File

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