aboutsummaryrefslogtreecommitdiff
path: root/examples/other/i2c_stts75_sensor
diff options
context:
space:
mode:
authorThomas Otto2010-05-02 20:28:51 +0200
committerThomas Otto2010-05-02 20:28:51 +0200
commitffcf53ef00389aca1b2420ee40fb80b809570046 (patch)
treeb5dc40fa11434eb71f07deedde8fd6000758f84f /examples/other/i2c_stts75_sensor
parent4f272b4ad4c89bef659bd253616129d2cab2c6bd (diff)
Make examples/other make use of new clock setup.
Diffstat (limited to 'examples/other/i2c_stts75_sensor')
-rw-r--r--examples/other/i2c_stts75_sensor/i2c_stts75_sensor.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/examples/other/i2c_stts75_sensor/i2c_stts75_sensor.c b/examples/other/i2c_stts75_sensor/i2c_stts75_sensor.c
index 748e12b..fe70f8f 100644
--- a/examples/other/i2c_stts75_sensor/i2c_stts75_sensor.c
+++ b/examples/other/i2c_stts75_sensor/i2c_stts75_sensor.c
@@ -24,12 +24,6 @@
#include <libopenstm32/i2c.h>
#include "stts75.h"
-/* Set STM32 to 72 MHz. */
-void clock_setup(void)
-{
- rcc_clock_setup_in_hse_8mhz_out_72mhz();
-}
-
void usart_setup(void)
{
/* Enable clocks for GPIO port A (for GPIO_USART1_TX) and USART1. */
@@ -113,7 +107,7 @@ int main(void)
int i = 0;
u16 temperature;
- clock_setup();
+ rcc_clock_setup_in_hse_16mhz_out_72mhz();
gpio_setup();
usart_setup();
i2c_setup();