mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-13 10:41:56 +00:00
Convert code to use u{8,16,32,64}_t and s{8,16,32,64}_t instead of C99 integer types. This handles the remaining includes and kernel, plus touching up various points that we skipped because of include dependancies. We also convert the PRI printf formatters in the arch code over to normal formatters. Jira: ZEP-2051 Change-Id: Iecbb12601a3ee4ea936fd7ddea37788a645b08b0 Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
40 lines
813 B
C
40 lines
813 B
C
/*
|
|
* Copyright (c) 2016 Open-RnD Sp. z o.o.
|
|
* Copyright (c) 2016 BayLibre, SAS
|
|
* Copyright (c) 2016 RnDity Sp. z o.o.
|
|
* Copyright (c) 2017 Linaro Limited.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
#ifndef _STM32_CLOCK_CONTROL_H_
|
|
#define _STM32_CLOCK_CONTROL_H_
|
|
|
|
#include <clock_control.h>
|
|
|
|
/* common clock control device name for all STM32 chips */
|
|
#define STM32_CLOCK_CONTROL_NAME "stm32-cc"
|
|
|
|
#ifdef CONFIG_SOC_SERIES_STM32F1X
|
|
#include "stm32f1_clock_control.h"
|
|
#elif CONFIG_SOC_SERIES_STM32F4X
|
|
#include "stm32f4_clock_control.h"
|
|
#endif
|
|
|
|
/* Bus */
|
|
enum {
|
|
STM32_CLOCK_BUS_AHB1,
|
|
STM32_CLOCK_BUS_AHB2,
|
|
STM32_CLOCK_BUS_APB1,
|
|
#ifdef CONFIG_SOC_SERIES_STM32L4X
|
|
STM32_CLOCK_BUS_APB1_2,
|
|
#endif
|
|
STM32_CLOCK_BUS_APB2,
|
|
};
|
|
|
|
struct stm32_pclken {
|
|
u32_t bus;
|
|
u32_t enr;
|
|
};
|
|
|
|
#endif /* _STM32_CLOCK_CONTROL_H_ */
|