Skip to content

Commit

Permalink
AP_HAL_ChibiOS: add support for using smps to supply external power
Browse files Browse the repository at this point in the history
  • Loading branch information
bugobliterator committed Nov 28, 2024
1 parent 6d41070 commit e0a5a36
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/common/stm32h7_mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@
#define STM32_PWR_CR2 (PWR_CR2_BREN)
#ifdef SMPS_PWR
#define STM32_PWR_CR3 (PWR_CR3_SMPSEN | PWR_CR3_USB33DEN)
#elif defined(SMPS_PWR_EXT_1V8)
#define STM32_PWR_CR3 (PWR_CR3_SMPSLEVEL_0 | PWR_CR3_SMPSEXTHP | PWR_CR3_SMPSEN | PWR_CR3_LDOEN | PWR_CR3_USB33DEN)
#else
#define STM32_PWR_CR3 (PWR_CR3_LDOEN | PWR_CR3_USB33DEN)
#endif
Expand Down

0 comments on commit e0a5a36

Please sign in to comment.