@@ -181,55 +181,50 @@ specific memorymap.h header before including this header file.*/
181181
182182/* Note: Bits [7:6] are reserved, and forced to 0 by hardware. */
183183
184- /* FREQ[5:0]: Peripheral clock frequency (valid values: 2-36 MHz, 2-42 MHz for
185- * STM32F4 respectively) */
186- /****************************************************************************/
187- /** @defgroup i2c_clock I2C clock frequency settings
188- @ingroup i2c_defines
184+ enum i2c_cr2_freq_values {
185+ I2C_CR2_FREQ_2MHZ __attribute__ ((deprecated ("Replace with 2 directly" ))) = 2 ,
186+ I2C_CR2_FREQ_3MHZ __attribute__ ((deprecated ("Replace with 3 directly" ))),
187+ I2C_CR2_FREQ_4MHZ __attribute__ ((deprecated ("Replace with 4 directly" ))),
188+ I2C_CR2_FREQ_5MHZ __attribute__ ((deprecated ("Replace with 5 directly" ))),
189+ I2C_CR2_FREQ_6MHZ __attribute__ ((deprecated ("Replace with 6 directly" ))),
190+ I2C_CR2_FREQ_7MHZ __attribute__ ((deprecated ("Replace with 7 directly" ))),
191+ I2C_CR2_FREQ_8MHZ __attribute__ ((deprecated ("Replace with 8 directly" ))),
192+ I2C_CR2_FREQ_9MHZ __attribute__ ((deprecated ("Replace with 9 directly" ))),
193+ I2C_CR2_FREQ_10MHZ __attribute__ ((deprecated ("Replace with 10 directly" ))),
194+ I2C_CR2_FREQ_11MHZ __attribute__ ((deprecated ("Replace with 11 directly" ))),
195+ I2C_CR2_FREQ_12MHZ __attribute__ ((deprecated ("Replace with 12 directly" ))),
196+ I2C_CR2_FREQ_13MHZ __attribute__ ((deprecated ("Replace with 13 directly" ))),
197+ I2C_CR2_FREQ_14MHZ __attribute__ ((deprecated ("Replace with 14 directly" ))),
198+ I2C_CR2_FREQ_15MHZ __attribute__ ((deprecated ("Replace with 15 directly" ))),
199+ I2C_CR2_FREQ_16MHZ __attribute__ ((deprecated ("Replace with 16 directly" ))),
200+ I2C_CR2_FREQ_17MHZ __attribute__ ((deprecated ("Replace with 17 directly" ))),
201+ I2C_CR2_FREQ_18MHZ __attribute__ ((deprecated ("Replace with 18 directly" ))),
202+ I2C_CR2_FREQ_19MHZ __attribute__ ((deprecated ("Replace with 19 directly" ))),
203+ I2C_CR2_FREQ_20MHZ __attribute__ ((deprecated ("Replace with 20 directly" ))),
204+ I2C_CR2_FREQ_21MHZ __attribute__ ((deprecated ("Replace with 21 directly" ))),
205+ I2C_CR2_FREQ_22MHZ __attribute__ ((deprecated ("Replace with 22 directly" ))),
206+ I2C_CR2_FREQ_23MHZ __attribute__ ((deprecated ("Replace with 23 directly" ))),
207+ I2C_CR2_FREQ_24MHZ __attribute__ ((deprecated ("Replace with 24 directly" ))),
208+ I2C_CR2_FREQ_25MHZ __attribute__ ((deprecated ("Replace with 25 directly" ))),
209+ I2C_CR2_FREQ_26MHZ __attribute__ ((deprecated ("Replace with 26 directly" ))),
210+ I2C_CR2_FREQ_27MHZ __attribute__ ((deprecated ("Replace with 27 directly" ))),
211+ I2C_CR2_FREQ_28MHZ __attribute__ ((deprecated ("Replace with 28 directly" ))),
212+ I2C_CR2_FREQ_29MHZ __attribute__ ((deprecated ("Replace with 29 directly" ))),
213+ I2C_CR2_FREQ_30MHZ __attribute__ ((deprecated ("Replace with 30 directly" ))),
214+ I2C_CR2_FREQ_31MHZ __attribute__ ((deprecated ("Replace with 31 directly" ))),
215+ I2C_CR2_FREQ_32MHZ __attribute__ ((deprecated ("Replace with 32 directly" ))),
216+ I2C_CR2_FREQ_33MHZ __attribute__ ((deprecated ("Replace with 33 directly" ))),
217+ I2C_CR2_FREQ_34MHZ __attribute__ ((deprecated ("Replace with 34 directly" ))),
218+ I2C_CR2_FREQ_35MHZ __attribute__ ((deprecated ("Replace with 35 directly" ))),
219+ I2C_CR2_FREQ_36MHZ __attribute__ ((deprecated ("Replace with 36 directly" ))),
220+ I2C_CR2_FREQ_37MHZ __attribute__ ((deprecated ("Replace with 37 directly" ))),
221+ I2C_CR2_FREQ_38MHZ __attribute__ ((deprecated ("Replace with 38 directly" ))),
222+ I2C_CR2_FREQ_39MHZ __attribute__ ((deprecated ("Replace with 39 directly" ))),
223+ I2C_CR2_FREQ_40MHZ __attribute__ ((deprecated ("Replace with 40 directly" ))),
224+ I2C_CR2_FREQ_41MHZ __attribute__ ((deprecated ("Replace with 41 directly" ))),
225+ I2C_CR2_FREQ_42MHZ __attribute__ ((deprecated ("Replace with 42 directly" ))),
226+ } __attribute__ ((deprecated ("Replace _nMHZ with n directly" )));
189227
190- @{*/
191- #define I2C_CR2_FREQ_2MHZ 0x02
192- #define I2C_CR2_FREQ_3MHZ 0x03
193- #define I2C_CR2_FREQ_4MHZ 0x04
194- #define I2C_CR2_FREQ_5MHZ 0x05
195- #define I2C_CR2_FREQ_6MHZ 0x06
196- #define I2C_CR2_FREQ_7MHZ 0x07
197- #define I2C_CR2_FREQ_8MHZ 0x08
198- #define I2C_CR2_FREQ_9MHZ 0x09
199- #define I2C_CR2_FREQ_10MHZ 0x0a
200- #define I2C_CR2_FREQ_11MHZ 0x0b
201- #define I2C_CR2_FREQ_12MHZ 0x0c
202- #define I2C_CR2_FREQ_13MHZ 0x0d
203- #define I2C_CR2_FREQ_14MHZ 0x0e
204- #define I2C_CR2_FREQ_15MHZ 0x0f
205- #define I2C_CR2_FREQ_16MHZ 0x10
206- #define I2C_CR2_FREQ_17MHZ 0x11
207- #define I2C_CR2_FREQ_18MHZ 0x12
208- #define I2C_CR2_FREQ_19MHZ 0x13
209- #define I2C_CR2_FREQ_20MHZ 0x14
210- #define I2C_CR2_FREQ_21MHZ 0x15
211- #define I2C_CR2_FREQ_22MHZ 0x16
212- #define I2C_CR2_FREQ_23MHZ 0x17
213- #define I2C_CR2_FREQ_24MHZ 0x18
214- #define I2C_CR2_FREQ_25MHZ 0x19
215- #define I2C_CR2_FREQ_26MHZ 0x1a
216- #define I2C_CR2_FREQ_27MHZ 0x1b
217- #define I2C_CR2_FREQ_28MHZ 0x1c
218- #define I2C_CR2_FREQ_29MHZ 0x1d
219- #define I2C_CR2_FREQ_30MHZ 0x1e
220- #define I2C_CR2_FREQ_31MHZ 0x1f
221- #define I2C_CR2_FREQ_32MHZ 0x20
222- #define I2C_CR2_FREQ_33MHZ 0x21
223- #define I2C_CR2_FREQ_34MHZ 0x22
224- #define I2C_CR2_FREQ_35MHZ 0x23
225- #define I2C_CR2_FREQ_36MHZ 0x24
226- #define I2C_CR2_FREQ_37MHZ 0x25
227- #define I2C_CR2_FREQ_38MHZ 0x26
228- #define I2C_CR2_FREQ_39MHZ 0x27
229- #define I2C_CR2_FREQ_40MHZ 0x28
230- #define I2C_CR2_FREQ_41MHZ 0x29
231- #define I2C_CR2_FREQ_42MHZ 0x2a
232- /**@}*/
233228
234229/* --- I2Cx_OAR1 values ---------------------------------------------------- */
235230
0 commit comments