File tree 2 files changed +6
-2
lines changed
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)
131
131
/* SPI1, SPI4, SPI5 and SPI6. Source CLK is PCKL2 */
132
132
spi_freq = HAL_RCC_GetPCLK2Freq ();
133
133
break ;
134
+ #if defined(SPI2_BASE ) || defined (SPI3_BASE )
135
+ #if defined SPI2_BASE
134
136
case (uint32_t )SPI2 :
137
+ #endif
135
138
#if defined SPI3_BASE
136
139
case (uint32_t )SPI3 :
137
140
#endif
138
141
/* SPI_2 and SPI_3. Source CLK is PCKL1 */
139
142
spi_freq = HAL_RCC_GetPCLK1Freq ();
140
143
break ;
144
+ #endif
141
145
default :
142
146
printf ("CLK: SPI instance not set" );
143
147
break ;
Original file line number Diff line number Diff line change @@ -44,9 +44,9 @@ build.extra_flags=
44
44
build.ldscript=ldscript.ld
45
45
46
46
# These can be overridden in platform.local.txt
47
- compiler.c.extra_flags=
47
+ compiler.c.extra_flags=-DENABLE_SERIAL1
48
48
compiler.c.elf.extra_flags=
49
- compiler.cpp.extra_flags=
49
+ compiler.cpp.extra_flags=-DENABLE_SERIAL1
50
50
compiler.S.extra_flags=
51
51
compiler.ar.extra_flags=
52
52
compiler.elf2hex.extra_flags=
You can’t perform that action at this time.
0 commit comments