aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple/stm32f1/include/series/exti.h
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2012-06-20 14:28:32 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2012-06-22 14:06:09 -0400
commitc61a99d053d5ea230e41efe11772bac12ca2d51a (patch)
treed3bd2c1b60de5e13a2df65b38547b588279f92a7 /libmaple/stm32f1/include/series/exti.h
parent2fa8bdb7509e81789e76ca95e8b537272ce95ad5 (diff)
downloadlibrambutan-c61a99d053d5ea230e41efe11772bac12ca2d51a.tar.gz
librambutan-c61a99d053d5ea230e41efe11772bac12ca2d51a.zip
i2c_set_input_clk(): fix an F1-ism.
i2c_set_input_clk()'s documentation says that the maximum peripheral clock frequency is 36 MHz, but that's a hard-coded magic number. The actual limit is the device's APB frequency or 46 MHz, whichever is lower (F2 and F4 share the 46 MHz limit). Fix the documentation to reflect that fact, and add an internal series-provided function to get the maximum clock frequency for a device. To help users porting to F2, have i2c_set_input_clk() assert-check that the provided frequency is less than that maximum value and the hard 46 MHz limit. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'libmaple/stm32f1/include/series/exti.h')
0 files changed, 0 insertions, 0 deletions