configs/stm32f344-disco: Fix an error that was causing build tests to fail.
This commit is contained in:
parent
318c7e11c3
commit
4cf3a06ef6
@ -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;
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user