Skip to content

Commit

Permalink
AP_HAL_ChibiOS: Add STM32F413xx module
Browse files Browse the repository at this point in the history
Generated the STM32F413xx script from reference manuals and datasheets
Added changes for supporting STM32F413 to mcuconf
  • Loading branch information
joshanne committed Dec 12, 2024
1 parent a52c375 commit 85f29a7
Show file tree
Hide file tree
Showing 2 changed files with 866 additions and 0 deletions.
8 changes: 8 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/common/stm32f47_mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,11 @@
#define STM32_PLLI2SQ_VALUE 4
#define STM32_PLLI2SR_VALUE 2
#define STM32_PLLI2SSRC STM32_PLLI2SSRC_PLLSRC
#if defined(STM32F413_MCUCONF)
#define STM32_CK48MSEL STM32_CK48MSEL_PLLI2S
#else
#define STM32_CK48MSEL STM32_CK48MSEL_PLLSAI
#endif

#elif HAL_EXPECTED_SYSCLOCK == 168000000
// medium frequency variants of F4, such as F405, F427
Expand Down Expand Up @@ -539,6 +543,8 @@
#define STM32_IRQ_UART6_PRIORITY 12
#define STM32_IRQ_UART7_PRIORITY 12
#define STM32_IRQ_UART8_PRIORITY 12
#define STM32_IRQ_UART9_PRIORITY 12
#define STM32_IRQ_UART10_PRIORITY 12
#define STM32_IRQ_USART1_PRIORITY 12
#define STM32_IRQ_USART2_PRIORITY 12
#define STM32_IRQ_USART3_PRIORITY 12
Expand All @@ -547,6 +553,8 @@
#define STM32_IRQ_USART6_PRIORITY 12
#define STM32_IRQ_USART7_PRIORITY 12
#define STM32_IRQ_USART8_PRIORITY 12
#define STM32_IRQ_USART9_PRIORITY 12
#define STM32_IRQ_USART10_PRIORITY 12

/*
* USB driver system settings.
Expand Down
Loading

0 comments on commit 85f29a7

Please sign in to comment.