Skip to content

Commit 86a9f14

Browse files
bcostmadbridge
authored andcommitted
DISCO_L475VG_IOT01A: Update device files after CubeL4 update
1 parent 42b9f3b commit 86a9f14

File tree

5 files changed

+353
-339
lines changed

5 files changed

+353
-339
lines changed

targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L475xG/device/system_stm32l4xx.c renamed to targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L475xG/TARGET_DISCO_L475VG_IOT01A/system_stm32l4xx.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
******************************************************************************
33
* @file system_stm32l4xx.c
44
* @author MCD Application Team
5-
* @version V1.1.1
6-
* @date 29-April-2016
5+
* @version V1.3.1
6+
* @date 21-April-2017
77
* @brief CMSIS Cortex-M4 Device Peripheral Access Layer System Source File
88
*
99
* This file provides two functions and one global variable to be called from
@@ -43,7 +43,7 @@
4343
******************************************************************************
4444
* @attention
4545
*
46-
* <h2><center>&copy; COPYRIGHT(c) 2016 STMicroelectronics</center></h2>
46+
* <h2><center>&copy; COPYRIGHT(c) 2017 STMicroelectronics</center></h2>
4747
*
4848
* Redistribution and use in source and binary forms, with or without modification,
4949
* are permitted provided that the following conditions are met:
@@ -569,7 +569,7 @@ uint8_t SetSysClock_PLL_MSI(void)
569569
RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK; /* 80 MHz */
570570
RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1; /* 80 MHz */
571571
RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV1; /* 80 MHz */
572-
RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV2; /* 40 MHz */
572+
RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV1; /* 80 MHz */
573573
if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_4) != HAL_OK)
574574
{
575575
return 0; // FAIL

targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L475xG/device/hal_tick.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@
4444

4545
#define TIM_MST TIM5
4646
#define TIM_MST_IRQ TIM5_IRQn
47-
#define TIM_MST_RCC __TIM5_CLK_ENABLE()
47+
#define TIM_MST_RCC __HAL_RCC_TIM5_CLK_ENABLE()
4848

49-
#define TIM_MST_RESET_ON __TIM5_FORCE_RESET()
50-
#define TIM_MST_RESET_OFF __TIM5_RELEASE_RESET()
49+
#define TIM_MST_RESET_ON __HAL_RCC_TIM5_FORCE_RESET()
50+
#define TIM_MST_RESET_OFF __HAL_RCC_TIM5_RELEASE_RESET()
5151

5252
#define TIM_MST_16BIT 0 // 1=16-bit timer, 0=32-bit timer
5353

0 commit comments

Comments
 (0)