From 20789374a0435f93c8b35b4d14892993379033c0 Mon Sep 17 00:00:00 2001 From: 0xc0170 Date: Sat, 29 Jun 2013 09:10:26 +0200 Subject: [PATCH] i2C - pulse definition, serial - define correction --- libraries/mbed/targets/hal/Freescale/TARGET_KL05Z/i2c_api.c | 1 + libraries/mbed/targets/hal/Freescale/TARGET_KL05Z/serial_api.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/mbed/targets/hal/Freescale/TARGET_KL05Z/i2c_api.c b/libraries/mbed/targets/hal/Freescale/TARGET_KL05Z/i2c_api.c index 9e0408fcf1..3eb27743ec 100644 --- a/libraries/mbed/targets/hal/Freescale/TARGET_KL05Z/i2c_api.c +++ b/libraries/mbed/targets/hal/Freescale/TARGET_KL05Z/i2c_api.c @@ -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 diff --git a/libraries/mbed/targets/hal/Freescale/TARGET_KL05Z/serial_api.c b/libraries/mbed/targets/hal/Freescale/TARGET_KL05Z/serial_api.c index 1cd52eb081..8f8c3ab0a8 100644 --- a/libraries/mbed/targets/hal/Freescale/TARGET_KL05Z/serial_api.c +++ b/libraries/mbed/targets/hal/Freescale/TARGET_KL05Z/serial_api.c @@ -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},