mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
Tiva I2C: Correct an in conditional compilation
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* arch/arm/src/tiva/tiva_i2c.c
|
* arch/arm/src/tiva/tiva_i2c.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2014-2016 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2014-2017 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
*
|
*
|
||||||
* The basic structure of this driver derives in spirit (if nothing more) from the
|
* The basic structure of this driver derives in spirit (if nothing more) from the
|
||||||
@@ -1378,7 +1378,7 @@ static int tiva_i2c_process(struct tiva_i2c_priv_s *priv, uint32_t status)
|
|||||||
*
|
*
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
#if !defined(CONFIG_I2C_POLLED) && defined(CONFIG_TIVA_I2C0)
|
#ifndef CONFIG_I2C_POLLED
|
||||||
static int tiva_i2c_interrupt(int irq, void *context, void *arg)
|
static int tiva_i2c_interrupt(int irq, void *context, void *arg)
|
||||||
{
|
{
|
||||||
struct tiva_i2c_priv_s *priv = (struct tiva_i2c_priv_s *)arg;
|
struct tiva_i2c_priv_s *priv = (struct tiva_i2c_priv_s *)arg;
|
||||||
|
|||||||
Reference in New Issue
Block a user