mbed library with additional peripherals for ST F401 board

Fork of mbed-src by mbed official

This mbed LIB has additional peripherals for ST F401 board

  • UART2 : PA_3 rx, PA_2 tx
  • UART3 : PC_7 rx, PC_6 tx
  • I2C2 : PB_3 SDA, PB_10 SCL
  • I2C3 : PB_4 SDA, PA_8 SCL

Files at this revision

API Documentation at this revision

Comitter:
mbed_official
Date:
Mon Feb 17 16:15:17 2014 +0000
Parent:
91:0a39e62a0464
Child:
93:80910ff1aebe
Commit message:
Synchronized with git revision b87dac9fcef3a698e78979537d1c2d825e54ff3d

Full URL: https://github.com/mbedmicro/mbed/commit/b87dac9fcef3a698e78979537d1c2d825e54ff3d/

Changed in this revision

targets/hal/TARGET_STM/TARGET_NUCLEO_F030R8/us_ticker.c Show annotated file Show diff for this revision Revisions of this file
targets/hal/TARGET_STM/TARGET_NUCLEO_F103RB/us_ticker.c Show annotated file Show diff for this revision Revisions of this file
targets/hal/TARGET_STM/TARGET_NUCLEO_F401RE/us_ticker.c Show annotated file Show diff for this revision Revisions of this file
targets/hal/TARGET_STM/TARGET_NUCLEO_L152RE/us_ticker.c Show annotated file Show diff for this revision Revisions of this file
--- a/targets/hal/TARGET_STM/TARGET_NUCLEO_F030R8/us_ticker.c	Thu Feb 13 18:15:05 2014 +0000
+++ b/targets/hal/TARGET_STM/TARGET_NUCLEO_F030R8/us_ticker.c	Mon Feb 17 16:15:17 2014 +0000
@@ -36,7 +36,7 @@
 #define TIM_MST_RCC        RCC_APB2PeriphClockCmd(RCC_APB2Periph_TIM1, ENABLE)
 
 static int      us_ticker_inited = 0;
-static uint32_t SlaveCounter = 0;
+static volatile uint32_t SlaveCounter = 0;
 static uint32_t oc_int_part = 0;
 static uint16_t oc_rem_part = 0;
 
--- a/targets/hal/TARGET_STM/TARGET_NUCLEO_F103RB/us_ticker.c	Thu Feb 13 18:15:05 2014 +0000
+++ b/targets/hal/TARGET_STM/TARGET_NUCLEO_F103RB/us_ticker.c	Mon Feb 17 16:15:17 2014 +0000
@@ -36,7 +36,7 @@
 #define TIM_MST_RCC        RCC_APB2PeriphClockCmd(RCC_APB2Periph_TIM1, ENABLE)
 
 static int      us_ticker_inited = 0;
-static uint32_t SlaveCounter = 0;
+static volatile uint32_t SlaveCounter = 0;
 static uint32_t oc_int_part = 0;
 static uint16_t oc_rem_part = 0;
 
--- a/targets/hal/TARGET_STM/TARGET_NUCLEO_F401RE/us_ticker.c	Thu Feb 13 18:15:05 2014 +0000
+++ b/targets/hal/TARGET_STM/TARGET_NUCLEO_F401RE/us_ticker.c	Mon Feb 17 16:15:17 2014 +0000
@@ -39,7 +39,7 @@
 static TIM_HandleTypeDef TimMasterHandle;
     
 static int      us_ticker_inited = 0;
-static uint32_t SlaveCounter = 0;
+static volatile uint32_t SlaveCounter = 0;
 static uint32_t oc_int_part = 0;
 static uint16_t oc_rem_part = 0;
 
--- a/targets/hal/TARGET_STM/TARGET_NUCLEO_L152RE/us_ticker.c	Thu Feb 13 18:15:05 2014 +0000
+++ b/targets/hal/TARGET_STM/TARGET_NUCLEO_L152RE/us_ticker.c	Mon Feb 17 16:15:17 2014 +0000
@@ -35,7 +35,7 @@
 #define TIM_MST_RCC        RCC_APB2PeriphClockCmd(RCC_APB2Periph_TIM9, ENABLE)
 
 static int      us_ticker_inited = 0;
-static uint32_t SlaveCounter = 0;
+static volatile uint32_t SlaveCounter = 0;
 static uint32_t oc_int_part = 0;
 static uint16_t oc_rem_part = 0;