Skip to content

Add STM32 G0 support and Nucleo-G071RB variant #459

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Mar 6, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions boards.txt
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,19 @@ Nucleo_64.menu.pnum.NUCLEO_F446RE.build.product_line=STM32F446xx
Nucleo_64.menu.pnum.NUCLEO_F446RE.build.variant=NUCLEO_F446RE
Nucleo_64.menu.pnum.NUCLEO_F446RE.build.cmsis_lib_gcc=arm_cortexM4l_math

# NUCLEO_G071RB board
Nucleo_64.menu.pnum.NUCLEO_G071RB=Nucleo G071RB
Nucleo_64.menu.pnum.NUCLEO_G071RB.node=NODE_G071RB
Nucleo_64.menu.pnum.NUCLEO_G071RB.upload.maximum_size=131072
Nucleo_64.menu.pnum.NUCLEO_G071RB.upload.maximum_data_size=32768
Nucleo_64.menu.pnum.NUCLEO_G071RB.build.mcu=cortex-m0plus
Nucleo_64.menu.pnum.NUCLEO_G071RB.build.board=NUCLEO_G071RB
Nucleo_64.menu.pnum.NUCLEO_G071RB.build.series=STM32G0xx
Nucleo_64.menu.pnum.NUCLEO_G071RB.build.product_line=STM32G071xx
Nucleo_64.menu.pnum.NUCLEO_G071RB.build.variant=NUCLEO_G071RB
Nucleo_64.menu.pnum.NUCLEO_G071RB.build.cmsis_lib_gcc=arm_cortexM0l_math
Nucleo_64.menu.pnum.NUCLEO_G071RB.build.extra_flags=-D{build.product_line} {build.enable_usb} {build.xSerial} -D__CORTEX_SC=0

