forked from Imagelibrary/rtems
bsp/stm32f4: Header for f10xxx EXTI.
This commit is contained in:
committed by
Sebastian Huber
parent
5fe19134c0
commit
c6f0efe297
@@ -49,6 +49,7 @@ include_bsp_HEADERS += include/usart.h
|
||||
include_bsp_HEADERS += include/stm32f4.h
|
||||
include_bsp_HEADERS += include/stm32f10xxx_gpio.h
|
||||
include_bsp_HEADERS += include/stm32f10xxx_rcc.h
|
||||
include_bsp_HEADERS += include/stm32f10xxx_exti.h
|
||||
include_bsp_HEADERS += include/stm32f4xxxx_gpio.h
|
||||
include_bsp_HEADERS += include/stm32f4xxxx_rcc.h
|
||||
include_bsp_HEADERS += include/stm32_usart.h
|
||||
|
||||
35
c/src/lib/libbsp/arm/stm32f4/include/stm32f10xxx_exti.h
Normal file
35
c/src/lib/libbsp/arm/stm32f4/include/stm32f10xxx_exti.h
Normal file
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
* Copyright (c) 2013 Christian Mauderer. All rights reserved.
|
||||
*
|
||||
* embedded brains GmbH
|
||||
* Obere Lagerstr. 30
|
||||
* 82178 Puchheim
|
||||
* Germany
|
||||
* <rtems@embedded-brains.de>
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
* found in the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*/
|
||||
|
||||
#ifndef LIBBSP_ARM_STM32F4_STM32F10XXX_EXTI_H
|
||||
#define LIBBSP_ARM_STM32F4_STM32F10XXX_EXTI_H
|
||||
|
||||
#include <bsp/utility.h>
|
||||
|
||||
typedef struct {
|
||||
uint32_t imr;
|
||||
#define STM32F4_EXTI_IMR(line) BSP_BIT32(line)
|
||||
uint32_t emr;
|
||||
#define STM32F4_EXTI_EMR(line) BSP_BIT32(line)
|
||||
uint32_t rtsr;
|
||||
#define STM32F4_EXTI_RTSR(line) BSP_BIT32(line)
|
||||
uint32_t ftsr;
|
||||
#define STM32F4_EXTI_FTSR(line) BSP_BIT32(line)
|
||||
uint32_t swier;
|
||||
#define STM32F4_EXTI_SWIER(line) BSP_BIT32(line)
|
||||
uint32_t pr;
|
||||
#define STM32F4_EXTI_PR(line) BSP_BIT32(line)
|
||||
} stm32f4_exti;
|
||||
|
||||
#endif /* LIBBSP_ARM_STM32F4_STM32F10XXX_EXTI_H */
|
||||
@@ -40,6 +40,9 @@
|
||||
|
||||
#ifdef STM32F4_FAMILY_F10XXX
|
||||
|
||||
#include <bsp/stm32f10xxx_exti.h>
|
||||
#define STM32F4_EXTI ((volatile stm32f4_exti *) (STM32F4_BASE + 0x40010400))
|
||||
|
||||
#include <bsp/stm32f10xxx_gpio.h>
|
||||
#define STM32F4_GPIO(i) ((volatile stm32f4_gpio *) (STM32F4_BASE + 0x40010800 + i * 0x400))
|
||||
#define STM32F4_AFIO ((volatile stm32f4_afio *) (STM32F4_BASE + 0x40010000))
|
||||
|
||||
@@ -113,6 +113,10 @@ $(PROJECT_INCLUDE)/bsp/stm32f10xxx_rcc.h: include/stm32f10xxx_rcc.h $(PROJECT_IN
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/stm32f10xxx_rcc.h
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/stm32f10xxx_rcc.h
|
||||
|
||||
$(PROJECT_INCLUDE)/bsp/stm32f10xxx_exti.h: include/stm32f10xxx_exti.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/stm32f10xxx_exti.h
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/stm32f10xxx_exti.h
|
||||
|
||||
$(PROJECT_INCLUDE)/bsp/stm32f4xxxx_gpio.h: include/stm32f4xxxx_gpio.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/stm32f4xxxx_gpio.h
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/stm32f4xxxx_gpio.h
|
||||
|
||||
Reference in New Issue
Block a user