Fork of mbed-dev with the NUCLEO-L152RE target modified for use with the STM32L151RB (128 kB flash, 16 kB RAM).

Fork of mbed-dev by mbed official

To use this, remove the default "mbed" library and import this one instead. Target must be NUCLEO_L152RE.

Revision:
19:4dfcd92ef21e
Parent:
0:9b334a45a8ff
--- a/targets/hal/TARGET_STM/TARGET_STM32L1/sleep.c	Tue Oct 06 17:44:28 2015 -0400
+++ b/targets/hal/TARGET_STM/TARGET_STM32L1/sleep.c	Wed Oct 07 14:47:28 2015 -0400
@@ -38,7 +38,7 @@
 void sleep(void)
 {
     // Disable HAL tick interrupt
-    TimMasterHandle.Instance = TIM5;
+    TimMasterHandle.Instance = TIM9;
     __HAL_TIM_DISABLE_IT(&TimMasterHandle, TIM_IT_CC2);
 
     // Request to enter SLEEP mode
@@ -55,7 +55,7 @@
 #endif
 
     // Disable HAL tick interrupt
-    TimMasterHandle.Instance = TIM5;
+    TimMasterHandle.Instance = TIM9;
     __HAL_TIM_DISABLE_IT(&TimMasterHandle, TIM_IT_CC2);
 
 #if defined(TARGET_MOTE_L152RC)