Skip to content
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

Add 96Boards WisTrio board support #12354

Merged
merged 10 commits into from
Apr 22, 2019

Conversation

Mani-Sadhasivam
Copy link
Member

@Mani-Sadhasivam Mani-Sadhasivam commented Jan 7, 2019

This PR adds 96Boards WisTrio board support with STM32L1 SoC series and HAL.

Fixes #9333

Signed-off-by: Manivannan Sadhasivam manivannan.sadhasivam@linaro.org

@zephyrbot
Copy link
Collaborator

zephyrbot commented Jan 7, 2019

Found the following issues, please fix and resubmit:

License issues

In most cases you do not need to do anything here, especially if the files
reported below are going into ext/ and if license was approved for inclusion
into ext/ already. Fix any missing license/copyright issues. The license
exception if a JFYI for the maintainers and can be overriden when merging the
pull request.

  • boards/arm/96b_wistrio/CMakeLists.txt missing license.
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32_assert_template.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_hal.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_hal_adc.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_hal_adc_ex.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_hal_comp.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_hal_comp_ex.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_hal_conf.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_hal_cortex.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_hal_crc.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_hal_cryp.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_hal_cryp_ex.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_hal_dac.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_hal_dac_ex.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_hal_def.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_hal_dma.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_hal_flash.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_hal_flash_ex.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_hal_flash_ramfunc.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_hal_gpio.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_hal_gpio_ex.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_hal_i2c.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_hal_i2s.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_hal_irda.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_hal_iwdg.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_hal_lcd.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_hal_nor.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_hal_opamp.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_hal_opamp_ex.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_hal_pcd.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_hal_pcd_ex.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_hal_pwr.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_hal_pwr_ex.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_hal_rcc.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_hal_rcc_ex.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_hal_rtc.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_hal_rtc_ex.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_hal_sd.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_hal_smartcard.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_hal_spi.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_hal_spi_ex.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_hal_sram.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_hal_tim.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_hal_tim_ex.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_hal_uart.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_hal_usart.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_hal_wwdg.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_ll_adc.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_ll_bus.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_ll_comp.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_ll_cortex.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_ll_crc.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_ll_dac.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_ll_dma.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_ll_exti.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_ll_fsmc.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_ll_gpio.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_ll_i2c.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_ll_iwdg.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_ll_opamp.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_ll_pwr.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_ll_rcc.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_ll_rtc.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_ll_sdmmc.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_ll_spi.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_ll_system.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_ll_tim.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_ll_usart.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_ll_utils.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/stm32l1xx_ll_wwdg.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/include/Legacy/stm32_hal_legacy.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_hal.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_hal_adc.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_hal_adc_ex.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_hal_comp.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_hal_cortex.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_hal_crc.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_hal_cryp.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_hal_cryp_ex.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_hal_dac.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_hal_dac_ex.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_hal_dma.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_hal_flash.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_hal_flash_ex.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_hal_flash_ramfunc.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_hal_gpio.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_hal_i2c.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_hal_i2s.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_hal_irda.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_hal_iwdg.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_hal_lcd.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_hal_msp_template.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_hal_nor.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_hal_opamp.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_hal_opamp_ex.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_hal_pcd.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_hal_pcd_ex.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_hal_pwr.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_hal_pwr_ex.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_hal_rcc.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_hal_rcc_ex.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_hal_rtc.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_hal_rtc_ex.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_hal_sd.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_hal_smartcard.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_hal_spi.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_hal_spi_ex.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_hal_sram.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_hal_tim.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_hal_tim_ex.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_hal_timebase_tim_template.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_hal_uart.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_hal_usart.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_hal_wwdg.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_ll_adc.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_ll_comp.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_ll_crc.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_ll_dac.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_ll_dma.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_ll_exti.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_ll_fsmc.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_ll_gpio.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_ll_i2c.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_ll_opamp.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_ll_pwr.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_ll_rcc.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_ll_rtc.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_ll_sdmmc.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_ll_spi.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_ll_tim.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_ll_usart.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/drivers/src/stm32l1xx_ll_utils.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/soc/stm32l100xb.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/soc/stm32l100xba.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/soc/stm32l100xc.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/soc/stm32l151xb.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/soc/stm32l151xba.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/soc/stm32l151xc.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/soc/stm32l151xca.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/soc/stm32l151xd.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/soc/stm32l151xdx.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/soc/stm32l151xe.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/soc/stm32l152xb.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/soc/stm32l152xba.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/soc/stm32l152xc.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/soc/stm32l152xca.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/soc/stm32l152xd.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/soc/stm32l152xdx.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/soc/stm32l152xe.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/soc/stm32l162xc.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/soc/stm32l162xca.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/soc/stm32l162xd.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/soc/stm32l162xdx.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/soc/stm32l162xe.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/soc/stm32l1xx.h is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/soc/system_stm32l1xx.c is not apache-2.0 licensed: bsd-new
  • ext/hal/st/stm32cube/stm32l1xx/soc/system_stm32l1xx.h is not apache-2.0 licensed: bsd-new
  • soc/arm/st_stm32/stm32l1/CMakeLists.txt missing license.

