-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for STM32G474VxT (#372)
* feat: add support for STM32G474VxT note: no QUADSPI and FMC support, yet * Apply suggestions from code review Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
edbd1e3
commit fe9ee42
Showing
6 changed files
with
1,318 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...st/stm32fxxx/DefaultClockNucleoG474RE.hpp → ...t/stm32fxxx/DefaultClockNucleoG474xxx.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#ifndef HAL_ST_DEFAULT_CLOCK_HPP | ||
#define HAL_ST_DEFAULT_CLOCK_HPP | ||
|
||
void ConfigureDefaultClockNucleo474RE(); | ||
void ConfigureDefaultClockNucleoG474xxx(); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
<?xml version="1.0"?> | ||
<peripherals xmlns:xi="http://www.w3.org/2001/XInclude"> | ||
<peripheral name="Uart" type="USART_TypeDef*"> | ||
<item name="UART"/> | ||
<item name="USART"/> | ||
<interrupt/> | ||
</peripheral> | ||
<peripheral name="Spi" type="SPI_TypeDef*"><item name="SPI"/><interrupt/></peripheral> | ||
<peripheral name="I2c" type="I2C_TypeDef*"><item name="I2C"/> | ||
<interrupt name="Ev" postfix="_EV"/> | ||
<interrupt name="Er" postfix="_ER"/> | ||
</peripheral> | ||
<peripheral name="Sai" type="SAI_TypeDef*"><item name="SAI"/> | ||
<interrupt/> | ||
</peripheral> | ||
<peripheral name="Sd" type="SD_TypeDef*"><item name="SDMMC"/> | ||
<interrupt/> | ||
</peripheral> | ||
<!-- | ||
Disabled, the G474VeT doesn't have an SDRAM capable FMC. Only SRAM/PSRAM (and more) | ||
<peripheral name="SdRam" type="FMC_SDRAM_TypeDef" base="FMC_R_BASE"> | ||
<item name="FMC"/> | ||
</peripheral> | ||
--> | ||
<peripheral name="Can" type="CAN_TypeDef*"><item name="CAN"/> | ||
<interrupt name="Tx" postfix="_TX"/> | ||
<interrupt name="Rx0" postfix="_RX0"/> | ||
<interrupt name="Rx1" postfix="_RX1"/> | ||
<interrupt name="Sce" postfix="_SCE"/> | ||
</peripheral> | ||
<peripheral name="Timer" type="TIM_TypeDef*" prefix="TIM"> | ||
<item name="TIM1_8"/> | ||
<item name="TIM6_7"/> | ||
<item name="TIM1_8F7"/> | ||
<item name="TIM6_7F7"/> | ||
<item name="TIM1_8F37"/> | ||
<item name="TIM6_7F37"/> | ||
<item name="TIM1_8F77"/> | ||
<item name="TIM6_7F77"/> | ||
</peripheral> | ||
<peripheral name="Adc" type="ADC_TypeDef*"><item name="ADC"/></peripheral> | ||
<peripheral name="Dac" type="DAC_TypeDef*"><item name="DAC"/></peripheral> | ||
<peripheral name="Ethernet" type="ETH_TypeDef*"> | ||
<item name="ETH"/> | ||
<interrupt/> | ||
</peripheral> | ||
<peripheral name="USB" type="USB_OTG_GlobalTypeDef*" base="USB_OTG_HS_PERIPH_BASE"> | ||
<item name="USB_OTG_FS"/> | ||
</peripheral> | ||
<!-- | ||
Disabled, IRQn generated as QUADSPI1_IRQn, but the G474VxT uses QUADSPI_IRQn | ||
<peripheral name="QuadSpi" type="QUADSPI_TypeDef*" base="QSPI_R_BASE"> | ||
<item name="QUADSPI"/> | ||
<interrupt/> | ||
</peripheral> | ||
--> | ||
<peripheral name="Rng" type="RNG_TypeDef*"><item name="RNG"/></peripheral> | ||
<peripheral name="Rtc" type="RTC_TypeDef*"><item name="RTC"/></peripheral> | ||
</peripherals> |
Oops, something went wrong.