arch/arm/src/stm32l4/stm32l4_1wire.c: fix build error, fix typo

This commit is contained in:
Juha Niskanen 2020-04-14 09:38:19 -06:00 committed by Abdelatif Guettouche
parent e1138e35e0
commit 552ca28d22
7 changed files with 8 additions and 8 deletions

View File

@ -134,7 +134,7 @@ struct lc823450_i2c_priv_s
FAR const struct lc823450_i2c_config_s *config;
int refs; /* Referernce count */
int refs; /* Reference count */
sem_t sem_excl; /* Mutual exclusion semaphore */
#ifndef CONFIG_I2C_POLLED
sem_t sem_isr; /* Interrupt wait semaphore */

View File

@ -129,7 +129,7 @@ struct stm32_1wire_config_s
struct stm32_1wire_priv_s
{
const struct stm32_1wire_config_s *config; /* Port configuration */
volatile int refs; /* Referernce count */
volatile int refs; /* Reference count */
sem_t sem_excl; /* Mutual exclusion semaphore */
sem_t sem_isr; /* Interrupt wait semaphore */
int baud; /* Baud rate */

View File

@ -250,7 +250,7 @@ struct stm32_i2c_priv_s
const struct stm32_i2c_config_s *config;
int refs; /* Referernce count */
int refs; /* Reference count */
sem_t sem_excl; /* Mutual exclusion semaphore */
#ifndef CONFIG_I2C_POLLED
sem_t sem_isr; /* Interrupt wait semaphore */

View File

@ -278,7 +278,7 @@ struct stm32_i2c_priv_s
const struct stm32_i2c_config_s *config;
int refs; /* Referernce count */
int refs; /* Reference count */
sem_t sem_excl; /* Mutual exclusion semaphore */
#ifndef CONFIG_I2C_POLLED
sem_t sem_isr; /* Interrupt wait semaphore */

View File

@ -265,7 +265,7 @@ struct stm32_i2c_priv_s
const struct stm32_i2c_config_s *config;
int refs; /* Referernce count */
int refs; /* Reference count */
sem_t sem_excl; /* Mutual exclusion semaphore */
#ifndef CONFIG_I2C_POLLED
sem_t sem_isr; /* Interrupt wait semaphore */

View File

@ -384,7 +384,7 @@ struct stm32_i2c_priv_s
const struct stm32_i2c_config_s *config;
int refs; /* Referernce count */
int refs; /* Reference count */
sem_t sem_excl; /* Mutual exclusion semaphore */
#ifndef CONFIG_I2C_POLLED
sem_t sem_isr; /* Interrupt wait semaphore */

View File

@ -122,7 +122,7 @@ struct stm32_1wire_config_s
struct stm32_1wire_priv_s
{
const struct stm32_1wire_config_s *config; /* Port configuration */
volatile int refs; /* Referernce count */
volatile int refs; /* Reference count */
sem_t sem_excl; /* Mutual exclusion semaphore */
sem_t sem_isr; /* Interrupt wait semaphore */
int baud; /* Baud rate */
@ -681,7 +681,7 @@ static inline void stm32_1wire_sem_destroy(
*
****************************************************************************/
static int void stm32_1wire_sem_wait(FAR struct stm32_1wire_priv_s *priv)
static inline int stm32_1wire_sem_wait(FAR struct stm32_1wire_priv_s *priv)
{
return nxsem_wait_uninterruptible(&priv->sem_excl);
}