i2C - pulse definition, serial - define correction

pull/11/head
0xc0170 2013-06-29 09:10:26 +02:00
parent 7d3864f27b
commit 20789374a0
2 changed files with 2 additions and 1 deletions

View File

@ -187,6 +187,7 @@ void i2c_frequency(i2c_t *obj, int hz) {
uint8_t i, j; uint8_t i, j;
// bus clk // bus clk
uint32_t PCLK = 23986176u; uint32_t PCLK = 23986176u;
uint32_t pulse;
// we look for the values that minimize the error // we look for the values that minimize the error

View File

@ -24,7 +24,7 @@
#include "pinmap.h" #include "pinmap.h"
#include "error.h" #include "error.h"
#define UART_CLOCK_HZ 23986176u #define UART_CLOCK_HZ 47972352u
static const PinMap PinMap_UART_TX[] = { static const PinMap PinMap_UART_TX[] = {
{PTB1, UART_0, 2}, {PTB1, UART_0, 2},