configs/stm32f344-disco: Fix an error that was causing build tests to fail.

This commit is contained in:
Gregory Nutt 2018-04-04 15:35:57 -06:00
parent 318c7e11c3
commit 4cf3a06ef6
2 changed files with 18 additions and 1 deletions

View File

@ -1063,7 +1063,7 @@ int stm32_smps_setup(void)
ret = up_prioritize_irq(STM32_IRQ_ADC12, NVIC_SYSH_HIGH_PRIORITY);
if (ret < 0)
{
pwrerr("ERROR: ""
pwrerr("ERROR: "
"highpri_main: ERROR: up_prioritize_irq failed: %d\n",
ret);
ret = EXIT_FAILURE;

View File

@ -66,6 +66,9 @@ struct spi_dev_s *g_spi1;
#ifdef CONFIG_STM32_SPI2
struct spi_dev_s *g_spi2;
#endif
#ifdef CONFIG_STM32_SPI3
struct spi_dev_s *g_spi3;
#endif
/************************************************************************************
* Public Functions
@ -104,6 +107,20 @@ void weak_function stm32_spiinitialize(void)
{
spierr("ERROR: [boot] FAILED to initialize SPI port 2\n");
}
#warning No devices specified on SPI2
#endif
#ifdef CONFIG_STM32_SPI2
/* Configure SPI-based devices on SPI3 */
g_spi2 = up_spiinitialize(3);
if (!g_spi2)
{
spierr("ERROR: [boot] FAILED to initialize SPI port 3\n");
}
#warning No devices specified on SPI3
#endif
}