File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -131,13 +131,17 @@ uint32_t spi_getClkFreqInst(SPI_TypeDef * spi_inst)
131131 /* SPI1, SPI4, SPI5 and SPI6. Source CLK is PCKL2 */
132132 spi_freq = HAL_RCC_GetPCLK2Freq ();
133133 break ;
134+ #if defined(SPI2_BASE ) || defined (SPI3_BASE )
135+ #if defined SPI2_BASE
134136 case (uint32_t )SPI2 :
137+ #endif
135138#if defined SPI3_BASE
136139 case (uint32_t )SPI3 :
137140#endif
138141 /* SPI_2 and SPI_3. Source CLK is PCKL1 */
139142 spi_freq = HAL_RCC_GetPCLK1Freq ();
140143 break ;
144+ #endif
141145 default :
142146 printf ("CLK: SPI instance not set" );
143147 break ;
Original file line number Diff line number Diff line change @@ -44,9 +44,9 @@ build.extra_flags=
4444build.ldscript=ldscript.ld
4545
4646# These can be overridden in platform.local.txt
47- compiler.c.extra_flags=
47+ compiler.c.extra_flags=-DENABLE_SERIAL1
4848compiler.c.elf.extra_flags=
49- compiler.cpp.extra_flags=
49+ compiler.cpp.extra_flags=-DENABLE_SERIAL1
5050compiler.S.extra_flags=
5151compiler.ar.extra_flags=
5252compiler.elf2hex.extra_flags=
You can’t perform that action at this time.
0 commit comments