cpu/stm32: added support for STM32F7
This commit is contained in:
parent
10a7486246
commit
7079d481c7
@ -55,12 +55,12 @@ void periph_clk_en(bus_t bus, uint32_t mask)
|
||||
RCC->IOPENR |= mask;
|
||||
break;
|
||||
#elif defined(CPU_FAM_STM32L1) || defined(CPU_FAM_STM32F1) \
|
||||
|| defined(CPU_FAM_STM32F0) || defined(CPU_FAM_STM32F3)
|
||||
|| defined(CPU_FAM_STM32F0) || defined(CPU_FAM_STM32F3)
|
||||
case AHB:
|
||||
RCC->AHBENR |= mask;
|
||||
break;
|
||||
#elif defined(CPU_FAM_STM32F2) || defined(CPU_FAM_STM32F4) \
|
||||
|| defined(CPU_FAM_STM32L4)
|
||||
|| defined(CPU_FAM_STM32L4) || defined(CPU_FAM_STM32F7)
|
||||
case AHB1:
|
||||
RCC->AHB1ENR |= mask;
|
||||
break;
|
||||
@ -103,12 +103,12 @@ void periph_clk_dis(bus_t bus, uint32_t mask)
|
||||
RCC->IOPENR &= ~(mask);
|
||||
break;
|
||||
#elif defined(CPU_FAM_STM32L1) || defined(CPU_FAM_STM32F1) \
|
||||
|| defined(CPU_FAM_STM32F0) || defined(CPU_FAM_STM32F3)
|
||||
|| defined(CPU_FAM_STM32F0) || defined(CPU_FAM_STM32F3)
|
||||
case AHB:
|
||||
RCC->AHBENR &= ~(mask);
|
||||
break;
|
||||
#elif defined(CPU_FAM_STM32F2) || defined(CPU_FAM_STM32F4) \
|
||||
|| defined(CPU_FAM_STM32L4)
|
||||
|| defined(CPU_FAM_STM32L4) || defined(CPU_FAM_STM32F7)
|
||||
case AHB1:
|
||||
RCC->AHB1ENR &= ~(mask);
|
||||
break;
|
||||
|
||||
@ -57,7 +57,8 @@ extern uint32_t _cpuid_address;
|
||||
/**
|
||||
* @brief Number of usable low power modes
|
||||
*/
|
||||
#if defined(CPU_FAM_STM32F1) || defined(CPU_FAM_STM32F2) || defined(CPU_FAM_STM32F4) || defined(DOXYGEN)
|
||||
#if defined(CPU_FAM_STM32F1) || defined(CPU_FAM_STM32F2) \
|
||||
|| defined(CPU_FAM_STM32F4) || defined(DOXYGEN)
|
||||
#define PM_NUM_MODES (2U)
|
||||
#endif
|
||||
|
||||
@ -74,7 +75,7 @@ typedef enum {
|
||||
|| defined(CPU_FAM_STM32F0) || defined(CPU_FAM_STM32F3)
|
||||
AHB, /**< AHB bus */
|
||||
#elif defined(CPU_FAM_STM32F2) || defined(CPU_FAM_STM32F4) \
|
||||
|| defined(CPU_FAM_STM32L4)
|
||||
|| defined(CPU_FAM_STM32L4) || defined(CPU_FAM_STM32F7)
|
||||
AHB1, /**< AHB1 bus */
|
||||
AHB2, /**< AHB2 bus */
|
||||
AHB3 /**< AHB3 bus */
|
||||
|
||||
@ -27,7 +27,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Configure the high speed clock domain (main system clock)
|
||||
* @brief Configure the high speed clock domain (main system clock)
|
||||
*
|
||||
* This function initializes and configures the main systems clock(s). For this,
|
||||
* the following actions are carried out:
|
||||
|
||||
@ -124,7 +124,8 @@ void uart_write(uart_t uart, const uint8_t *data, size_t len)
|
||||
|
||||
for (size_t i = 0; i < len; i++) {
|
||||
#if defined(CPU_FAM_STM32F0) || defined(CPU_FAM_STM32L0) \
|
||||
|| defined(CPU_FAM_STM32F3) || defined(CPU_FAM_STM32L4)
|
||||
|| defined(CPU_FAM_STM32F3) || defined(CPU_FAM_STM32L4) \
|
||||
|| defined(CPU_FAM_STM32F7)
|
||||
while (!(dev(uart)->ISR & USART_ISR_TXE)) {}
|
||||
dev(uart)->TDR = data[i];
|
||||
#else
|
||||
@ -136,7 +137,8 @@ void uart_write(uart_t uart, const uint8_t *data, size_t len)
|
||||
/* make sure the function is synchronous by waiting for the transfer to
|
||||
* finish */
|
||||
#if defined(CPU_FAM_STM32F0) || defined(CPU_FAM_STM32L0) \
|
||||
|| defined(CPU_FAM_STM32F3) || defined(CPU_FAM_STM32L4)
|
||||
|| defined(CPU_FAM_STM32F3) || defined(CPU_FAM_STM32L4) \
|
||||
|| defined(CPU_FAM_STM32F7)
|
||||
while (!(dev(uart)->ISR & USART_ISR_TC)) {}
|
||||
#else
|
||||
while (!(dev(uart)->SR & USART_SR_TC)) {}
|
||||
@ -158,7 +160,8 @@ void uart_poweroff(uart_t uart)
|
||||
static inline void irq_handler(uart_t uart)
|
||||
{
|
||||
#if defined(CPU_FAM_STM32F0) || defined(CPU_FAM_STM32L0) \
|
||||
|| defined(CPU_FAM_STM32F3) || defined(CPU_FAM_STM32L4)
|
||||
|| defined(CPU_FAM_STM32F3) || defined(CPU_FAM_STM32L4) \
|
||||
|| defined(CPU_FAM_STM32F7)
|
||||
|
||||
uint32_t status = dev(uart)->ISR;
|
||||
|
||||
|
||||
10
cpu/stm32f7/Makefile
Normal file
10
cpu/stm32f7/Makefile
Normal file
@ -0,0 +1,10 @@
|
||||
# define the module that is build
|
||||
MODULE = cpu
|
||||
|
||||
# add a list of subdirectories, that should also be build
|
||||
DIRS += periph $(RIOTCPU)/cortexm_common $(RIOTCPU)/stm32_common
|
||||
|
||||
# (file triggers compiler bug. see #5775)
|
||||
SRC_NOLTO += vectors.c
|
||||
|
||||
include $(RIOTBASE)/Makefile.base
|
||||
5
cpu/stm32f7/Makefile.include
Normal file
5
cpu/stm32f7/Makefile.include
Normal file
@ -0,0 +1,5 @@
|
||||
export CPU_ARCH = cortex-m7
|
||||
export CPU_FAM = stm32f7
|
||||
|
||||
include $(RIOTCPU)/stm32_common/Makefile.include
|
||||
include $(RIOTMAKE)/arch/cortexm.inc.mk
|
||||
37
cpu/stm32f7/cpu.c
Normal file
37
cpu/stm32f7/cpu.c
Normal file
@ -0,0 +1,37 @@
|
||||
/*
|
||||
* Copyright (C) 2017 Freie Universität Berlin
|
||||
*
|
||||
* This file is subject to the terms and conditions of the GNU Lesser
|
||||
* General Public License v2.1. See the file LICENSE in the top level
|
||||
* directory for more details.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @ingroup cpu_stm32f7
|
||||
* @{
|
||||
*
|
||||
* @file
|
||||
* @brief Implementation of the CPU initialization
|
||||
*
|
||||
* @todo Move this file into the stm32_common source tree
|
||||
*
|
||||
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
|
||||
* @}
|
||||
*/
|
||||
|
||||
#include "cpu.h"
|
||||
#include "stmclk.h"
|
||||
#include "periph/init.h"
|
||||
|
||||
/**
|
||||
* @brief Initialize the CPU, set IRQ priorities
|
||||
*/
|
||||
void cpu_init(void)
|
||||
{
|
||||
/* initialize the Cortex-M core */
|
||||
cortexm_init();
|
||||
/* initialize the system clock as configured in the periph_conf.h */
|
||||
stmclk_init_sysclk();
|
||||
/* trigger static peripheral initialization */
|
||||
periph_init();
|
||||
}
|
||||
47
cpu/stm32f7/include/cpu_conf.h
Normal file
47
cpu/stm32f7/include/cpu_conf.h
Normal file
@ -0,0 +1,47 @@
|
||||
/*
|
||||
* Copyright (C) 2017 Freie Universität Berlin
|
||||
*
|
||||
* This file is subject to the terms and conditions of the GNU Lesser General
|
||||
* Public License v2.1. See the file LICENSE in the top level directory for more
|
||||
* details.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @defgroup cpu_stm32f7 STM32F7
|
||||
* @brief STM32F7 specific code
|
||||
* @ingroup cpu
|
||||
* @{
|
||||
*
|
||||
* @file
|
||||
* @brief Implementation specific CPU configuration options
|
||||
*
|
||||
* @author Hauke Petersen <hauke.pertersen@fu-berlin.de>
|
||||
*/
|
||||
|
||||
#ifndef STM32F7_CPU_CONF_H
|
||||
#define STM32F7_CPU_CONF_H
|
||||
|
||||
#include "cpu_conf_common.h"
|
||||
|
||||
#ifdef CPU_MODEL_STM32F746ZG
|
||||
#include "vendor/stm32f746xx.h"
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief ARM Cortex-M specific CPU configuration
|
||||
* @{
|
||||
*/
|
||||
#define CPU_DEFAULT_IRQ_PRIO (1U)
|
||||
#define CPU_IRQ_NUMOF (98U)
|
||||
/** @} */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* STM32F7_CPU_CONF_H */
|
||||
/** @} */
|
||||
52
cpu/stm32f7/include/periph_cpu.h
Normal file
52
cpu/stm32f7/include/periph_cpu.h
Normal file
@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright (C) 2017 Freie Universität Berlin
|
||||
*
|
||||
* This file is subject to the terms and conditions of the GNU Lesser
|
||||
* General Public License v2.1. See the file LICENSE in the top level
|
||||
* directory for more details.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @ingroup cpu_stm32f7
|
||||
* @{
|
||||
*
|
||||
* @file
|
||||
* @brief CPU specific definitions for internal peripheral handling
|
||||
*
|
||||
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef PERIPH_CPU_H
|
||||
#define PERIPH_CPU_H
|
||||
|
||||
#include "cpu.h"
|
||||
#include "periph_cpu_common.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Available ports
|
||||
*/
|
||||
enum {
|
||||
PORT_A = 0, /**< port A */
|
||||
PORT_B = 1, /**< port B */
|
||||
PORT_C = 2, /**< port C */
|
||||
PORT_D = 3, /**< port D */
|
||||
PORT_E = 4, /**< port E */
|
||||
PORT_F = 5, /**< port F */
|
||||
PORT_G = 6, /**< port G */
|
||||
PORT_H = 7, /**< port H */
|
||||
PORT_I = 8, /**< port I */
|
||||
PORT_J = 9, /**< port J */
|
||||
PORT_K = 10 /**< port K */
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* PERIPH_CPU_H */
|
||||
/** @} */
|
||||
17565
cpu/stm32f7/include/vendor/stm32f746xx.h
vendored
Normal file
17565
cpu/stm32f7/include/vendor/stm32f746xx.h
vendored
Normal file
File diff suppressed because it is too large
Load Diff
30
cpu/stm32f7/ldscripts/stm32f746zg.ld
Normal file
30
cpu/stm32f7/ldscripts/stm32f746zg.ld
Normal file
@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Copyright (C) 2017 Freie Universität Berlin
|
||||
*
|
||||
* This file is subject to the terms and conditions of the GNU Lesser
|
||||
* General Public License v2.1. See the file LICENSE in the top level
|
||||
* directory for more details.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @addtogroup cpu_stm32l4
|
||||
* @{
|
||||
*
|
||||
* @file
|
||||
* @brief Memory definitions for the STM32F746ZG
|
||||
*
|
||||
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
|
||||
*
|
||||
* @}
|
||||
*/
|
||||
|
||||
MEMORY
|
||||
{
|
||||
rom (rx) : ORIGIN = 0x08000000, LENGTH = 1024K
|
||||
ram (rwx) : ORIGIN = 0x20000000, LENGTH = 320K
|
||||
cpuid (r) : ORIGIN = 0x1ff0f420, LENGTH = 12
|
||||
}
|
||||
|
||||
_cpuid_address = ORIGIN(cpuid);
|
||||
|
||||
INCLUDE cortexm_base.ld
|
||||
5
cpu/stm32f7/periph/Makefile
Normal file
5
cpu/stm32f7/periph/Makefile
Normal file
@ -0,0 +1,5 @@
|
||||
# define the module name
|
||||
MODULE = periph
|
||||
|
||||
# include RIOTs generic Makefile
|
||||
include $(RIOTBASE)/Makefile.base
|
||||
170
cpu/stm32f7/stmclk.c
Normal file
170
cpu/stm32f7/stmclk.c
Normal file
@ -0,0 +1,170 @@
|
||||
/*
|
||||
* Copyright (C) 2017 Freie Universität Berlin
|
||||
*
|
||||
* This file is subject to the terms and conditions of the GNU Lesser
|
||||
* General Public License v2.1. See the file LICENSE in the top level
|
||||
* directory for more details.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @ingroup cpu_stm32f7
|
||||
* @{
|
||||
*
|
||||
* @file
|
||||
* @brief Implementation of STM32 clock configuration
|
||||
*
|
||||
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
|
||||
* @}
|
||||
*/
|
||||
|
||||
#include "cpu.h"
|
||||
#include "stmclk.h"
|
||||
#include "periph_conf.h"
|
||||
|
||||
/* make sure we have all needed information about the clock configuration */
|
||||
#ifndef CLOCK_HSE
|
||||
#error "Please provide CLOCK_HSE in your board's perhip_conf.h"
|
||||
#endif
|
||||
#ifndef CLOCK_LSE
|
||||
#error "Please provide CLOCK_LSE in your board's periph_conf.h"
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @name PLL configuration
|
||||
* @{
|
||||
*/
|
||||
/* figure out which input to use */
|
||||
#if (CLOCK_HSE)
|
||||
#define PLL_IN CLOCK_HSE
|
||||
#define PLL_SRC RCC_PLLCFGR_PLLSRC_HSE
|
||||
#else
|
||||
#define PLL_IN (16000000U) /* HSI fixed @ 16MHz */
|
||||
#define PLL_SRC RCC_PLLCFGR_PLLSRC_HSI
|
||||
#endif
|
||||
|
||||
/* we fix P to 2 (so the PLL output equals 2 * CLOCK_CORECLOCK) */
|
||||
#define P (2U)
|
||||
/* the recommended input clock for the PLL should be 2MHz > ref. man. p. 143 */
|
||||
#define M (PLL_IN / 2000000U)
|
||||
#if ((M < 2) || (M > 63))
|
||||
#error "PLL configuration: PLL M value is out of range"
|
||||
#endif
|
||||
/* next we multiply the input freq to 2 * CORECLOCK */
|
||||
#define N (P * CLOCK_CORECLOCK / 2000000U)
|
||||
#if ((N < 50) || (N > 432))
|
||||
#error "PLL configuration: PLL N value is out of range"
|
||||
#endif
|
||||
/* finally we need to set Q, so that the USB clock is 48MHz */
|
||||
#define Q ((P * CLOCK_CORECLOCK) / 48000000U)
|
||||
#if ((Q * 48000000U) != (P * CLOCK_CORECLOCK))
|
||||
#error "PLL configuration: USB frequency is not 48MHz"
|
||||
#endif
|
||||
|
||||
/* now we get the actual bitfields */
|
||||
#define PLL_P (0)
|
||||
#define PLL_M (M << RCC_PLLCFGR_PLLM_Pos)
|
||||
#define PLL_N (N << RCC_PLLCFGR_PLLN_Pos)
|
||||
#define PLL_Q (Q << RCC_PLLCFGR_PLLQ_Pos)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @name Deduct the needed flash wait states from the core clock frequency
|
||||
* @{
|
||||
*/
|
||||
#define FLASH_WAITSTATES (CLOCK_CORECLOCK / 30000000U)
|
||||
/** @} */
|
||||
|
||||
void stmclk_init_sysclk(void)
|
||||
{
|
||||
/* disable any interrupts. Global interrupts could be enabled if this is
|
||||
* called from some kind of bootloader... */
|
||||
unsigned is = irq_disable();
|
||||
RCC->CIR = 0;
|
||||
|
||||
/* enable HSI clock for the duration of initialization */
|
||||
stmclk_enable_hsi();
|
||||
|
||||
/* use HSI as system clock while we do any further configuration and
|
||||
* configure the AHB and APB clock dividers as configure by the board */
|
||||
RCC->CFGR = (RCC_CFGR_SW_HSI | CLOCK_AHB_DIV |
|
||||
CLOCK_APB1_DIV | CLOCK_APB2_DIV);
|
||||
while ((RCC->CFGR & RCC_CFGR_SWS_Msk) != RCC_CFGR_SWS_HSI) {}
|
||||
|
||||
/* we enable I+D cashes, pre-fetch, and we set the actual number of
|
||||
* needed flash wait states */
|
||||
FLASH->ACR = (FLASH_ACR_ARTEN | FLASH_ACR_PRFTEN | FLASH_WAITSTATES);
|
||||
|
||||
/* disable all active clocks except HSI -> resets the clk configuration */
|
||||
RCC->CR = (RCC_CR_HSION | RCC_CR_HSITRIM_4);
|
||||
|
||||
/* if configured, we need to enable the HSE clock now */
|
||||
#if (CLOCK_HSE)
|
||||
RCC->CR |= (RCC_CR_HSEON);
|
||||
while (!(RCC->CR & RCC_CR_HSERDY)) {}
|
||||
#endif
|
||||
|
||||
/* now we can safely configure and start the PLL */
|
||||
RCC->PLLCFGR = (PLL_SRC | PLL_M | PLL_N | PLL_P | PLL_Q);
|
||||
RCC->CR |= (RCC_CR_PLLON);
|
||||
while (!(RCC->CR & RCC_CR_PLLRDY)) {}
|
||||
|
||||
/* now that the PLL is running, we use it as system clock */
|
||||
RCC->CFGR |= (RCC_CFGR_SW_PLL);
|
||||
while ((RCC->CFGR & RCC_CFGR_SWS_Msk) != RCC_CFGR_SWS_PLL) {}
|
||||
|
||||
stmclk_disable_hsi();
|
||||
irq_restore(is);
|
||||
}
|
||||
|
||||
void stmclk_enable_hsi(void)
|
||||
{
|
||||
RCC->CR |= (RCC_CR_HSION);
|
||||
while (!(RCC->CR & RCC_CR_HSIRDY)) {}
|
||||
}
|
||||
|
||||
void stmclk_disable_hsi(void)
|
||||
{
|
||||
if ((RCC->CFGR & RCC_CFGR_SWS_Msk) != RCC_CFGR_SWS_HSI) {
|
||||
RCC->CR &= ~(RCC_CR_HSION);
|
||||
}
|
||||
}
|
||||
|
||||
void stmclk_enable_lfclk(void)
|
||||
{
|
||||
/* configure the low speed clock domain (LSE vs LSI) */
|
||||
#if CLOCK_LSE
|
||||
/* allow write access to backup domain */
|
||||
stmclk_bdp_unlock();
|
||||
/* enable LSE */
|
||||
RCC->BDCR |= RCC_BDCR_LSEON;
|
||||
while (!(RCC->BDCR & RCC_BDCR_LSERDY)) {}
|
||||
/* disable write access to back domain when done */
|
||||
stmclk_bdp_lock();
|
||||
#else
|
||||
RCC->CSR |= RCC_CSR_LSION;
|
||||
while (!(RCC->CSR & RCC_CSR_LSIRDY)) {}
|
||||
#endif
|
||||
}
|
||||
|
||||
void stmclk_disable_lfclk(void)
|
||||
{
|
||||
#if CLOCK_LSE
|
||||
stmclk_bdp_unlock();
|
||||
RCC->BDCR &= ~(RCC_BDCR_LSEON);
|
||||
stmclk_bdp_lock();
|
||||
#else
|
||||
RCC->CSR &= ~(RCC_CSR_LSION);
|
||||
#endif
|
||||
}
|
||||
|
||||
void stmclk_bdp_unlock(void)
|
||||
{
|
||||
periph_clk_en(APB1, RCC_APB1ENR_PWREN);
|
||||
PWR->CR1 |= PWR_CR1_DBP;
|
||||
}
|
||||
|
||||
void stmclk_bdp_lock(void)
|
||||
{
|
||||
PWR->CR1 &= ~(PWR_CR1_DBP);
|
||||
periph_clk_dis(APB1, RCC_APB1ENR_PWREN);
|
||||
}
|
||||
251
cpu/stm32f7/vectors.c
Normal file
251
cpu/stm32f7/vectors.c
Normal file
@ -0,0 +1,251 @@
|
||||
/*
|
||||
* Copyright (C) 2017 Freie Universität Berlin
|
||||
*
|
||||
* This file is subject to the terms and conditions of the GNU Lesser
|
||||
* General Public License v2.1. See the file LICENSE in the top level
|
||||
* directory for more details.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @ingroup cpu_stm32f7
|
||||
* @{
|
||||
*
|
||||
* @file
|
||||
* @brief Interrupt vector definitions
|
||||
*
|
||||
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
|
||||
*
|
||||
* @}
|
||||
*/
|
||||
|
||||
#include <stdint.h>
|
||||
#include "vectors_cortexm.h"
|
||||
|
||||
/* get the start of the ISR stack as defined in the linkerscript */
|
||||
extern uint32_t _estack;
|
||||
|
||||
/* define a local dummy handler as it needs to be in the same compilation unit
|
||||
* as the alias definition */
|
||||
void dummy_handler(void) {
|
||||
dummy_handler_default();
|
||||
}
|
||||
|
||||
/* Cortex-M common interrupt vectors */
|
||||
WEAK_DEFAULT void isr_svc(void);
|
||||
WEAK_DEFAULT void isr_pendsv(void);
|
||||
WEAK_DEFAULT void isr_systick(void);
|
||||
/* STM32F7 specific interrupt vectors */
|
||||
WEAK_DEFAULT void isr_wwdg(void);
|
||||
WEAK_DEFAULT void isr_pvd(void);
|
||||
WEAK_DEFAULT void isr_tamp_stamp(void);
|
||||
WEAK_DEFAULT void isr_rtc_wkup(void);
|
||||
WEAK_DEFAULT void isr_flash(void);
|
||||
WEAK_DEFAULT void isr_rcc(void);
|
||||
WEAK_DEFAULT void isr_exti(void);
|
||||
WEAK_DEFAULT void isr_dma1_stream0(void);
|
||||
WEAK_DEFAULT void isr_dma1_stream1(void);
|
||||
WEAK_DEFAULT void isr_dma1_stream2(void);
|
||||
WEAK_DEFAULT void isr_dma1_stream3(void);
|
||||
WEAK_DEFAULT void isr_dma1_stream4(void);
|
||||
WEAK_DEFAULT void isr_dma1_stream5(void);
|
||||
WEAK_DEFAULT void isr_dma1_stream6(void);
|
||||
WEAK_DEFAULT void isr_adc(void);
|
||||
WEAK_DEFAULT void isr_can1_tx(void);
|
||||
WEAK_DEFAULT void isr_can1_rx0(void);
|
||||
WEAK_DEFAULT void isr_can1_rx1(void);
|
||||
WEAK_DEFAULT void isr_can1_sce(void);
|
||||
WEAK_DEFAULT void isr_tim1_brk_tim9(void);
|
||||
WEAK_DEFAULT void isr_tim1_up_tim10(void);
|
||||
WEAK_DEFAULT void isr_tim1_trg_com_tim11(void);
|
||||
WEAK_DEFAULT void isr_tim1_cc(void);
|
||||
WEAK_DEFAULT void isr_tim2(void);
|
||||
WEAK_DEFAULT void isr_tim3(void);
|
||||
WEAK_DEFAULT void isr_tim4(void);
|
||||
WEAK_DEFAULT void isr_i2c1_ev(void);
|
||||
WEAK_DEFAULT void isr_i2c1_er(void);
|
||||
WEAK_DEFAULT void isr_i2c2_ev(void);
|
||||
WEAK_DEFAULT void isr_i2c2_er(void);
|
||||
WEAK_DEFAULT void isr_spi1(void);
|
||||
WEAK_DEFAULT void isr_spi2(void);
|
||||
WEAK_DEFAULT void isr_usart1(void);
|
||||
WEAK_DEFAULT void isr_usart2(void);
|
||||
WEAK_DEFAULT void isr_usart3(void);
|
||||
WEAK_DEFAULT void isr_rtc_alarm(void);
|
||||
WEAK_DEFAULT void isr_otg_fs_wkup(void);
|
||||
WEAK_DEFAULT void isr_tim8_brk_tim12(void);
|
||||
WEAK_DEFAULT void isr_tim8_up_tim13(void);
|
||||
WEAK_DEFAULT void isr_tim8_trg_com_tim14(void);
|
||||
WEAK_DEFAULT void isr_tim8_cc(void);
|
||||
WEAK_DEFAULT void isr_dma1_stream7(void);
|
||||
WEAK_DEFAULT void isr_fmc(void);
|
||||
WEAK_DEFAULT void isr_sdmmc1(void);
|
||||
WEAK_DEFAULT void isr_tim5(void);
|
||||
WEAK_DEFAULT void isr_spi3(void);
|
||||
WEAK_DEFAULT void isr_uart4(void);
|
||||
WEAK_DEFAULT void isr_uart5(void);
|
||||
WEAK_DEFAULT void isr_tim6_dac(void);
|
||||
WEAK_DEFAULT void isr_tim7(void);
|
||||
WEAK_DEFAULT void isr_dma2_stream0(void);
|
||||
WEAK_DEFAULT void isr_dma2_stream1(void);
|
||||
WEAK_DEFAULT void isr_dma2_stream2(void);
|
||||
WEAK_DEFAULT void isr_dma2_stream3(void);
|
||||
WEAK_DEFAULT void isr_dma2_stream4(void);
|
||||
WEAK_DEFAULT void isr_eth(void);
|
||||
WEAK_DEFAULT void isr_eth_wkup(void);
|
||||
WEAK_DEFAULT void isr_can2_tx(void);
|
||||
WEAK_DEFAULT void isr_can2_rx0(void);
|
||||
WEAK_DEFAULT void isr_can2_rx1(void);
|
||||
WEAK_DEFAULT void isr_can2_sce(void);
|
||||
WEAK_DEFAULT void isr_otg_fs(void);
|
||||
WEAK_DEFAULT void isr_dma2_stream5(void);
|
||||
WEAK_DEFAULT void isr_dma2_stream6(void);
|
||||
WEAK_DEFAULT void isr_dma2_stream7(void);
|
||||
WEAK_DEFAULT void isr_usart6(void);
|
||||
WEAK_DEFAULT void isr_i2c3_ev(void);
|
||||
WEAK_DEFAULT void isr_i2c3_er(void);
|
||||
WEAK_DEFAULT void isr_otg_hs_ep1_out(void);
|
||||
WEAK_DEFAULT void isr_otg_hs_ep1_in(void);
|
||||
WEAK_DEFAULT void isr_otg_hs_wkup(void);
|
||||
WEAK_DEFAULT void isr_otg_hs(void);
|
||||
WEAK_DEFAULT void isr_dcmi(void);
|
||||
WEAK_DEFAULT void isr_rng(void);
|
||||
WEAK_DEFAULT void isr_fpu(void);
|
||||
WEAK_DEFAULT void isr_uart7(void);
|
||||
WEAK_DEFAULT void isr_uart8(void);
|
||||
WEAK_DEFAULT void isr_spi4(void);
|
||||
WEAK_DEFAULT void isr_spi5(void);
|
||||
WEAK_DEFAULT void isr_spi6(void);
|
||||
WEAK_DEFAULT void isr_sai1(void);
|
||||
WEAK_DEFAULT void isr_ltdc(void);
|
||||
WEAK_DEFAULT void isr_ltdc_er(void);
|
||||
WEAK_DEFAULT void isr_dma2d(void);
|
||||
WEAK_DEFAULT void isr_sai2(void);
|
||||
WEAK_DEFAULT void isr_quadspi(void);
|
||||
WEAK_DEFAULT void isr_lptim1(void);
|
||||
WEAK_DEFAULT void isr_cec(void);
|
||||
WEAK_DEFAULT void isr_i2c4_ev(void);
|
||||
WEAK_DEFAULT void isr_i2c4_er(void);
|
||||
WEAK_DEFAULT void isr_spdif_rx(void);
|
||||
|
||||
/* interrupt vector table */
|
||||
ISR_VECTORS const void *interrupt_vector[] = {
|
||||
/* Exception stack pointer */
|
||||
(void*) (&_estack), /* pointer to the top of the stack */
|
||||
/* Cortex-M7 handlers */
|
||||
(void*) reset_handler_default, /* entry point of the program */
|
||||
(void*) nmi_default, /* non maskable interrupt handler */
|
||||
(void*) hard_fault_default, /* hard fault exception */
|
||||
(void*) mem_manage_default, /* memory manage exception */
|
||||
(void*) bus_fault_default, /* bus fault exception */
|
||||
(void*) usage_fault_default, /* usage fault exception */
|
||||
(void*) (0UL), /* Reserved */
|
||||
(void*) (0UL), /* Reserved */
|
||||
(void*) (0UL), /* Reserved */
|
||||
(void*) (0UL), /* Reserved */
|
||||
(void*) isr_svc, /* system call interrupt, in RIOT used for
|
||||
* switching into thread context on boot */
|
||||
(void*) debug_mon_default, /* debug monitor exception */
|
||||
(void*) (0UL), /* Reserved */
|
||||
(void*) isr_pendsv, /* pendSV interrupt, in RIOT the actual
|
||||
* context switching is happening here */
|
||||
(void*) isr_systick, /* SysTick interrupt, not used in RIOT */
|
||||
/* STM specific peripheral handlers */
|
||||
(void*) isr_wwdg,
|
||||
(void*) isr_pvd,
|
||||
(void*) isr_tamp_stamp,
|
||||
(void*) isr_rtc_wkup,
|
||||
(void*) isr_flash,
|
||||
(void*) isr_rcc,
|
||||
(void*) isr_exti,
|
||||
(void*) isr_exti,
|
||||
(void*) isr_exti,
|
||||
(void*) isr_exti,
|
||||
(void*) isr_exti,
|
||||
(void*) isr_dma1_stream0,
|
||||
(void*) isr_dma1_stream1,
|
||||
(void*) isr_dma1_stream2,
|
||||
(void*) isr_dma1_stream3,
|
||||
(void*) isr_dma1_stream4,
|
||||
(void*) isr_dma1_stream5,
|
||||
(void*) isr_dma1_stream6,
|
||||
(void*) isr_adc,
|
||||
(void*) isr_can1_tx,
|
||||
(void*) isr_can1_rx0,
|
||||
(void*) isr_can1_rx1,
|
||||
(void*) isr_can1_sce,
|
||||
(void*) isr_exti,
|
||||
(void*) isr_tim1_brk_tim9,
|
||||
(void*) isr_tim1_up_tim10,
|
||||
(void*) isr_tim1_trg_com_tim11,
|
||||
(void*) isr_tim1_cc,
|
||||
(void*) isr_tim2,
|
||||
(void*) isr_tim3,
|
||||
(void*) isr_tim4,
|
||||
(void*) isr_i2c1_ev,
|
||||
(void*) isr_i2c1_er,
|
||||
(void*) isr_i2c2_ev,
|
||||
(void*) isr_i2c2_er,
|
||||
(void*) isr_spi1,
|
||||
(void*) isr_spi2,
|
||||
(void*) isr_usart1,
|
||||
(void*) isr_usart2,
|
||||
(void*) isr_usart3,
|
||||
(void*) isr_exti,
|
||||
(void*) isr_rtc_alarm,
|
||||
(void*) isr_otg_fs_wkup,
|
||||
(void*) isr_tim8_brk_tim12,
|
||||
(void*) isr_tim8_up_tim13,
|
||||
(void*) isr_tim8_trg_com_tim14,
|
||||
(void*) isr_tim8_cc,
|
||||
(void*) isr_dma1_stream7,
|
||||
(void*) isr_fmc,
|
||||
(void*) isr_sdmmc1,
|
||||
(void*) isr_tim5,
|
||||
(void*) isr_spi3,
|
||||
(void*) isr_uart4,
|
||||
(void*) isr_uart5,
|
||||
(void*) isr_tim6_dac,
|
||||
(void*) isr_tim7,
|
||||
(void*) isr_dma2_stream0,
|
||||
(void*) isr_dma2_stream1,
|
||||
(void*) isr_dma2_stream2,
|
||||
(void*) isr_dma2_stream3,
|
||||
(void*) isr_dma2_stream4,
|
||||
(void*) isr_eth,
|
||||
(void*) isr_eth_wkup,
|
||||
(void*) isr_can2_tx,
|
||||
(void*) isr_can2_rx0,
|
||||
(void*) isr_can2_rx1,
|
||||
(void*) isr_can2_sce,
|
||||
(void*) isr_otg_fs,
|
||||
(void*) isr_dma2_stream5,
|
||||
(void*) isr_dma2_stream6,
|
||||
(void*) isr_dma2_stream7,
|
||||
(void*) isr_usart6,
|
||||
(void*) isr_i2c3_ev,
|
||||
(void*) isr_i2c3_er,
|
||||
(void*) isr_otg_hs_ep1_out,
|
||||
(void*) isr_otg_hs_ep1_in,
|
||||
(void*) isr_otg_hs_wkup,
|
||||
(void*) isr_otg_hs,
|
||||
(void*) isr_dcmi,
|
||||
(void*) (0UL),
|
||||
(void*) isr_rng,
|
||||
(void*) isr_fpu,
|
||||
(void*) isr_uart7,
|
||||
(void*) isr_uart8,
|
||||
(void*) isr_spi4,
|
||||
(void*) isr_spi5,
|
||||
(void*) isr_spi6,
|
||||
(void*) isr_sai1,
|
||||
(void*) isr_ltdc,
|
||||
(void*) isr_ltdc_er,
|
||||
(void*) isr_dma2d,
|
||||
(void*) isr_sai2,
|
||||
(void*) isr_quadspi,
|
||||
(void*) isr_lptim1,
|
||||
(void*) isr_cec,
|
||||
(void*) isr_i2c4_ev,
|
||||
(void*) isr_i2c4_er,
|
||||
(void*) isr_spdif_rx
|
||||
};
|
||||
Loading…
x
Reference in New Issue
Block a user