stm32/spi: Replace all SPIx_I2S_BASE with SPIx_BASE

Latest versions of all reference manuals refer to the address as SPIx_BASE, and
simply name some of the individual registers as SPI_I2SXXXX.  Likewise, the
interrupts are simply SPIx, not SPIx/I2Sx.  Rather than hacking more duplicates
into the F0 and L0 parts where this was turning up, remove the pointless _I2S_
from SPI2/SPI3 and make it all consistent

Compile tested only, with the examples collection.

Signed-off-by: Karl Palsson <karlp@tweak.net.au>

Fixes #331
Fixes #347
This commit is contained in:
Karl Palsson
2014-09-30 22:09:11 +00:00
committed by Karl Palsson
parent 2211944233
commit 5d4437fe43
9 changed files with 34 additions and 39 deletions

View File

@@ -86,12 +86,12 @@ void spi_reset(uint32_t spi_peripheral)
rcc_periph_reset_pulse(RST_SPI1);
break;
#endif
#if defined(SPI2_I2S_BASE)
case SPI2_I2S_BASE:
#if defined(SPI2_BASE)
case SPI2_BASE:
rcc_periph_reset_pulse(RST_SPI2);
break;
#endif
#if defined(SPI3_I2S_BASE)
#if defined(SPI3_BASE)
case SPI3_I2S_BASE:
rcc_periph_reset_pulse(RST_SPI3);
break;