Skip to content

Commit

Permalink
drivers: clock_control: stm32: Modify file naming pattern
Browse files Browse the repository at this point in the history
Change file naming pattern from BoardNameX_ll_clock.c to
clock_BoardNameX.c
File containing LL functions will have the "_ll_" naming
scheme (such as clock_stm32_ll_common.c and .h)

Signed-off-by: Yaël Boutreux <yael.boutreux@st.com>
Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com>
  • Loading branch information
yboutreux authored and galak committed Apr 26, 2019
1 parent 13916a1 commit f6343ac
Show file tree
Hide file tree
Showing 13 changed files with 22 additions and 22 deletions.
22 changes: 11 additions & 11 deletions drivers/clock_control/CMakeLists.txt
Expand Up @@ -8,16 +8,16 @@ zephyr_sources_ifdef(CONFIG_CLOCK_CONTROL_QUARK_SE quark_se_clock_con
zephyr_sources_ifdef(CONFIG_CLOCK_CONTROL_RV32M1_PCC clock_control_rv32m1_pcc.c) zephyr_sources_ifdef(CONFIG_CLOCK_CONTROL_RV32M1_PCC clock_control_rv32m1_pcc.c)


if(CONFIG_CLOCK_CONTROL_STM32_CUBE) if(CONFIG_CLOCK_CONTROL_STM32_CUBE)
zephyr_sources(stm32_ll_clock.c) zephyr_sources(clock_stm32_ll_common.c)


zephyr_sources_ifdef(CONFIG_SOC_SERIES_STM32F0X stm32f0x_ll_clock.c) zephyr_sources_ifdef(CONFIG_SOC_SERIES_STM32F0X clock_stm32f0x.c)
zephyr_sources_ifdef(CONFIG_SOC_SERIES_STM32F1X stm32f1x_ll_clock.c) zephyr_sources_ifdef(CONFIG_SOC_SERIES_STM32F1X clock_stm32f1x.c)
zephyr_sources_ifdef(CONFIG_SOC_SERIES_STM32F2X stm32f2x_ll_clock.c) zephyr_sources_ifdef(CONFIG_SOC_SERIES_STM32F2X clock_stm32f2x.c)
zephyr_sources_ifdef(CONFIG_SOC_SERIES_STM32F3X stm32f3x_ll_clock.c) zephyr_sources_ifdef(CONFIG_SOC_SERIES_STM32F3X clock_stm32f3x.c)
zephyr_sources_ifdef(CONFIG_SOC_SERIES_STM32F4X stm32f4x_ll_clock.c) zephyr_sources_ifdef(CONFIG_SOC_SERIES_STM32F4X clock_stm32f4x.c)
zephyr_sources_ifdef(CONFIG_SOC_SERIES_STM32F7X stm32f7x_ll_clock.c) zephyr_sources_ifdef(CONFIG_SOC_SERIES_STM32F7X clock_stm32f7x.c)
zephyr_sources_ifdef(CONFIG_SOC_SERIES_STM32L0X stm32l0x_ll_clock.c) zephyr_sources_ifdef(CONFIG_SOC_SERIES_STM32L0X clock_stm32l0x.c)
zephyr_sources_ifdef(CONFIG_SOC_SERIES_STM32L1X stm32l1x_ll_clock.c) zephyr_sources_ifdef(CONFIG_SOC_SERIES_STM32L1X clock_stm32l1x.c)
zephyr_sources_ifdef(CONFIG_SOC_SERIES_STM32L4X stm32l4x_ll_clock.c) zephyr_sources_ifdef(CONFIG_SOC_SERIES_STM32L4X clock_stm32l4x.c)
zephyr_sources_ifdef(CONFIG_SOC_SERIES_STM32WBX stm32wbx_ll_clock.c) zephyr_sources_ifdef(CONFIG_SOC_SERIES_STM32WBX clock_stm32wbx.c)
endif() endif()
Expand Up @@ -11,7 +11,7 @@
#include <clock_control.h> #include <clock_control.h>
#include <misc/util.h> #include <misc/util.h>
#include <clock_control/stm32_clock_control.h> #include <clock_control/stm32_clock_control.h>
#include "stm32_ll_clock.h" #include "clock_stm32_ll_common.h"


/* Macros to fill up prescaler values */ /* Macros to fill up prescaler values */
#define z_ahb_prescaler(v) LL_RCC_SYSCLK_DIV_ ## v #define z_ahb_prescaler(v) LL_RCC_SYSCLK_DIV_ ## v
Expand Down
File renamed without changes.
Expand Up @@ -11,7 +11,7 @@
#include <clock_control.h> #include <clock_control.h>
#include <misc/util.h> #include <misc/util.h>
#include <clock_control/stm32_clock_control.h> #include <clock_control/stm32_clock_control.h>
#include "stm32_ll_clock.h" #include "clock_stm32_ll_common.h"




#ifdef CONFIG_CLOCK_STM32_SYSCLK_SRC_PLL #ifdef CONFIG_CLOCK_STM32_SYSCLK_SRC_PLL
Expand Down
Expand Up @@ -11,7 +11,7 @@
#include <clock_control.h> #include <clock_control.h>
#include <misc/util.h> #include <misc/util.h>
#include <clock_control/stm32_clock_control.h> #include <clock_control/stm32_clock_control.h>
#include "stm32_ll_clock.h" #include "clock_stm32_ll_common.h"




#ifdef CONFIG_CLOCK_STM32_SYSCLK_SRC_PLL #ifdef CONFIG_CLOCK_STM32_SYSCLK_SRC_PLL
Expand Down
Expand Up @@ -11,7 +11,7 @@
#include <clock_control.h> #include <clock_control.h>
#include <misc/util.h> #include <misc/util.h>
#include <clock_control/stm32_clock_control.h> #include <clock_control/stm32_clock_control.h>
#include "stm32_ll_clock.h" #include "clock_stm32_ll_common.h"




#ifdef CONFIG_CLOCK_STM32_SYSCLK_SRC_PLL #ifdef CONFIG_CLOCK_STM32_SYSCLK_SRC_PLL
Expand Down
Expand Up @@ -11,7 +11,7 @@
#include <clock_control.h> #include <clock_control.h>
#include <misc/util.h> #include <misc/util.h>
#include <clock_control/stm32_clock_control.h> #include <clock_control/stm32_clock_control.h>
#include "stm32_ll_clock.h" #include "clock_stm32_ll_common.h"




#ifdef CONFIG_CLOCK_STM32_SYSCLK_SRC_PLL #ifdef CONFIG_CLOCK_STM32_SYSCLK_SRC_PLL
Expand Down
Expand Up @@ -11,7 +11,7 @@
#include <clock_control.h> #include <clock_control.h>
#include <misc/util.h> #include <misc/util.h>
#include <clock_control/stm32_clock_control.h> #include <clock_control/stm32_clock_control.h>
#include "stm32_ll_clock.h" #include "clock_stm32_ll_common.h"




#ifdef CONFIG_CLOCK_STM32_SYSCLK_SRC_PLL #ifdef CONFIG_CLOCK_STM32_SYSCLK_SRC_PLL
Expand Down
Expand Up @@ -9,7 +9,7 @@
#include <clock_control.h> #include <clock_control.h>
#include <misc/util.h> #include <misc/util.h>
#include <clock_control/stm32_clock_control.h> #include <clock_control/stm32_clock_control.h>
#include "stm32_ll_clock.h" #include "clock_stm32_ll_common.h"




#ifdef CONFIG_CLOCK_STM32_SYSCLK_SRC_PLL #ifdef CONFIG_CLOCK_STM32_SYSCLK_SRC_PLL
Expand Down
Expand Up @@ -11,7 +11,7 @@
#include <clock_control.h> #include <clock_control.h>
#include <misc/util.h> #include <misc/util.h>
#include <clock_control/stm32_clock_control.h> #include <clock_control/stm32_clock_control.h>
#include "stm32_ll_clock.h" #include "clock_stm32_ll_common.h"




#ifdef CONFIG_CLOCK_STM32_SYSCLK_SRC_PLL #ifdef CONFIG_CLOCK_STM32_SYSCLK_SRC_PLL
Expand Down
Expand Up @@ -10,7 +10,7 @@
#include <clock_control.h> #include <clock_control.h>
#include <misc/util.h> #include <misc/util.h>
#include <clock_control/stm32_clock_control.h> #include <clock_control/stm32_clock_control.h>
#include "stm32_ll_clock.h" #include "clock_stm32_ll_common.h"




#ifdef CONFIG_CLOCK_STM32_SYSCLK_SRC_PLL #ifdef CONFIG_CLOCK_STM32_SYSCLK_SRC_PLL
Expand Down
Expand Up @@ -11,7 +11,7 @@
#include <clock_control.h> #include <clock_control.h>
#include <misc/util.h> #include <misc/util.h>
#include <clock_control/stm32_clock_control.h> #include <clock_control/stm32_clock_control.h>
#include "stm32_ll_clock.h" #include "clock_stm32_ll_common.h"




#ifdef CONFIG_CLOCK_STM32_SYSCLK_SRC_PLL #ifdef CONFIG_CLOCK_STM32_SYSCLK_SRC_PLL
Expand Down
Expand Up @@ -11,7 +11,7 @@
#include <clock_control.h> #include <clock_control.h>
#include <misc/util.h> #include <misc/util.h>
#include <clock_control/stm32_clock_control.h> #include <clock_control/stm32_clock_control.h>
#include "stm32_ll_clock.h" #include "clock_stm32_ll_common.h"


#ifdef CONFIG_CLOCK_STM32_SYSCLK_SRC_PLL #ifdef CONFIG_CLOCK_STM32_SYSCLK_SRC_PLL


Expand Down

0 comments on commit f6343ac

Please sign in to comment.