Skip to content

Commit ce9d252

Browse files
authored
Merge pull request #3409 from jeromecoutant/PR_ST_L1_ASSERT
STM32L1 : map ST HAL assert into MBED assert
2 parents e01366c + 3ab5dce commit ce9d252

File tree

11 files changed

+74
-960
lines changed

11 files changed

+74
-960
lines changed

targets/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/device/system_stm32l1xx.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ uint8_t SetSysClock_PLL_HSE(uint8_t bypass)
529529
__HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE1);
530530

531531
/* Enable HSE and HSI48 oscillators and activate PLL with HSE as source */
532-
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE | RCC_OSCILLATORTYPE_HSI;
532+
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE;
533533
if (bypass == 0)
534534
{
535535
RCC_OscInitStruct.HSEState = RCC_HSE_ON; /* External 8 MHz xtal on OSC_IN/OSC_OUT */
@@ -586,7 +586,7 @@ uint8_t SetSysClock_PLL_HSI(void)
586586
__HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE1);
587587

588588
/* Enable HSI oscillator and activate PLL with HSI as source */
589-
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSE;
589+
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI;
590590
RCC_OscInitStruct.HSEState = RCC_HSE_OFF;
591591
RCC_OscInitStruct.HSIState = RCC_HSI_ON;
592592
// SYSCLK = 32 MHz ((16 MHz * 4) / 2)

targets/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/device/stm32l1xx_hal_conf.h

Lines changed: 0 additions & 291 deletions
This file was deleted.

targets/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/device/system_stm32l1xx.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ uint8_t SetSysClock_PLL_HSE(uint8_t bypass)
526526
__HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE1);
527527

528528
/* Enable HSE and HSI48 oscillators and activate PLL with HSE as source */
529-
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE | RCC_OSCILLATORTYPE_HSI;
529+
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE;
530530
if (bypass == 0)
531531
{
532532
RCC_OscInitStruct.HSEState = RCC_HSE_ON; /* External 8 MHz xtal on OSC_IN/OSC_OUT */
@@ -583,7 +583,7 @@ uint8_t SetSysClock_PLL_HSI(void)
583583
__HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE1);
584584

585585
/* Enable HSI oscillator and activate PLL with HSI as source */
586-
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSE;
586+
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI;
587587
RCC_OscInitStruct.HSEState = RCC_HSE_OFF;
588588
RCC_OscInitStruct.HSIState = RCC_HSI_ON;
589589
RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;

0 commit comments

Comments
 (0)