Loading...
Searching...
No Matches
stm32f4xx_periph_registers.c
Go to the documentation of this file.
/**
**************************************************************************
* @dir ../MCU_STM32F4xx_Matlab/STM32F4xx_SIMULINK
* @brief <b>
* Папка с исходным кодом симулятора МК. </b>
* @details
В этой папке содержаться файлы для эмуляции периферии STM32 в MATLAB.
Структура файлов такая же, как в библиотеке HAL:
- название серии МК, который эмулируется (stm32f4xx),
- идентификатор, что это для MATLAB (matlab),
- периферия, функции для эмуляции которой содержит конкретный файл (gpio, tim).
Пример: "stm32f4xx_matlab_tim.c/.h"
**************************************************************************/
/**
**************************************************************************
* @file stm32f4xx_periph_registers.c
* @brief Исходный код с переменными регистров периферии.
**************************************************************************
@details
Данный файл необходим для объявления структур для отображения их в watch
В оригинальном stm32f407xx они объявлены дефайнами, которые не видны в watch.
Поэтому дополнительно объявлены данные структуры.
Называются также, как CMSISные, только в нижнем регистре.
**************************************************************************/
#include "stm32f407xx_matlab.h"
/**
* @addtogroup PERIPH_VARS_FOR_DEBUG Periphs Variables for Debugging
* @ingroup STM_SIMULATION
* @brief Переменные для доступа к периферии в дебаге
* @{
*/
TIM_TypeDef* tim2 = TIM2;
TIM_TypeDef* tim3 = TIM3;
TIM_TypeDef* tim4 = TIM4;
TIM_TypeDef* tim5 = TIM5;
TIM_TypeDef* tim6 = TIM6;
TIM_TypeDef* tim7 = TIM7;
TIM_TypeDef* tim12 = TIM12;
TIM_TypeDef* tim13 = TIM13;
TIM_TypeDef* tim14 = TIM14;
RTC_TypeDef* rtc = RTC;
WWDG_TypeDef* wwdg = WWDG;
IWDG_TypeDef* iwdg = IWDG;
SPI_TypeDef* i2s2ext = I2S2ext;
SPI_TypeDef* spi2 = SPI2;
SPI_TypeDef* spi3 = SPI3;
SPI_TypeDef* i2s3ext = I2S3ext;
USART_TypeDef* usart2 = USART2;
USART_TypeDef* usart3 = USART3;
USART_TypeDef* uart4 = UART4;
USART_TypeDef* uart5 = UART5;
I2C_TypeDef* i2c1 = I2C1;
I2C_TypeDef* i2c2 = I2C2;
I2C_TypeDef* i2c3 = I2C3;
CAN_TypeDef* can1 = CAN1;
CAN_TypeDef* can2 = CAN2;
PWR_TypeDef* pwr = PWR;
DAC_TypeDef* dac1 = DAC1;
DAC_TypeDef* dac = DAC; /* Kept for legacy purpose = DAC */
TIM_TypeDef* tim1 = TIM1;
TIM_TypeDef* tim8 = TIM8;
USART_TypeDef* usart1 = USART1;
USART_TypeDef* usart6 = USART6;
ADC_TypeDef* adc1 = ADC1;
ADC_TypeDef* adc2 = ADC2;
ADC_TypeDef* adc3 = ADC3;
ADC_Common_TypeDef* adc123_common = ADC123_COMMON; /* Legacy define */
ADC_Common_TypeDef* adc = ADC123_COMMON;
SDIO_TypeDef* sdio = SDIO;
SPI_TypeDef* spi1 = SPI1;
SYSCFG_TypeDef* syscfg = SYSCFG;
EXTI_TypeDef* exti = EXTI;
TIM_TypeDef* tim9 = TIM9;
TIM_TypeDef* tim10 = TIM10;
TIM_TypeDef* tim11 = TIM11;
GPIO_TypeDef* gpioa = GPIOA;
GPIO_TypeDef* gpiob = GPIOB;
GPIO_TypeDef* gpioc = GPIOC;
GPIO_TypeDef* gpiod = GPIOD;
GPIO_TypeDef* gpioe = GPIOE;
GPIO_TypeDef* gpiof = GPIOF;
GPIO_TypeDef* gpiog = GPIOG;
GPIO_TypeDef* gpioh = GPIOH;
GPIO_TypeDef* gpioi = GPIOI;
CRC_TypeDef* crc = CRC;
RCC_TypeDef* rcc = RCC;
FLASH_TypeDef* flash_r = FLASH;
DMA_TypeDef* dma1 = DMA1;
DMA_Stream_TypeDef* dma1_stream0 = DMA1_Stream0;
DMA_Stream_TypeDef* dma1_stream1 = DMA1_Stream1;
DMA_Stream_TypeDef* dma1_stream2 = DMA1_Stream2;
DMA_Stream_TypeDef* dma1_stream3 = DMA1_Stream3;
DMA_Stream_TypeDef* dma1_stream4 = DMA1_Stream4;
DMA_Stream_TypeDef* dma1_stream5 = DMA1_Stream5;
DMA_Stream_TypeDef* dma1_stream6 = DMA1_Stream6;
DMA_Stream_TypeDef* dma1_stream7 = DMA1_Stream7;
DMA_TypeDef* dma2 = DMA2;
DMA_Stream_TypeDef* dma2_stream0 = DMA2_Stream0;
DMA_Stream_TypeDef* dma2_stream1 = DMA2_Stream1;
DMA_Stream_TypeDef* dma2_stream2 = DMA2_Stream2;
DMA_Stream_TypeDef* dma2_stream3 = DMA2_Stream3;
DMA_Stream_TypeDef* dma2_stream4 = DMA2_Stream4;
DMA_Stream_TypeDef* dma2_stream5 = DMA2_Stream5;
DMA_Stream_TypeDef* dma2_stream6 = DMA2_Stream6;
DMA_Stream_TypeDef* dma2_stream7 = DMA2_Stream7;
ETH_TypeDef* eth = ETH;
DCMI_TypeDef* dcmi = DCMI;
RNG_TypeDef* rng = RNG;
FSMC_Bank1_TypeDef* fsmc_bank1_r = FSMC_Bank1;
FSMC_Bank1E_TypeDef* fsmc_bank1e_r = FSMC_Bank1E;
FSMC_Bank2_3_TypeDef* fsmc_bank2_3_r = FSMC_Bank2_3;
FSMC_Bank4_TypeDef* fsmc_bank4_r = FSMC_Bank4;
DBGMCU_TypeDef* dbgmcu = DBGMCU;
USB_OTG_GlobalTypeDef* usb_otg_fs_periph = USB_OTG_FS;
USB_OTG_GlobalTypeDef* usb_otg_hs_periph = USB_OTG_HS;
/** PERIPH_VARS_FOR_DEBUG
* @}
*/
can1
CAN_TypeDef * can1
Definition stm32f4xx_periph_registers.c:61
spi3
SPI_TypeDef * spi3
Definition stm32f4xx_periph_registers.c:52
i2s2ext
SPI_TypeDef * i2s2ext
Definition stm32f4xx_periph_registers.c:50
crc
CRC_TypeDef * crc
Definition stm32f4xx_periph_registers.c:91
dma1_stream4
DMA_Stream_TypeDef * dma1_stream4
Definition stm32f4xx_periph_registers.c:99
dma2_stream1
DMA_Stream_TypeDef * dma2_stream1
Definition stm32f4xx_periph_registers.c:105
dma2_stream4
DMA_Stream_TypeDef * dma2_stream4
Definition stm32f4xx_periph_registers.c:108
dma1_stream5
DMA_Stream_TypeDef * dma1_stream5
Definition stm32f4xx_periph_registers.c:100
gpioe
GPIO_TypeDef * gpioe
Definition stm32f4xx_periph_registers.c:86
dma2_stream7
DMA_Stream_TypeDef * dma2_stream7
Definition stm32f4xx_periph_registers.c:111
gpioc
GPIO_TypeDef * gpioc
Definition stm32f4xx_periph_registers.c:84
dma1_stream0
DMA_Stream_TypeDef * dma1_stream0
Definition stm32f4xx_periph_registers.c:95
uart5
USART_TypeDef * uart5
Definition stm32f4xx_periph_registers.c:57
fsmc_bank2_3_r
FSMC_Bank2_3_TypeDef * fsmc_bank2_3_r
Definition stm32f4xx_periph_registers.c:117
dma2_stream2
DMA_Stream_TypeDef * dma2_stream2
Definition stm32f4xx_periph_registers.c:106
rcc
RCC_TypeDef * rcc
Definition stm32f4xx_periph_registers.c:92
usart3
USART_TypeDef * usart3
Definition stm32f4xx_periph_registers.c:55
tim9
TIM_TypeDef * tim9
Definition stm32f4xx_periph_registers.c:79
rtc
RTC_TypeDef * rtc
Definition stm32f4xx_periph_registers.c:47
usb_otg_hs_periph
USB_OTG_GlobalTypeDef * usb_otg_hs_periph
Definition stm32f4xx_periph_registers.c:121
gpioi
GPIO_TypeDef * gpioi
Definition stm32f4xx_periph_registers.c:90
dma1_stream6
DMA_Stream_TypeDef * dma1_stream6
Definition stm32f4xx_periph_registers.c:101
tim13
TIM_TypeDef * tim13
Definition stm32f4xx_periph_registers.c:45
exti
EXTI_TypeDef * exti
Definition stm32f4xx_periph_registers.c:78
tim10
TIM_TypeDef * tim10
Definition stm32f4xx_periph_registers.c:80
usart1
USART_TypeDef * usart1
Definition stm32f4xx_periph_registers.c:68
gpiof
GPIO_TypeDef * gpiof
Definition stm32f4xx_periph_registers.c:87
usart2
USART_TypeDef * usart2
Definition stm32f4xx_periph_registers.c:54
dma1_stream3
DMA_Stream_TypeDef * dma1_stream3
Definition stm32f4xx_periph_registers.c:98
adc3
ADC_TypeDef * adc3
Definition stm32f4xx_periph_registers.c:72
i2c1
I2C_TypeDef * i2c1
Definition stm32f4xx_periph_registers.c:58
tim11
TIM_TypeDef * tim11
Definition stm32f4xx_periph_registers.c:81
dma2
DMA_TypeDef * dma2
Definition stm32f4xx_periph_registers.c:103
dcmi
DCMI_TypeDef * dcmi
Definition stm32f4xx_periph_registers.c:113
tim8
TIM_TypeDef * tim8
Definition stm32f4xx_periph_registers.c:67
tim5
TIM_TypeDef * tim5
Definition stm32f4xx_periph_registers.c:41
fsmc_bank4_r
FSMC_Bank4_TypeDef * fsmc_bank4_r
Definition stm32f4xx_periph_registers.c:118
wwdg
WWDG_TypeDef * wwdg
Definition stm32f4xx_periph_registers.c:48
tim3
TIM_TypeDef * tim3
Definition stm32f4xx_periph_registers.c:39
tim14
TIM_TypeDef * tim14
Definition stm32f4xx_periph_registers.c:46
eth
ETH_TypeDef * eth
Definition stm32f4xx_periph_registers.c:112
sdio
SDIO_TypeDef * sdio
Definition stm32f4xx_periph_registers.c:75
spi1
SPI_TypeDef * spi1
Definition stm32f4xx_periph_registers.c:76
dma2_stream6
DMA_Stream_TypeDef * dma2_stream6
Definition stm32f4xx_periph_registers.c:110
dma2_stream5
DMA_Stream_TypeDef * dma2_stream5
Definition stm32f4xx_periph_registers.c:109
flash_r
FLASH_TypeDef * flash_r
Definition stm32f4xx_periph_registers.c:93
dma1_stream1
DMA_Stream_TypeDef * dma1_stream1
Definition stm32f4xx_periph_registers.c:96
syscfg
SYSCFG_TypeDef * syscfg
Definition stm32f4xx_periph_registers.c:77
gpioh
GPIO_TypeDef * gpioh
Definition stm32f4xx_periph_registers.c:89
iwdg
IWDG_TypeDef * iwdg
Definition stm32f4xx_periph_registers.c:49
adc2
ADC_TypeDef * adc2
Definition stm32f4xx_periph_registers.c:71
spi2
SPI_TypeDef * spi2
Definition stm32f4xx_periph_registers.c:51
tim4
TIM_TypeDef * tim4
Definition stm32f4xx_periph_registers.c:40
usb_otg_fs_periph
USB_OTG_GlobalTypeDef * usb_otg_fs_periph
Definition stm32f4xx_periph_registers.c:120
pwr
PWR_TypeDef * pwr
Definition stm32f4xx_periph_registers.c:63
fsmc_bank1_r
FSMC_Bank1_TypeDef * fsmc_bank1_r
Definition stm32f4xx_periph_registers.c:115
dac1
DAC_TypeDef * dac1
Definition stm32f4xx_periph_registers.c:64
fsmc_bank1e_r
FSMC_Bank1E_TypeDef * fsmc_bank1e_r
Definition stm32f4xx_periph_registers.c:116
i2c3
I2C_TypeDef * i2c3
Definition stm32f4xx_periph_registers.c:60
adc
ADC_Common_TypeDef * adc
Definition stm32f4xx_periph_registers.c:74
tim6
TIM_TypeDef * tim6
Definition stm32f4xx_periph_registers.c:42
usart6
USART_TypeDef * usart6
Definition stm32f4xx_periph_registers.c:69
dbgmcu
DBGMCU_TypeDef * dbgmcu
Definition stm32f4xx_periph_registers.c:119
tim2
TIM_TypeDef * tim2
Definition stm32f4xx_periph_registers.c:38
tim7
TIM_TypeDef * tim7
Definition stm32f4xx_periph_registers.c:43
gpiod
GPIO_TypeDef * gpiod
Definition stm32f4xx_periph_registers.c:85
dma1
DMA_TypeDef * dma1
Definition stm32f4xx_periph_registers.c:94
dac
DAC_TypeDef * dac
Definition stm32f4xx_periph_registers.c:65
adc123_common
ADC_Common_TypeDef * adc123_common
Definition stm32f4xx_periph_registers.c:73
i2s3ext
SPI_TypeDef * i2s3ext
Definition stm32f4xx_periph_registers.c:53
dma2_stream3
DMA_Stream_TypeDef * dma2_stream3
Definition stm32f4xx_periph_registers.c:107
gpiob
GPIO_TypeDef * gpiob
Definition stm32f4xx_periph_registers.c:83
can2
CAN_TypeDef * can2
Definition stm32f4xx_periph_registers.c:62
rng
RNG_TypeDef * rng
Definition stm32f4xx_periph_registers.c:114
uart4
USART_TypeDef * uart4
Definition stm32f4xx_periph_registers.c:56
dma1_stream7
DMA_Stream_TypeDef * dma1_stream7
Definition stm32f4xx_periph_registers.c:102
gpiog
GPIO_TypeDef * gpiog
Definition stm32f4xx_periph_registers.c:88
tim1
TIM_TypeDef * tim1
Definition stm32f4xx_periph_registers.c:66
dma2_stream0
DMA_Stream_TypeDef * dma2_stream0
Definition stm32f4xx_periph_registers.c:104
adc1
ADC_TypeDef * adc1
Definition stm32f4xx_periph_registers.c:70
dma1_stream2
DMA_Stream_TypeDef * dma1_stream2
Definition stm32f4xx_periph_registers.c:97
i2c2
I2C_TypeDef * i2c2
Definition stm32f4xx_periph_registers.c:59
tim12
TIM_TypeDef * tim12
Definition stm32f4xx_periph_registers.c:44
gpioa
GPIO_TypeDef * gpioa
Definition stm32f4xx_periph_registers.c:82