@codecov-io
Copy link

codecov-io commented Jan 7, 2019

Codecov Report

Merging #12354 into master will increase coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #12354      +/-   ##
==========================================
+ Coverage    52.5%    52.5%   +<.01%     
==========================================
  Files         318      318              
  Lines       46526    46526              
  Branches    10754    10754              
==========================================
+ Hits        24428    24429       +1     
  Misses      17198    17198              
+ Partials     4900     4899       -1
Impacted Files Coverage Δ
arch/posix/core/posix_core.c 91.91% <0%> (+1.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d079ce0...1294fb6. Read the comment docs.

@erwango
Copy link
Member

erwango commented Jan 7, 2019

@nashif, I'm surprised with the warning on Cube files license. It's usual BSD-3 clause as used in already in tree versions. Is there anything new on that front?

@Mani-Sadhasivam
Copy link
Member Author

@erwango Do you have any idea about the Sanity check failure?

@erwango
Copy link
Member

erwango commented Jan 8, 2019

@Mani-Sadhasivam, please fix Licence issues for files that are not under ext/. For files under ext/, warning will be discarded.

@Mani-Sadhasivam
Copy link
Member Author

@erwango Fixed the license for non ext/ files. But I'm not sure about the shippable failure for the testcase.


config NUM_IRQS
int
default 32
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you double check this value?
You're using IRQ num > 32 in dts, this should be causing the issue detected by shippable

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah. It is 45. Updated in next revision!

Copy link
Contributor

@dbkinder dbkinder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doc additions LGTM, thanks!

@erwango
Copy link
Member

erwango commented Jan 10, 2019

@Mani-Sadhasivam , can you rebase on top of #12024, this is GPIO driver refactoring, will spare you some code (bit late though ;-))

@Mani-Sadhasivam
Copy link
Member Author

@erwango I'd like to rebase once that PR gets merged. Or we can do the conversion as an incremental PR after merging this!

@erwango
Copy link
Member

erwango commented Jan 11, 2019

@Mani-Sadhasivam, this is now merged. Please take it into account as of now, I prefer not merging code I know it is already obsolete. Besides, due to factorization, this will be less code to review :-)

@erwango
Copy link
Member

erwango commented Jan 11, 2019

@Mani-Sadhasivam, btw, and so you're not disappointed, there are significant changes on going (particularly on dt front), which might have impact on SoC porting and general and hence on this PR. These changes are meant to be integrated in 1.14 LTS.
I'm quite happy to see L1 port coming (thank you for that), but for coherency, I'd like STM32L1 port to be identical to other STM32 series, specially if merged in LTS. So I'll be more than happy to have this PR merged for 1.14, but this means that you'll have to integrate all these on going changes in a short period (and even though, I can't swear it'll will make it).

