mirror of https://github.com/ARMmbed/mbed-os.git
i2C - pulse definition, serial - define correction
parent
7d3864f27b
commit
20789374a0
|
@ -187,6 +187,7 @@ void i2c_frequency(i2c_t *obj, int hz) {
|
|||
uint8_t i, j;
|
||||
// bus clk
|
||||
uint32_t PCLK = 23986176u;
|
||||
uint32_t pulse;
|
||||
|
||||
// we look for the values that minimize the error
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
#include "pinmap.h"
|
||||
#include "error.h"
|
||||
|
||||
#define UART_CLOCK_HZ 23986176u
|
||||
#define UART_CLOCK_HZ 47972352u
|
||||
|
||||
static const PinMap PinMap_UART_TX[] = {
|
||||
{PTB1, UART_0, 2},
|
||||
|
|
Loading…
Reference in New Issue