aboutsummaryrefslogtreecommitdiff
path: root/examples/other/i2c_stts75_sensor
diff options
context:
space:
mode:
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();