config SOC_SERIES_STM32L1X
bool "STM32L1x Series MCU"
select CPU_CORTEX_M3
select CPU_CORTEX_M_HAS_VTOR
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need to select CPU_CORTEX_M_HAS_VTOR here because it's already selected by CPU_CORTEX_M3.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ack

@@ -43,6 +43,8 @@
#define EXTI_LINES 24
#elif defined(CONFIG_SOC_SERIES_STM32L0X)
#define EXTI_LINES 30
#elif defined(CONFIG_SOC_SERIES_STM32L1X)
#define EXTI_LINES 40
Copy link
Collaborator

@tagunil tagunil Jan 11, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where does this number come from? I'd say it should be more like 24 for L1.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yeah... It is 24. Will change it!

@@ -14,7 +14,7 @@ if I2C_STM32

config I2C_STM32_V1
bool "STM32 V1 Driver (F1/F4X)"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

L1 here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ack

@nashif
Copy link
Member

nashif commented Jan 13, 2019

@nashif, I'm surprised with the warning on Cube files license. It's usual BSD-3 clause as used in already in tree versions. Is there anything new on that front?

bsd-new is bsd-3 clause

@Mani-Sadhasivam
Copy link
Member Author

@erwango @tagunil Here is the changeset.

  • Fixed EXTI lines
  • Added IRQ defines for STM32L1X EXTI
  • Adopted the GPIO support based on the recently merged STM32 GPIO refactoring PR.

*/

#include <mem.h>
#include <st/l1/stm32l1.dtsi>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a package .dtsi file. It can't include directly the series common common l1.dtsi.
Please add intermediate stm32l151.dtsi

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't find any specific difference to add stm32l151.dtsi file, that's why I added stm32l15XXB.dtsi with common stm32l1.dtsi. Can you please help?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No problem, stm32l151.dtsi could be empty.
Aim is to have same hierarchy as on other series, which proved to scale easily when new SoCs have to be ported.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, cool. Added!

#ifndef _STM32L1_SOC_H_
#define _STM32L1_SOC_H_

#define GPIO_REG_SIZE 0x400
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a leftover from gpio factorization. Please rebase on #12459 (or wait it is merged)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay

*/

/* Port A */
#define STM32L1X_PINMUX_FUNC_PA0_PWM2_CH1 \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you check all these?
Or is that a copy/paste from other series?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most of them are copied from L4X. Will cross check this in next iteration.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, txs

boards/arm/96b_wistrio/96b_wistrio.yaml Show resolved Hide resolved
#include <stm32l1xx_ll_i2c.h>
#endif

#ifdef CONFIG_SPI_STM32
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see any SPI related work in this PR, please remove.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay

@@ -711,6 +730,35 @@ static void __stm32_exti_connect_irqs(struct device *dev)
CONFIG_EXTI_STM32_EXTI15_4_IRQ_PRI,
__stm32_exti_isr_4_15, DEVICE_GET(exti_stm32),
0);
#elif defined(CONFIG_SOC_SERIES_STM32L1X)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please rebase on top of #12463 for factorization

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll wait for it to get merged.

@Mani-Sadhasivam Mani-Sadhasivam force-pushed the 96b_wistrio branch 2 times, most recently from 4490fde to ff705cd Compare January 18, 2019 10:01
Copy link
Member

@erwango erwango left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Last update otherwise it should be fine

bool "STM32L1x Series MCU"
select CPU_CORTEX_M3
select SOC_FAMILY_STM32
select SYS_POWER_LOW_POWER_STATE_SUPPORTED
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Has been renamed into SYS_POWER_LOW_POWER_STATES_SUPPORTED

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@Mani-Sadhasivam
Copy link
Member Author

@erwango I think this PR won't make it for v1.14 LTS?

@erwango
Copy link
Member

