-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3e8c425
commit a56b482
Showing
365 changed files
with
571,719 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
layer: | ||
type: Board | ||
description: Default STM32G474E-EVAL1 board setup (GCC) | ||
for-board: STMicroelectronics::STM32G474E-EVAL1 | ||
|
||
generators: | ||
options: | ||
- generator: CubeMX | ||
path: ./CubeMX | ||
name: Board | ||
|
||
connections: | ||
- connect: STM32G474E-EVAL1 Board | ||
provides: | ||
- CMSIS_USART | ||
- CMSIS_USB_Device | ||
- CMSIS_VIO | ||
- STDIN | ||
- STDOUT | ||
- STDERR | ||
- Heap: 65536 | ||
|
||
define: | ||
- CMSIS_target_header: \"STM32G474E-EVAL1.h\" | ||
|
||
packs: | ||
- pack: Keil::STM32G4xx_DFP@^2.0.0-0 | ||
- pack: Keil::STM32G474E-EVAL1_BSP@^1.0.0-0 | ||
- pack: ARM::CMSIS-Driver_STM32@^1.0.0-0 | ||
- pack: ARM::CMSIS-Driver@^2.8.0-0 | ||
- pack: ARM::CMSIS@^6.0.0 | ||
- pack: ARM::CMSIS-Compiler@^2.0.0 | ||
|
||
components: | ||
- component: Device:CubeMX | ||
|
||
- component: CMSIS:CORE | ||
|
||
- component: CMSIS Driver:GPIO | ||
- component: CMSIS Driver:USART | ||
- component: CMSIS Driver:USB Device | ||
- component: CMSIS Driver:VIO:Board | ||
|
||
- component: CMSIS-Compiler:CORE | ||
- component: CMSIS-Compiler:STDERR:Custom | ||
- component: CMSIS-Compiler:STDOUT:Custom | ||
- component: CMSIS-Compiler:STDIN:Custom | ||
|
||
groups: | ||
- group: Board | ||
files: | ||
- file: ./README.md | ||
- file: ./STM32G474E-EVAL1.h | ||
- file: ./retarget_stdio.c | ||
|
||
linker: | ||
- script: ./CubeMX/STM32CubeMX/STM32CubeIDE/STM32G474QETX_FLASH.ld | ||
for-compiler: GCC |
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,56 @@ | ||
generator-import: | ||
for-device: STM32G474QETx | ||
for-board: STM32G474E-EVAL1 | ||
define: | ||
- USE_HAL_DRIVER | ||
- STM32G474xx | ||
add-path: | ||
- ./STM32CubeMX/Drivers/STM32G4xx_HAL_Driver/Inc | ||
- ./STM32CubeMX/Drivers/STM32G4xx_HAL_Driver/Inc/Legacy | ||
- ./STM32CubeMX/Drivers/CMSIS/Device/ST/STM32G4xx/Include | ||
- ./STM32CubeMX/Inc | ||
- ./MX_Device | ||
groups: | ||
- group: CubeMX | ||
files: | ||
- file: ./STM32CubeMX/Src/main.c | ||
- file: ./STM32CubeMX/Src/stm32g4xx_it.c | ||
- file: ./STM32CubeMX/Src/stm32g4xx_hal_msp.c | ||
- file: ./STM32CubeMX/Src/stm32g4xx_hal_timebase_tim.c | ||
- file: ./STM32CubeMX/STM32CubeIDE/Application/Startup/startup_stm32g474qetx.s | ||
- file: ./STM32CubeMX/Src/system_stm32g4xx.c | ||
- group: STM32 HAL Driver | ||
files: | ||
- file: ./STM32CubeMX/Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c | ||
- file: ./STM32CubeMX/Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc_ex.c | ||
- file: ./STM32CubeMX/Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_ll_adc.c | ||
- file: ./STM32CubeMX/Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal.c | ||
- file: ./STM32CubeMX/Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_rcc.c | ||
- file: ./STM32CubeMX/Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_rcc_ex.c | ||
- file: ./STM32CubeMX/Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_flash.c | ||
- file: ./STM32CubeMX/Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_flash_ex.c | ||
- file: ./STM32CubeMX/Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_flash_ramfunc.c | ||
- file: ./STM32CubeMX/Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_gpio.c | ||
- file: ./STM32CubeMX/Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_exti.c | ||
- file: ./STM32CubeMX/Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_dma.c | ||
- file: ./STM32CubeMX/Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_dma_ex.c | ||
- file: ./STM32CubeMX/Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_pwr.c | ||
- file: ./STM32CubeMX/Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_pwr_ex.c | ||
- file: ./STM32CubeMX/Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_cortex.c | ||
- file: ./STM32CubeMX/Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_dac.c | ||
- file: ./STM32CubeMX/Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_dac_ex.c | ||
- file: ./STM32CubeMX/Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_fdcan.c | ||
- file: ./STM32CubeMX/Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_hrtim.c | ||
- file: ./STM32CubeMX/Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_smbus.c | ||
- file: ./STM32CubeMX/Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_smbus_ex.c | ||
- file: ./STM32CubeMX/Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_opamp.c | ||
- file: ./STM32CubeMX/Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_opamp_ex.c | ||
- file: ./STM32CubeMX/Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_spi.c | ||
- file: ./STM32CubeMX/Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_spi_ex.c | ||
- file: ./STM32CubeMX/Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim.c | ||
- file: ./STM32CubeMX/Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_tim_ex.c | ||
- file: ./STM32CubeMX/Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.c | ||
- file: ./STM32CubeMX/Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart_ex.c | ||
- file: ./STM32CubeMX/Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_pcd.c | ||
- file: ./STM32CubeMX/Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_pcd_ex.c | ||
- file: ./STM32CubeMX/Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_ll_usb.c |
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,170 @@ | ||
/****************************************************************************** | ||
* File Name : MX_Device.h | ||
* Date : 28/11/2024 12:20:45 | ||
* Description : STM32Cube MX parameter definitions | ||
* Note : This file is generated with a generator out of the | ||
* STM32CubeMX project and its generated files (DO NOT EDIT!) | ||
******************************************************************************/ | ||
|
||
#ifndef MX_DEVICE_H__ | ||
#define MX_DEVICE_H__ | ||
|
||
/* MX_Device.h version */ | ||
#define MX_DEVICE_VERSION 0x01000000 | ||
|
||
|
||
/*------------------------------ FDCAN1 -----------------------------*/ | ||
#define MX_FDCAN1 1 | ||
|
||
/* Pins */ | ||
|
||
/* FDCAN1_RX */ | ||
#define MX_FDCAN1_RX_Pin PB8 | ||
#define MX_FDCAN1_RX_GPIO_Pin GPIO_PIN_8 | ||
#define MX_FDCAN1_RX_GPIOx GPIOB | ||
#define MX_FDCAN1_RX_GPIO_Mode GPIO_MODE_AF_PP | ||
#define MX_FDCAN1_RX_GPIO_PuPd GPIO_NOPULL | ||
#define MX_FDCAN1_RX_GPIO_Speed GPIO_SPEED_FREQ_LOW | ||
#define MX_FDCAN1_RX_GPIO_AF GPIO_AF9_FDCAN1 | ||
|
||
/* FDCAN1_TX */ | ||
#define MX_FDCAN1_TX_Pin PB9 | ||
#define MX_FDCAN1_TX_GPIO_Pin GPIO_PIN_9 | ||
#define MX_FDCAN1_TX_GPIOx GPIOB | ||
#define MX_FDCAN1_TX_GPIO_Mode GPIO_MODE_AF_PP | ||
#define MX_FDCAN1_TX_GPIO_PuPd GPIO_NOPULL | ||
#define MX_FDCAN1_TX_GPIO_Speed GPIO_SPEED_FREQ_LOW | ||
#define MX_FDCAN1_TX_GPIO_AF GPIO_AF9_FDCAN1 | ||
|
||
/*------------------------------ I2C3 -----------------------------*/ | ||
#define MX_I2C3 1 | ||
|
||
/* Peripheral Clock Frequency */ | ||
#define MX_I2C3_PERIPH_CLOCK_FREQ 150000000 | ||
|
||
/* Pins */ | ||
|
||
/* I2C3_SCL */ | ||
#define MX_I2C3_SCL_Pin PG7 | ||
#define MX_I2C3_SCL_GPIO_Pin GPIO_PIN_7 | ||
#define MX_I2C3_SCL_GPIOx GPIOG | ||
#define MX_I2C3_SCL_GPIO_Mode GPIO_MODE_AF_OD | ||
#define MX_I2C3_SCL_GPIO_PuPd GPIO_PULLUP | ||
#define MX_I2C3_SCL_GPIO_Speed GPIO_SPEED_FREQ_LOW | ||
#define MX_I2C3_SCL_GPIO_AF GPIO_AF4_I2C3 | ||
|
||
/* I2C3_SDA */ | ||
#define MX_I2C3_SDA_Pin PG8 | ||
#define MX_I2C3_SDA_GPIO_Pin GPIO_PIN_8 | ||
#define MX_I2C3_SDA_GPIOx GPIOG | ||
#define MX_I2C3_SDA_GPIO_Mode GPIO_MODE_AF_OD | ||
#define MX_I2C3_SDA_GPIO_PuPd GPIO_PULLUP | ||
#define MX_I2C3_SDA_GPIO_Speed GPIO_SPEED_FREQ_LOW | ||
#define MX_I2C3_SDA_GPIO_AF GPIO_AF4_I2C3 | ||
|
||
/* I2C3_SMBA */ | ||
#define MX_I2C3_SMBA_Pin PG6 | ||
#define MX_I2C3_SMBA_GPIO_Pin GPIO_PIN_6 | ||
#define MX_I2C3_SMBA_GPIOx GPIOG | ||
#define MX_I2C3_SMBA_GPIO_Mode GPIO_MODE_AF_OD | ||
#define MX_I2C3_SMBA_GPIO_PuPd GPIO_PULLUP | ||
#define MX_I2C3_SMBA_GPIO_Speed GPIO_SPEED_FREQ_LOW | ||
#define MX_I2C3_SMBA_GPIO_AF GPIO_AF4_I2C3 | ||
|
||
/*------------------------------ SPI2 -----------------------------*/ | ||
#define MX_SPI2 1 | ||
|
||
/* Peripheral Clock Frequency */ | ||
#define MX_SPI2_PERIPH_CLOCK_FREQ 150000000 | ||
|
||
/* Pins */ | ||
|
||
/* SPI2_MISO */ | ||
#define MX_SPI2_MISO_Pin PB14 | ||
#define MX_SPI2_MISO_GPIO_Pin GPIO_PIN_14 | ||
#define MX_SPI2_MISO_GPIOx GPIOB | ||
#define MX_SPI2_MISO_GPIO_Mode GPIO_MODE_AF_PP | ||
#define MX_SPI2_MISO_GPIO_PuPd GPIO_NOPULL | ||
#define MX_SPI2_MISO_GPIO_Speed GPIO_SPEED_FREQ_LOW | ||
#define MX_SPI2_MISO_GPIO_AF GPIO_AF5_SPI2 | ||
|
||
/* SPI2_MOSI */ | ||
#define MX_SPI2_MOSI_Pin PB15 | ||
#define MX_SPI2_MOSI_GPIO_Pin GPIO_PIN_15 | ||
#define MX_SPI2_MOSI_GPIOx GPIOB | ||
#define MX_SPI2_MOSI_GPIO_Mode GPIO_MODE_AF_PP | ||
#define MX_SPI2_MOSI_GPIO_PuPd GPIO_NOPULL | ||
#define MX_SPI2_MOSI_GPIO_Speed GPIO_SPEED_FREQ_LOW | ||
#define MX_SPI2_MOSI_GPIO_AF GPIO_AF5_SPI2 | ||
|
||
/* SPI2_SCK */ | ||
#define MX_SPI2_SCK_Pin PF9 | ||
#define MX_SPI2_SCK_GPIO_Pin GPIO_PIN_9 | ||
#define MX_SPI2_SCK_GPIOx GPIOF | ||
#define MX_SPI2_SCK_GPIO_Mode GPIO_MODE_AF_PP | ||
#define MX_SPI2_SCK_GPIO_PuPd GPIO_NOPULL | ||
#define MX_SPI2_SCK_GPIO_Speed GPIO_SPEED_FREQ_LOW | ||
#define MX_SPI2_SCK_GPIO_AF GPIO_AF5_SPI2 | ||
|
||
/*------------------------------ USART1 -----------------------------*/ | ||
#define MX_USART1 1 | ||
|
||
/* Virtual mode */ | ||
#define MX_USART1_VM VM_ASYNC | ||
#define MX_USART1_VM_ASYNC 1 | ||
|
||
/* Pins */ | ||
|
||
/* USART1_RX */ | ||
#define MX_USART1_RX_Pin PA10 | ||
#define MX_USART1_RX_GPIO_Pin GPIO_PIN_10 | ||
#define MX_USART1_RX_GPIOx GPIOA | ||
#define MX_USART1_RX_GPIO_Mode GPIO_MODE_AF_PP | ||
#define MX_USART1_RX_GPIO_PuPd GPIO_NOPULL | ||
#define MX_USART1_RX_GPIO_Speed GPIO_SPEED_FREQ_VERY_HIGH | ||
#define MX_USART1_RX_GPIO_AF GPIO_AF7_USART1 | ||
|
||
/* USART1_TX */ | ||
#define MX_USART1_TX_Pin PA9 | ||
#define MX_USART1_TX_GPIO_Pin GPIO_PIN_9 | ||
#define MX_USART1_TX_GPIOx GPIOA | ||
#define MX_USART1_TX_GPIO_Mode GPIO_MODE_AF_PP | ||
#define MX_USART1_TX_GPIO_PuPd GPIO_NOPULL | ||
#define MX_USART1_TX_GPIO_Speed GPIO_SPEED_FREQ_VERY_HIGH | ||
#define MX_USART1_TX_GPIO_AF GPIO_AF7_USART1 | ||
|
||
/*------------------------------ USART3 -----------------------------*/ | ||
#define MX_USART3 1 | ||
|
||
/* Virtual mode */ | ||
#define MX_USART3_VM VM_ASYNC | ||
#define MX_USART3_VM_ASYNC 1 | ||
|
||
/* Pins */ | ||
|
||
/* USART3_RX */ | ||
#define MX_USART3_RX_Pin PC11 | ||
#define MX_USART3_RX_GPIO_Pin GPIO_PIN_11 | ||
#define MX_USART3_RX_GPIOx GPIOC | ||
#define MX_USART3_RX_GPIO_Mode GPIO_MODE_AF_PP | ||
#define MX_USART3_RX_GPIO_PuPd GPIO_NOPULL | ||
#define MX_USART3_RX_GPIO_Speed GPIO_SPEED_FREQ_VERY_HIGH | ||
#define MX_USART3_RX_GPIO_AF GPIO_AF7_USART3 | ||
|
||
/* USART3_TX */ | ||
#define MX_USART3_TX_Pin PC10 | ||
#define MX_USART3_TX_GPIO_Pin GPIO_PIN_10 | ||
#define MX_USART3_TX_GPIOx GPIOC | ||
#define MX_USART3_TX_GPIO_Mode GPIO_MODE_AF_PP | ||
#define MX_USART3_TX_GPIO_PuPd GPIO_NOPULL | ||
#define MX_USART3_TX_GPIO_Speed GPIO_SPEED_FREQ_VERY_HIGH | ||
#define MX_USART3_TX_GPIO_AF GPIO_AF7_USART3 | ||
|
||
/*------------------------------ USB -----------------------------*/ | ||
#define MX_USB 1 | ||
|
||
/* Handle */ | ||
#define MX_USB_HANDLE hpcd_USB_FS | ||
|
||
|
||
#endif /* MX_DEVICE_H__ */ |
Oops, something went wrong.