2016-03-03 15:32:21 +01:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2016 Open-RnD Sp. z o.o.
|
|
|
|
*
|
2017-01-18 17:01:01 -08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2016-03-03 15:32:21 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2018-04-28 16:39:07 +03:00
|
|
|
* @file SoC configuration macros for the STM32F1 family processors.
|
2016-03-03 15:32:21 +01:00
|
|
|
*
|
|
|
|
* Based on reference manual:
|
|
|
|
* STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and STM32F107xx
|
2017-10-01 10:00:48 -07:00
|
|
|
* advanced ARM(r)-based 32-bit MCUs
|
2016-03-03 15:32:21 +01:00
|
|
|
*
|
|
|
|
* Chapter 3.3: Memory Map
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef _STM32F1_SOC_H_
|
|
|
|
#define _STM32F1_SOC_H_
|
|
|
|
|
|
|
|
#ifndef _ASMLANGUAGE
|
|
|
|
|
2016-11-02 09:58:02 +01:00
|
|
|
#include <stm32f1xx.h>
|
|
|
|
|
2018-07-06 13:00:35 +03:00
|
|
|
/* ARM CMSIS definitions must be included before kernel_includes.h.
|
|
|
|
* Therefore, it is essential to include kernel_includes.h after including
|
|
|
|
* core SOC-specific headers.
|
|
|
|
*/
|
|
|
|
#include <kernel_includes.h>
|
|
|
|
|
2019-01-29 21:09:04 +01:00
|
|
|
#ifdef CONFIG_EXTI_STM32
|
|
|
|
#include <stm32f1xx_ll_exti.h>
|
|
|
|
#endif
|
|
|
|
|
2017-09-21 15:20:53 +02:00
|
|
|
#ifdef CONFIG_SERIAL_HAS_DRIVER
|
|
|
|
#include <stm32f1xx_ll_usart.h>
|
|
|
|
#endif
|
|
|
|
|
2017-05-29 14:52:19 +02:00
|
|
|
#ifdef CONFIG_CLOCK_CONTROL_STM32_CUBE
|
|
|
|
#include <stm32f1xx_ll_utils.h>
|
|
|
|
#include <stm32f1xx_ll_bus.h>
|
|
|
|
#include <stm32f1xx_ll_rcc.h>
|
|
|
|
#include <stm32f1xx_ll_system.h>
|
|
|
|
#endif /* CONFIG_CLOCK_CONTROL_STM32_CUBE */
|
|
|
|
|
2019-10-10 11:11:57 +02:00
|
|
|
#ifdef CONFIG_I2C_STM32
|
2017-06-23 11:27:17 +02:00
|
|
|
#include <stm32f1xx_ll_i2c.h>
|
|
|
|
#endif
|
|
|
|
|
2017-12-13 13:46:27 +02:00
|
|
|
#ifdef CONFIG_SPI_STM32
|
|
|
|
#include <stm32f1xx_ll_spi.h>
|
|
|
|
#endif
|
|
|
|
|
2017-06-21 10:36:18 +02:00
|
|
|
#ifdef CONFIG_IWDG_STM32
|
|
|
|
#include <stm32f1xx_ll_iwdg.h>
|
|
|
|
#endif
|
|
|
|
|
2019-07-15 16:07:00 +03:00
|
|
|
#ifdef CONFIG_WWDG_STM32
|
|
|
|
#include <stm32f1xx_ll_wwdg.h>
|
|
|
|
#endif
|
|
|
|
|
2019-01-08 18:12:04 +08:00
|
|
|
#ifdef CONFIG_GPIO_STM32
|
|
|
|
#include <stm32f1xx_ll_gpio.h>
|
|
|
|
#endif
|
|
|
|
|
2019-05-07 16:37:35 +08:00
|
|
|
#ifdef CONFIG_ADC_STM32
|
|
|
|
#include <stm32f1xx_ll_adc.h>
|
|
|
|
#endif
|
|
|
|
|
2019-10-24 19:06:19 +08:00
|
|
|
#ifdef CONFIG_DMA_STM32
|
|
|
|
#include <stm32f1xx_ll_dma.h>
|
|
|
|
#endif
|
|
|
|
|
2020-02-20 12:37:03 +01:00
|
|
|
#ifdef CONFIG_HWINFO_STM32
|
|
|
|
#include <stm32f1xx_ll_utils.h>
|
|
|
|
#endif
|
|
|
|
|
2020-04-21 21:50:03 +02:00
|
|
|
#ifdef CONFIG_PWM_STM32
|
|
|
|
#include <stm32f1xx_ll_tim.h>
|
|
|
|
#endif /* CONFIG_PWM_STM32 */
|
|
|
|
|
2016-03-03 15:32:21 +01:00
|
|
|
#endif /* !_ASMLANGUAGE */
|
|
|
|
|
|
|
|
#endif /* _STM32F1_SOC_H_ */
|