# NUCLEO_L053R8 board
# Support: Serial1 (USART1 on PA10, PA9)
Nucleo_64.menu.pnum.NUCLEO_L053R8=Nucleo L053R8
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/HAL/stm32yyxx_hal.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
#ifdef STM32F7xx
#include "stm32f7xx_hal.c"
#endif
#ifdef STM32G0xx
#include "stm32g0xx_hal.c"
#endif
#ifdef STM32H7xx
#include "stm32h7xx_hal.c"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/HAL/stm32yyxx_hal_adc.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
#ifdef STM32F7xx
#include "stm32f7xx_hal_adc.c"
#endif
#ifdef STM32G0xx
#include "stm32g0xx_hal_adc.c"
#endif
#ifdef STM32H7xx
#include "stm32h7xx_hal_adc.c"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/HAL/stm32yyxx_hal_adc_ex.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
#ifdef STM32F7xx
#include "stm32f7xx_hal_adc_ex.c"
#endif
#ifdef STM32G0xx
#include "stm32g0xx_hal_adc_ex.c"
#endif
#ifdef STM32H7xx
#include "stm32h7xx_hal_adc_ex.c"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/HAL/stm32yyxx_hal_cec.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
#ifdef STM32F7xx
#include "stm32f7xx_hal_cec.c"
#endif
#ifdef STM32G0xx
#include "stm32g0xx_hal_cec.c"
#endif
#ifdef STM32H7xx
#include "stm32h7xx_hal_cec.c"
#endif
3 changes: 3 additions & 0 deletions cores/arduino/stm32/HAL/stm32yyxx_hal_comp.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
#ifdef STM32F3xx
#include "stm32f3xx_hal_comp.c"
#endif
#ifdef STM32G0xx
#include "stm32g0xx_hal_comp.c"
#endif
#ifdef STM32H7xx
#include "stm32h7xx_hal_comp.c"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/HAL/stm32yyxx_hal_cortex.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
#ifdef STM32F7xx
#include "stm32f7xx_hal_cortex.c"
#endif
#ifdef STM32G0xx
#include "stm32g0xx_hal_cortex.c"
#endif
#ifdef STM32H7xx
#include "stm32h7xx_hal_cortex.c"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/HAL/stm32yyxx_hal_crc.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
#ifdef STM32F7xx
#include "stm32f7xx_hal_crc.c"
#endif
#ifdef STM32G0xx
#include "stm32g0xx_hal_crc.c"
#endif
#ifdef STM32H7xx
#include "stm32h7xx_hal_crc.c"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/HAL/stm32yyxx_hal_crc_ex.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
#ifdef STM32F7xx
#include "stm32f7xx_hal_crc_ex.c"
#endif
#ifdef STM32G0xx
#include "stm32g0xx_hal_crc_ex.c"
#endif
#ifdef STM32H7xx
#include "stm32h7xx_hal_crc_ex.c"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/HAL/stm32yyxx_hal_cryp.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
#ifdef STM32F7xx
#include "stm32f7xx_hal_cryp.c"
#endif
#ifdef STM32G0xx
#include "stm32g0xx_hal_cryp.c"
#endif
#ifdef STM32H7xx
#include "stm32h7xx_hal_cryp.c"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/HAL/stm32yyxx_hal_cryp_ex.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
#ifdef STM32F7xx
#include "stm32f7xx_hal_cryp_ex.c"
#endif
#ifdef STM32G0xx
#include "stm32g0xx_hal_cryp_ex.c"
#endif
#ifdef STM32H7xx
#include "stm32h7xx_hal_cryp_ex.c"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/HAL/stm32yyxx_hal_dac.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
#ifdef STM32F7xx
#include "stm32f7xx_hal_dac.c"
#endif
#ifdef STM32G0xx
#include "stm32g0xx_hal_dac.c"
#endif
#ifdef STM32H7xx
#include "stm32h7xx_hal_dac.c"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/HAL/stm32yyxx_hal_dac_ex.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
#ifdef STM32F7xx
#include "stm32f7xx_hal_dac_ex.c"
#endif
#ifdef STM32G0xx
#include "stm32g0xx_hal_dac_ex.c"
#endif
#ifdef STM32H7xx
#include "stm32h7xx_hal_dac_ex.c"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/HAL/stm32yyxx_hal_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
#ifdef STM32F7xx
#include "stm32f7xx_hal_dma.c"
#endif
#ifdef STM32G0xx
#include "stm32g0xx_hal_dma.c"
#endif
#ifdef STM32H7xx
#include "stm32h7xx_hal_dma.c"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/HAL/stm32yyxx_hal_dma_ex.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
#ifdef STM32F7xx
#include "stm32f7xx_hal_dma_ex.c"
#endif
#ifdef STM32G0xx
#include "stm32g0xx_hal_dma_ex.c"
#endif
#ifdef STM32H7xx
#include "stm32h7xx_hal_dma_ex.c"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/HAL/stm32yyxx_hal_exti.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
#ifdef STM32F7xx
#include "stm32f7xx_hal_exti.c"
#endif
#ifdef STM32G0xx
#include "stm32g0xx_hal_exti.c"
#endif
#ifdef STM32H7xx
#include "stm32h7xx_hal_exti.c"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/HAL/stm32yyxx_hal_flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
#ifdef STM32F7xx
#include "stm32f7xx_hal_flash.c"
#endif
#ifdef STM32G0xx
#include "stm32g0xx_hal_flash.c"
#endif
#ifdef STM32H7xx
#include "stm32h7xx_hal_flash.c"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/HAL/stm32yyxx_hal_flash_ex.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
#ifdef STM32F7xx
#include "stm32f7xx_hal_flash_ex.c"
#endif
#ifdef STM32G0xx
#include "stm32g0xx_hal_flash_ex.c"
#endif
#ifdef STM32H7xx
#include "stm32h7xx_hal_flash_ex.c"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/HAL/stm32yyxx_hal_gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
#ifdef STM32F7xx
#include "stm32f7xx_hal_gpio.c"
#endif
#ifdef STM32G0xx
#include "stm32g0xx_hal_gpio.c"
#endif
#ifdef STM32H7xx
#include "stm32h7xx_hal_gpio.c"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/HAL/stm32yyxx_hal_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
#ifdef STM32F7xx
#include "stm32f7xx_hal_i2c.c"
#endif
#ifdef STM32G0xx
#include "stm32g0xx_hal_i2c.c"
#endif
#ifdef STM32H7xx
#include "stm32h7xx_hal_i2c.c"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/HAL/stm32yyxx_hal_i2c_ex.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
#ifdef STM32F7xx
#include "stm32f7xx_hal_i2c_ex.c"
#endif
#ifdef STM32G0xx
#include "stm32g0xx_hal_i2c_ex.c"
#endif
#ifdef STM32H7xx
#include "stm32h7xx_hal_i2c_ex.c"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/HAL/stm32yyxx_hal_i2s.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
#ifdef STM32F7xx
#include "stm32f7xx_hal_i2s.c"
#endif
#ifdef STM32G0xx
#include "stm32g0xx_hal_i2s.c"
#endif
#ifdef STM32H7xx
#include "stm32h7xx_hal_i2s.c"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/HAL/stm32yyxx_hal_irda.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
#ifdef STM32F7xx
#include "stm32f7xx_hal_irda.c"
#endif
#ifdef STM32G0xx
#include "stm32g0xx_hal_irda.c"
#endif
#ifdef STM32H7xx
#include "stm32h7xx_hal_irda.c"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/HAL/stm32yyxx_hal_iwdg.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
#ifdef STM32F7xx
#include "stm32f7xx_hal_iwdg.c"
#endif
#ifdef STM32G0xx
#include "stm32g0xx_hal_iwdg.c"
#endif
#ifdef STM32H7xx
#include "stm32h7xx_hal_iwdg.c"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/HAL/stm32yyxx_hal_lptim.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
#ifdef STM32F7xx
#include "stm32f7xx_hal_lptim.c"
#endif
#ifdef STM32G0xx
#include "stm32g0xx_hal_lptim.c"
#endif
#ifdef STM32H7xx
#include "stm32h7xx_hal_lptim.c"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/HAL/stm32yyxx_hal_msp_template.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
#ifdef STM32F7xx
#include "stm32f7xx_hal_msp_template.c"
#endif
#ifdef STM32G0xx
#include "stm32g0xx_hal_msp_template.c"
#endif
#ifdef STM32L0xx
#include "stm32l0xx_hal_msp_template.c"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/HAL/stm32yyxx_hal_pwr.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
#ifdef STM32F7xx
#include "stm32f7xx_hal_pwr.c"
#endif
#ifdef STM32G0xx
#include "stm32g0xx_hal_pwr.c"
#endif
#ifdef STM32H7xx
#include "stm32h7xx_hal_pwr.c"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/HAL/stm32yyxx_hal_pwr_ex.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
#ifdef STM32F7xx
#include "stm32f7xx_hal_pwr_ex.c"
#endif
#ifdef STM32G0xx
#include "stm32g0xx_hal_pwr_ex.c"
#endif
#ifdef STM32H7xx
#include "stm32h7xx_hal_pwr_ex.c"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/HAL/stm32yyxx_hal_rcc.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
#ifdef STM32F7xx
#include "stm32f7xx_hal_rcc.c"
#endif
#ifdef STM32G0xx
#include "stm32g0xx_hal_rcc.c"
#endif
#ifdef STM32H7xx
#include "stm32h7xx_hal_rcc.c"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/HAL/stm32yyxx_hal_rcc_ex.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
#ifdef STM32F7xx
#include "stm32f7xx_hal_rcc_ex.c"
#endif
#ifdef STM32G0xx
#include "stm32g0xx_hal_rcc_ex.c"
#endif
#ifdef STM32H7xx
#include "stm32h7xx_hal_rcc_ex.c"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/HAL/stm32yyxx_hal_rng.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
#ifdef STM32F7xx
#include "stm32f7xx_hal_rng.c"
#endif
#ifdef STM32G0xx
#include "stm32g0xx_hal_rng.c"
#endif
#ifdef STM32H7xx
#include "stm32h7xx_hal_rng.c"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/HAL/stm32yyxx_hal_rtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
#ifdef STM32F7xx
#include "stm32f7xx_hal_rtc.c"
#endif
#ifdef STM32G0xx
#include "stm32g0xx_hal_rtc.c"
#endif
#ifdef STM32H7xx
#include "stm32h7xx_hal_rtc.c"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/HAL/stm32yyxx_hal_rtc_ex.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
#ifdef STM32F7xx
#include "stm32f7xx_hal_rtc_ex.c"
#endif
#ifdef STM32G0xx
#include "stm32g0xx_hal_rtc_ex.c"
#endif
#ifdef STM32H7xx
#include "stm32h7xx_hal_rtc_ex.c"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/HAL/stm32yyxx_hal_smartcard.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
#ifdef STM32F7xx
#include "stm32f7xx_hal_smartcard.c"
#endif
#ifdef STM32G0xx
#include "stm32g0xx_hal_smartcard.c"
#endif
#ifdef STM32H7xx
#include "stm32h7xx_hal_smartcard.c"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/HAL/stm32yyxx_hal_smartcard_ex.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
#ifdef STM32F7xx
#include "stm32f7xx_hal_smartcard_ex.c"
#endif
#ifdef STM32G0xx
#include "stm32g0xx_hal_smartcard_ex.c"
#endif
#ifdef STM32H7xx
#include "stm32h7xx_hal_smartcard_ex.c"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/HAL/stm32yyxx_hal_smbus.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
#ifdef STM32F7xx
#include "stm32f7xx_hal_smbus.c"
#endif
#ifdef STM32G0xx
#include "stm32g0xx_hal_smbus.c"
#endif
#ifdef STM32H7xx
#include "stm32h7xx_hal_smbus.c"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/HAL/stm32yyxx_hal_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
#ifdef STM32F7xx
#include "stm32f7xx_hal_spi.c"
#endif
#ifdef STM32G0xx
#include "stm32g0xx_hal_spi.c"
#endif
#ifdef STM32H7xx
#include "stm32h7xx_hal_spi.c"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/HAL/stm32yyxx_hal_spi_ex.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
#ifdef STM32F7xx
#include "stm32f7xx_hal_spi_ex.c"
#endif
#ifdef STM32G0xx
#include "stm32g0xx_hal_spi_ex.c"
#endif
#ifdef STM32H7xx
#include "stm32h7xx_hal_spi_ex.c"
#endif
Expand Down
3 changes: 3 additions & 0 deletions cores/arduino/stm32/HAL/stm32yyxx_hal_tim.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
#ifdef STM32F7xx
#include "stm32f7xx_hal_tim.c"
#endif
#ifdef STM32G0xx
#include "stm32g0xx_hal_tim.c"
#endif
#ifdef STM32H7xx
#include "stm32h7xx_hal_tim.c"
#endif
Expand Down
Loading