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
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file SoC configuration macros for the STM32F103 family processors.
|
|
|
|
*
|
|
|
|
* 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_
|
|
|
|
|
2016-11-02 09:58:02 +01:00
|
|
|
#define GPIO_REG_SIZE 0x400
|
|
|
|
/* base address for where GPIO registers start */
|
|
|
|
#define GPIO_PORTS_BASE (GPIOA_BASE)
|
2016-03-03 15:32:21 +01:00
|
|
|
|
|
|
|
#ifndef _ASMLANGUAGE
|
|
|
|
|
|
|
|
#include <device.h>
|
|
|
|
#include <misc/util.h>
|
2017-10-13 15:45:02 -07:00
|
|
|
#include <random/rand32.h>
|
2016-03-03 15:32:21 +01:00
|
|
|
|
2016-11-02 09:58:02 +01:00
|
|
|
#include <stm32f1xx.h>
|
|
|
|
|
2016-03-06 13:50:48 +01:00
|
|
|
|
2016-03-13 19:21:42 +01:00
|
|
|
#include "soc_irq.h"
|
|
|
|
|
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 */
|
|
|
|
|
2017-06-23 11:27:17 +02:00
|
|
|
#ifdef CONFIG_I2C
|
|
|
|
#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
|
|
|
|
|
2016-03-03 15:32:21 +01:00
|
|
|
#endif /* !_ASMLANGUAGE */
|
|
|
|
|
|
|
|
#endif /* _STM32F1_SOC_H_ */
|