来自中国的硬件平台

Dependents:   mbed_in_china_blink_led

Fork of mbed-src by mbed official

Files at this revision

API Documentation at this revision

Comitter:
mbed_official
Date:
Tue Apr 01 17:00:08 2014 +0100
Parent:
141:706f8dea204a
Child:
143:d037f9fa688d
Commit message:
Synchronized with git revision 0617b11a5c56e3beae0eac17cf1129be8329c906

Full URL: https://github.com/mbedmicro/mbed/commit/0617b11a5c56e3beae0eac17cf1129be8329c906/

[GCC_ARM][DISCO]: Modified compilatin error and silent warning.

Changed in this revision

targets/hal/TARGET_STM/TARGET_DISCO_F051R8/i2c_api.c Show annotated file Show diff for this revision Revisions of this file
targets/hal/TARGET_STM/TARGET_DISCO_F051R8/pinmap.c Show annotated file Show diff for this revision Revisions of this file
targets/hal/TARGET_STM/TARGET_DISCO_F100RB/pinmap.c Show annotated file Show diff for this revision Revisions of this file
targets/hal/TARGET_STM/TARGET_DISCO_F407VG/pinmap.c Show annotated file Show diff for this revision Revisions of this file
--- a/targets/hal/TARGET_STM/TARGET_DISCO_F051R8/i2c_api.c	Tue Apr 01 16:45:06 2014 +0100
+++ b/targets/hal/TARGET_STM/TARGET_DISCO_F051R8/i2c_api.c	Tue Apr 01 17:00:08 2014 +0100
@@ -86,7 +86,7 @@
 void i2c_frequency(i2c_t *obj, int hz) {
     I2C_TypeDef *i2c = (I2C_TypeDef *)(obj->i2c);
     I2C_InitTypeDef I2C_InitStructure;
-    uint32_t tim;
+    uint32_t tim = 0;
   
     // Values calculated with I2C_Timing_Configuration_V1.0.1.xls file (see AN4235)
     // with Rise time = 100ns and Fall time = 10ns
--- a/targets/hal/TARGET_STM/TARGET_DISCO_F051R8/pinmap.c	Tue Apr 01 16:45:06 2014 +0100
+++ b/targets/hal/TARGET_STM/TARGET_DISCO_F051R8/pinmap.c	Tue Apr 01 17:00:08 2014 +0100
@@ -27,6 +27,7 @@
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *******************************************************************************
  */
+#include "device.h"
 #include "pinmap.h"
 #include "error.h"
 
--- a/targets/hal/TARGET_STM/TARGET_DISCO_F100RB/pinmap.c	Tue Apr 01 16:45:06 2014 +0100
+++ b/targets/hal/TARGET_STM/TARGET_DISCO_F100RB/pinmap.c	Tue Apr 01 17:00:08 2014 +0100
@@ -27,6 +27,7 @@
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *******************************************************************************
  */
+#include "device.h"
 #include "pinmap.h"
 #include "error.h"
 
--- a/targets/hal/TARGET_STM/TARGET_DISCO_F407VG/pinmap.c	Tue Apr 01 16:45:06 2014 +0100
+++ b/targets/hal/TARGET_STM/TARGET_DISCO_F407VG/pinmap.c	Tue Apr 01 17:00:08 2014 +0100
@@ -27,6 +27,7 @@
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *******************************************************************************
  */
+#include "device.h"
 #include "pinmap.h"
 #include "error.h"
 #include "stm32f4xx_hal.h"