Make examples/other make use of new clock setup.

This commit is contained in:
Thomas Otto
2010-05-02 20:28:51 +02:00
parent 4f272b4ad4
commit ffcf53ef00
6 changed files with 6 additions and 218 deletions

View File

@@ -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();