Skip to content

Commit

Permalink
MCCONF_FOC_F_SW backwards-compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
vedderb committed Jan 6, 2022
1 parent a092ea9 commit 648b8a3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions hwconf/hw.h
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,13 @@
#define HW_RESET_DRV_FAULTS()
#endif

// For backwards-compatibility with configs that use the old name
#ifdef MCCONF_FOC_F_SW
#ifndef MCCONF_FOC_F_ZV
#define MCCONF_FOC_F_ZV MCCONF_FOC_F_SW
#endif
#endif

// Functions
void hw_init_gpio(void);
void hw_setup_adc_channels(void);
Expand Down

0 comments on commit 648b8a3

Please sign in to comment.