erwango commented Feb 18, 2019

@erwango I think this PR won't make it for v1.14 LTS?

Indeed, it won't. But it will be soon merged once 1.15 window is open.

@erwango erwango added this to the v1.15.0 milestone Mar 18, 2019
@galak
Copy link
Collaborator

galak commented Apr 17, 2019

Some minor things that need fixing up.

@frantony
Copy link
Contributor

@Mani-Sadhasivam

Something is wrong with _ClearFaults:

$ sudo apt-get install -y wget python3 python3-yaml python3-pyelftools make cmake gperf git
$ cd ~
$ wget https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.10.0/zephyr-sdk-0.10.0-setup.run
$ mkdir zephyr-sdk
$ cd zephyr-sdk/
$ export TMPDIR=/tmp
$ sh ../zephyr-sdk-0.10.0-setup.run -- -d $(pwd)

$ cd ~
$ git clone https://github.com/Mani-Sadhasivam/zephyr
$ cd zephyr
$ git checkout 96b_wistrio
$ git describe
v1.8.99-15325-ga3d76ee3ef
$ export ZEPHYR_TOOLCHAIN_VARIANT=zephyr
$ export ZEPHYR_SDK_INSTALL_DIR=~/zephyr-sdk
$ source zephyr-env.sh
$ cd samples/hello_world
$ rm -rf build && mkdir build && cd build
$ cmake -DBOARD=96b_wistrio ..
$ make

  ...

[ 94%] Building C object zephyr/CMakeFiles/zephyr_prebuilt.dir/misc/empty_file.c.obj
[ 95%] Linking C executable zephyr_prebuilt.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:       11212 B       128 KB      8.55%
            SRAM:        4116 B        16 KB     25.12%
        IDT_LIST:         120 B         2 KB      5.86%
/home/antony/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/8.3.0/../../../../arm-zephyr-eabi/bin/ld: libzephyr.a(soc.c.obj): in function `stm32l1_init':
/home/antony/zephyr/soc/arm/st_stm32/stm32l1/soc.c:35: undefined reference to `_ClearFaults'
collect2: error: ld returned 1 exit status
make[2]: *** [zephyr/CMakeFiles/zephyr_prebuilt.dir/build.make:96: zephyr/zephyr_prebuilt.elf] Error 1
make[1]: *** [CMakeFiles/Makefile2:455: zephyr/CMakeFiles/zephyr_prebuilt.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

@galak
Copy link
Collaborator

galak commented Apr 21, 2019

Something is wrong with _ClearFaults:

it got renamed to z_clearfaults if I'm not mistaken.

@frantony
Copy link
Contributor

@galak

Something is wrong with _ClearFaults:

it got renamed to z_clearfaults if I'm not mistaken.

You are right! Thanks! It got renamed in fd42bf7.

This commit adds the STM32CUBE HAL for STM32L1x series MCUs.

Origin: ST Microelectronics
License: BSD-3-Clause
URL: http://www.st.com/en/embedded-software/stm32cubel1.html
Commit: 1.8.0
Purpose: HAL layer for STM32L1
Maintained-by: External

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Add STM32L1 SoC series support with STM32L15XXB as the target
SoC.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Add clock support for STM32L1X SoC series.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Add UART support for STM32L1 series SoCs.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Add pinmux support for STM32L1X SoC series.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Add GPIO driver support for STM32L1X SoC series.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Add EXTI support for STM32L1X SoC series.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Add I2C support for STM32L1X SoC series based on I2C_STM32_V1
driver.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Add board support for 96Boards WisTrio LoRa Tracker board from
RAK Wireless. This board is one of the 96Boards IoT Edition platform.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
@Mani-Sadhasivam
Copy link
Member Author

@galak Fixed the issues!

Add myself as the codeowner for 96Boards Wistrio.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
@galak galak merged commit f73e157 into zephyrproject-rtos:master Apr 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for STM32 L1-series
9 participants