Fix warning
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2140 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
0b21bbf818
commit
b3800e7dea
@ -771,12 +771,13 @@ FAR struct spi_dev_s *up_spiinitialize(int port)
|
||||
{
|
||||
FAR struct stm32_spidev_s *priv = NULL;
|
||||
irqstate_t flags;
|
||||
uint32 mapr;
|
||||
|
||||
flags = irqsave();
|
||||
#ifdef CONFIG_STM32_SPI1
|
||||
if (port == 0)
|
||||
{
|
||||
uint32 mapr;
|
||||
|
||||
/* Select SPI1 */
|
||||
|
||||
priv = &g_spi1dev;
|
||||
|
Loading…
Reference in New Issue
Block a user