-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
i2c: i2c-stm32f4: use generic definition of speed enum
This patch uses a more generic definition of speed enum for i2c-stm32f4 driver. Signed-off-by: M'boumba Cedric Madianga <cedric.madianga@gmail.com> Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mordret@st.com> Reviewed-by: Ludovic BARRE <ludovic.barre@st.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
- Loading branch information
Pierre-Yves MORDRET
authored and
Wolfram Sang
committed
Sep 14, 2017
1 parent
edcd2ae
commit df8c847
Showing
2 changed files
with
27 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* i2c-stm32.h | ||
* | ||
* Copyright (C) M'boumba Cedric Madianga 2017 | ||
* Author: M'boumba Cedric Madianga <cedric.madianga@gmail.com> | ||
* | ||
* License terms: GNU General Public License (GPL), version 2 | ||
*/ | ||
|
||
#ifndef _I2C_STM32_H | ||
#define _I2C_STM32_H | ||
|
||
enum stm32_i2c_speed { | ||
STM32_I2C_SPEED_STANDARD, /* 100 kHz */ | ||
STM32_I2C_SPEED_FAST, /* 400 kHz */ | ||
STM32_I2C_SPEED_FAST_PLUS, /* 1 MHz */ | ||
STM32_I2C_SPEED_END, | ||
}; | ||
|
||
#endif /* _I2C_STM32_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters