609 lines
16 KiB
JSON
609 lines
16 KiB
JSON
{
|
|
"MainCode": {
|
|
"Includes": [
|
|
".",
|
|
"Drivers/STM32F1xx_SIMULINK",
|
|
"Drivers/CMSIS",
|
|
"Drivers/CMSIS/Device/STM32F1xx",
|
|
"Drivers/STM32F1xx_HAL_Driver/Inc",
|
|
"Drivers/STM32F1xx_HAL_Driver/Inc/Legacy"
|
|
]
|
|
},
|
|
"UserCode": {
|
|
"Functions": {
|
|
"PeriphInit": [
|
|
"Initialize_Periph_Sim()"
|
|
],
|
|
"PeriphSimulation": [
|
|
"Simulate_TIMs()",
|
|
"Simulate_GPIO_BSRR()"
|
|
],
|
|
"PeriphDeinit": [
|
|
"deInitialize_Periph_Sim()"
|
|
]
|
|
}
|
|
},
|
|
"Main": {
|
|
"Sources": {
|
|
"Type": "files",
|
|
"Options": [
|
|
"stm32f1xx_matlab_conf.c",
|
|
"Drivers/STM32F1xx_SIMULINK/stm32f1xx_matlab_gpio.c",
|
|
"Drivers/STM32F1xx_SIMULINK/stm32f1xx_periph_registers.c"
|
|
]
|
|
},
|
|
"Defines": {
|
|
"STM32xx": {
|
|
"Prompt": "Choose MCU",
|
|
"Def": [
|
|
"STM32F103xB"
|
|
],
|
|
"Type": "popup",
|
|
"NewRow": true
|
|
},
|
|
"Tab_TIM_Enable": {
|
|
"Prompt": "Enable TIMs",
|
|
"Type": "checkbox",
|
|
"Default": true,
|
|
"NewRow": true
|
|
},
|
|
"Tab_ADC_Enable": {
|
|
"Prompt": "Enable ADCs",
|
|
"Type": "checkbox",
|
|
"Default": false,
|
|
"NewRow": true
|
|
}
|
|
}
|
|
},
|
|
"HAL": {
|
|
"Defines": {
|
|
"USE_HAL": {
|
|
"Prompt": "Use HAL",
|
|
"Def": "USE_HAL_DRIVER",
|
|
"Sources": [
|
|
"Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.c"
|
|
],
|
|
"Type": "checkbox",
|
|
"Default": true,
|
|
"NewRow": true
|
|
},
|
|
"HAL_ADC": {
|
|
"Prompt": "Enable HAL ADC Module",
|
|
"Sources": [
|
|
"Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_adc.c",
|
|
"Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_adc_ex.c"
|
|
],
|
|
"Type": "checkbox",
|
|
"Default": true,
|
|
"NewRow": true
|
|
},
|
|
"HAL_CRYP": {
|
|
"Prompt": "Enable HAL CRYP Module",
|
|
"Sources": [
|
|
"Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cryp.c"
|
|
],
|
|
"Type": "checkbox",
|
|
"Default": false
|
|
},
|
|
"HAL_CAN": {
|
|
"Prompt": "Enable HAL CAN Module",
|
|
"Sources": [
|
|
"Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_can.c"
|
|
],
|
|
"Type": "checkbox",
|
|
"Default": false
|
|
},
|
|
"HAL_CAN_LEGACY": {
|
|
"Prompt": "Enable HAL CAN_LEGACY Module",
|
|
"Sources": [
|
|
"Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_can_legacy.c"
|
|
],
|
|
"Type": "checkbox",
|
|
"Default": false
|
|
},
|
|
"HAL_CEC": {
|
|
"Prompt": "Enable HAL CEC Module",
|
|
"Sources": [
|
|
"Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cec.c"
|
|
],
|
|
"Type": "checkbox",
|
|
"Default": false
|
|
},
|
|
"HAL_CORTEX": {
|
|
"Prompt": "Enable HAL CORTEX Module",
|
|
"Sources": [
|
|
"Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.c"
|
|
],
|
|
"Type": "checkbox",
|
|
"Default": true
|
|
},
|
|
"HAL_CRC": {
|
|
"Prompt": "Enable HAL CRC Module",
|
|
"Sources": [
|
|
"Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_crc.c"
|
|
],
|
|
"Type": "checkbox",
|
|
"Default": false
|
|
},
|
|
"HAL_DAC": {
|
|
"Prompt": "Enable HAL DAC Module",
|
|
"Sources": [
|
|
"Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dac.c",
|
|
"Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dac_ex.c"
|
|
],
|
|
"Type": "checkbox",
|
|
"Default": false
|
|
},
|
|
"HAL_DMA": {
|
|
"Prompt": "Enable HAL DMA Module",
|
|
"Sources": [
|
|
"Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.c"
|
|
],
|
|
"Type": "checkbox",
|
|
"Default": false
|
|
},
|
|
"HAL_ETH": {
|
|
"Prompt": "Enable HAL ETH Module",
|
|
"Sources": [
|
|
"Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_eth.c"
|
|
],
|
|
"Type": "checkbox",
|
|
"Default": false
|
|
},
|
|
"HAL_FLASH": {
|
|
"Prompt": "Enable HAL FLASH Module",
|
|
"Sources": [
|
|
"Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c",
|
|
"Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.c"
|
|
],
|
|
"Type": "checkbox",
|
|
"Default": false
|
|
},
|
|
"HAL_EXTI": {
|
|
"Prompt": "Enable HAL EXTI Module",
|
|
"Sources": [
|
|
"Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c"
|
|
],
|
|
"Type": "checkbox",
|
|
"Default": true
|
|
},
|
|
"HAL_GPIO": {
|
|
"Prompt": "Enable HAL GPIO Module",
|
|
"Sources": [
|
|
"Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.c",
|
|
"Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.c"
|
|
],
|
|
"Type": "checkbox",
|
|
"Default": true
|
|
},
|
|
"HAL_I2C": {
|
|
"Prompt": "Enable HAL I2C Module",
|
|
"Sources": [
|
|
"Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.c"
|
|
],
|
|
"Type": "checkbox",
|
|
"Default": false
|
|
},
|
|
"HAL_I2S": {
|
|
"Prompt": "Enable HAL I2S Module",
|
|
"Sources": [
|
|
"Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2s.c"
|
|
],
|
|
"Type": "checkbox",
|
|
"Default": false
|
|
},
|
|
"HAL_IRDA": {
|
|
"Prompt": "Enable HAL IRDA Module",
|
|
"Sources": [
|
|
"Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_irda.c"
|
|
],
|
|
"Type": "checkbox",
|
|
"Default": false
|
|
},
|
|
"HAL_IWDG": {
|
|
"Prompt": "Enable HAL IWDG Module",
|
|
"Sources": [
|
|
"Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_iwdg.c"
|
|
],
|
|
"Type": "checkbox",
|
|
"Default": false
|
|
},
|
|
"HAL_NOR": {
|
|
"Prompt": "Enable HAL NOR Module",
|
|
"Sources": [
|
|
"Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_nor.c"
|
|
],
|
|
"Type": "checkbox",
|
|
"Default": false
|
|
},
|
|
"HAL_NAND": {
|
|
"Prompt": "Enable HAL NAND Module",
|
|
"Sources": [
|
|
"Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_nand.c"
|
|
],
|
|
"Type": "checkbox",
|
|
"Default": false
|
|
},
|
|
"HAL_PCCARD": {
|
|
"Prompt": "Enable HAL PCCARD Module",
|
|
"Sources": [
|
|
"Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pccard.c"
|
|
],
|
|
"Type": "checkbox",
|
|
"Default": false
|
|
},
|
|
"HAL_PCD": {
|
|
"Prompt": "Enable HAL PCD Module",
|
|
"Sources": [
|
|
"Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pcd.c",
|
|
"Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pcd_ex.c"
|
|
],
|
|
"Type": "checkbox",
|
|
"Default": false
|
|
},
|
|
"HAL_HCD": {
|
|
"Prompt": "Enable HAL HCD Module",
|
|
"Sources": [
|
|
"Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_hcd.c"
|
|
],
|
|
"Type": "checkbox",
|
|
"Default": false
|
|
},
|
|
"HAL_PWR": {
|
|
"Prompt": "Enable HAL PWR Module",
|
|
"Sources": [
|
|
"Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.c"
|
|
],
|
|
"Type": "checkbox",
|
|
"Default": true
|
|
},
|
|
"HAL_RCC": {
|
|
"Prompt": "Enable HAL RCC Module",
|
|
"Sources": [
|
|
"Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.c",
|
|
"Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.c"
|
|
],
|
|
"Type": "checkbox",
|
|
"Default": true
|
|
},
|
|
"HAL_RTC": {
|
|
"Prompt": "Enable HAL RTC Module",
|
|
"Sources": [
|
|
"Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rtc.c",
|
|
"Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rtc_ex.c"
|
|
],
|
|
"Type": "checkbox",
|
|
"Default": false
|
|
},
|
|
"HAL_SD": {
|
|
"Prompt": "Enable HAL SD Module",
|
|
"Sources": [
|
|
"Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sd.c"
|
|
],
|
|
"Type": "checkbox",
|
|
"Default": false
|
|
},
|
|
"HAL_MMC": {
|
|
"Prompt": "Enable HAL MMC Module",
|
|
"Sources": [
|
|
"Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_mmc.c"
|
|
],
|
|
"Type": "checkbox",
|
|
"Default": false
|
|
},
|
|
"HAL_SDRAM": {
|
|
"Prompt": "Enable HAL SDRAM Module",
|
|
"Sources": [
|
|
"Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sdram.c"
|
|
],
|
|
"Type": "checkbox",
|
|
"Default": false
|
|
},
|
|
"HAL_SMARTCARD": {
|
|
"Prompt": "Enable HAL SMARTCARD Module",
|
|
"Sources": [
|
|
"Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_smartcard.c"
|
|
],
|
|
"Type": "checkbox",
|
|
"Default": false
|
|
},
|
|
"HAL_SPI": {
|
|
"Prompt": "Enable HAL SPI Module",
|
|
"Sources": [
|
|
"Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.c"
|
|
],
|
|
"Type": "checkbox",
|
|
"Default": false
|
|
},
|
|
"HAL_SRAM": {
|
|
"Prompt": "Enable HAL SRAM Module",
|
|
"Sources": [
|
|
"Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.c"
|
|
],
|
|
"Type": "checkbox",
|
|
"Default": false
|
|
},
|
|
"HAL_TIM": {
|
|
"Prompt": "Enable HAL TIM Module",
|
|
"Sources": [
|
|
"Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.c",
|
|
"Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.c"
|
|
],
|
|
"Type": "checkbox",
|
|
"Default": true
|
|
},
|
|
"HAL_UART": {
|
|
"Prompt": "Enable HAL UART Module",
|
|
"Sources": [
|
|
"Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.c"
|
|
],
|
|
"Type": "checkbox",
|
|
"Default": false
|
|
},
|
|
"HAL_USART": {
|
|
"Prompt": "Enable HAL USART Module",
|
|
"Sources": [
|
|
"Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_usart.c"
|
|
],
|
|
"Type": "checkbox",
|
|
"Default": false
|
|
},
|
|
"HAL_WWDG": {
|
|
"Prompt": "Enable HAL WWDG Module",
|
|
"Sources": [
|
|
"Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_wwdg.c"
|
|
],
|
|
"Type": "checkbox",
|
|
"Default": false
|
|
}
|
|
}
|
|
},
|
|
"RCC": {
|
|
"Defines": {
|
|
"HCLK_Clock": {
|
|
"Prompt": "HCLK Clock (Hz)",
|
|
"Def": "HCLK_Value",
|
|
"Type": "edit",
|
|
"Default": 7.2E+7
|
|
},
|
|
"ABP1_Clock": {
|
|
"Prompt": "ABP1 Clock (Hz)",
|
|
"Def": "ABP1_Value",
|
|
"Type": "edit",
|
|
"Default": 7.2E+7
|
|
},
|
|
"ABP1_TIMS_Clock": {
|
|
"Prompt": "ABP1 Tim's Clock (Hz)",
|
|
"Def": "ABP1_TIMS_Value",
|
|
"Type": "edit",
|
|
"Default": 7.2E+7
|
|
},
|
|
"ABP2_Clock": {
|
|
"Prompt": "ABP2 Clock (Hz)",
|
|
"Def": "ABP2_Value",
|
|
"Type": "edit",
|
|
"Default": 7.2E+7
|
|
},
|
|
"ABP2_TIMS_Clock": {
|
|
"Prompt": "ABP2 Tim's Clock (Hz)",
|
|
"Def": "ABP2_TIMS_Value",
|
|
"Type": "edit",
|
|
"Default": 7.2E+7
|
|
}
|
|
}
|
|
},
|
|
"TIM": {
|
|
"Sources": [
|
|
"Drivers/STM32F1xx_SIMULINK/stm32f1xx_matlab_tim.c"
|
|
],
|
|
"Defines": {
|
|
"TIM1_Enable": {
|
|
"Prompt": "TIM1 Enable",
|
|
"Def": "USE_TIM1",
|
|
"Type": "checkbox",
|
|
"Default": false,
|
|
"NewRow": true
|
|
},
|
|
"TIM1_BRK_TIM9_Handler": {
|
|
"Prompt": "TIM1_BRK_TIM9 Handler",
|
|
"Def": "USE_TIM1_BRK_TIM9_HANDLER",
|
|
"Type": "checkbox",
|
|
"Default": false,
|
|
"NewRow": false
|
|
},
|
|
"TIM2_Enable": {
|
|
"Prompt": "TIM2 Enable",
|
|
"Def": "USE_TIM2",
|
|
"Type": "checkbox",
|
|
"Default": true,
|
|
"NewRow": true
|
|
},
|
|
"TIM1_UP_TIM10_Handler": {
|
|
"Prompt": "TIM1_UP_TIM10 Handler",
|
|
"Def": "USE_TIM1_UP_TIM10_HANDLER",
|
|
"Type": "checkbox",
|
|
"Default": false,
|
|
"NewRow": false
|
|
},
|
|
"TIM3_Enable": {
|
|
"Prompt": "TIM3 Enable",
|
|
"Def": "USE_TIM3",
|
|
"Type": "checkbox",
|
|
"Default": false,
|
|
"NewRow": true
|
|
},
|
|
"TIM1_TRG_COM_TIM11_Handler": {
|
|
"Prompt": "TIM1_TRG_COM_TIM11 Handler",
|
|
"Def": "USE_TIM1_TRG_COM_TIM11_HANDLER",
|
|
"Type": "checkbox",
|
|
"Default": false,
|
|
"NewRow": false
|
|
},
|
|
"TIM4_Enable": {
|
|
"Prompt": "TIM4 Enable",
|
|
"Def": "USE_TIM4",
|
|
"Type": "checkbox",
|
|
"Default": false,
|
|
"NewRow": true
|
|
},
|
|
"TIM2_Handler": {
|
|
"Prompt": "TIM2 Handler",
|
|
"Def": "USE_TIM2_HANDLER",
|
|
"Type": "checkbox",
|
|
"Default": false,
|
|
"NewRow": false
|
|
},
|
|
"TIM5_Enable": {
|
|
"Prompt": "TIM5 Enable",
|
|
"Def": "USE_TIM5",
|
|
"Type": "checkbox",
|
|
"Default": false,
|
|
"NewRow": true
|
|
},
|
|
"TIM3_Handler": {
|
|
"Prompt": "TIM3 Handler",
|
|
"Def": "USE_TIM3_HANDLER",
|
|
"Type": "checkbox",
|
|
"Default": false,
|
|
"NewRow": false
|
|
},
|
|
"TIM6_Enable": {
|
|
"Prompt": "TIM6 Enable",
|
|
"Def": "USE_TIM6",
|
|
"Type": "checkbox",
|
|
"Default": false,
|
|
"NewRow": true
|
|
},
|
|
"TIM4_Handler": {
|
|
"Prompt": "TIM4 Handler",
|
|
"Def": "USE_TIM4_HANDLER",
|
|
"Type": "checkbox",
|
|
"Default": false,
|
|
"NewRow": false
|
|
},
|
|
"TIM7_Enable": {
|
|
"Prompt": "TIM7 Enable",
|
|
"Def": "USE_TIM7",
|
|
"Type": "checkbox",
|
|
"Default": false,
|
|
"NewRow": true
|
|
},
|
|
"TIM5_Handler": {
|
|
"Prompt": "TIM5 Handler",
|
|
"Def": "USE_TIM5_HANDLER",
|
|
"Type": "checkbox",
|
|
"Default": false,
|
|
"NewRow": false
|
|
},
|
|
"TIM8_Enable": {
|
|
"Prompt": "TIM8 Enable",
|
|
"Def": "USE_TIM8",
|
|
"Type": "checkbox",
|
|
"Default": false,
|
|
"NewRow": true
|
|
},
|
|
"TIM6_Handler": {
|
|
"Prompt": "TIM6 Handler",
|
|
"Def": "USE_TIM6_HANDLER",
|
|
"Type": "checkbox",
|
|
"Default": false,
|
|
"NewRow": false
|
|
},
|
|
"TIM9_Enable": {
|
|
"Prompt": "TIM9 Enable",
|
|
"Def": "USE_TIM9",
|
|
"Type": "checkbox",
|
|
"Default": false,
|
|
"NewRow": true
|
|
},
|
|
"TIM7_Handler": {
|
|
"Prompt": "TIM7 Handler",
|
|
"Def": "USE_TIM7_HANDLER",
|
|
"Type": "checkbox",
|
|
"Default": false,
|
|
"NewRow": false
|
|
},
|
|
"TIM10_Enable": {
|
|
"Prompt": "TIM10 Enable",
|
|
"Def": "USE_TIM10",
|
|
"Type": "checkbox",
|
|
"Default": false,
|
|
"NewRow": true
|
|
},
|
|
"TIM8_BRK_TIM12_Handler": {
|
|
"Prompt": "TIM8_BRK_TIM12 Handler",
|
|
"Def": "USE_TIM8_BRK_TIM12_HANDLER",
|
|
"Type": "checkbox",
|
|
"Default": false,
|
|
"NewRow": false
|
|
},
|
|
"TIM11_Enable": {
|
|
"Prompt": "TIM11 Enable",
|
|
"Def": "USE_TIM11",
|
|
"Type": "checkbox",
|
|
"Default": false,
|
|
"NewRow": true
|
|
},
|
|
"TIM8_UP_TIM13_Handler": {
|
|
"Prompt": "TIM8_UP_TIM13 Handler",
|
|
"Def": "USE_TIM8_UP_TIM13_HANDLER",
|
|
"Type": "checkbox",
|
|
"Default": false,
|
|
"NewRow": false
|
|
},
|
|
"TIM12_Enable": {
|
|
"Prompt": "TIM12 Enable",
|
|
"Def": "USE_TIM12",
|
|
"Type": "checkbox",
|
|
"Default": false,
|
|
"NewRow": true
|
|
},
|
|
"TIM8_TRG_COM_TIM14_Handler": {
|
|
"Prompt": "TIM8_TRG_COM_TIM14 Handler",
|
|
"Def": "USE_TIM8_TRG_COM_TIM14_HANDLER",
|
|
"Type": "checkbox",
|
|
"Default": false,
|
|
"NewRow": false
|
|
},
|
|
"TIM13_Enable": {
|
|
"Prompt": "TIM13 Enable",
|
|
"Def": "USE_TIM13",
|
|
"Type": "checkbox",
|
|
"Default": false,
|
|
"NewRow": true
|
|
},
|
|
"TIM14_Enable": {
|
|
"Prompt": "TIM14 Enable",
|
|
"Def": "USE_TIM14",
|
|
"Type": "checkbox",
|
|
"Default": false,
|
|
"NewRow": true
|
|
}
|
|
}
|
|
},
|
|
"ADC": {
|
|
"Defines": {
|
|
"ADC1_Enable": {
|
|
"Prompt": "ADC1 Enable",
|
|
"Def": "ADC1_ENABLE",
|
|
"Type": "checkbox",
|
|
"Default": false,
|
|
"NewRow": true
|
|
},
|
|
"ADC2_Enable": {
|
|
"Prompt": "ADC2 Enable",
|
|
"Def": "ADC2_ENABLE",
|
|
"Type": "checkbox",
|
|
"Default": false,
|
|
"NewRow": true
|
|
},
|
|
"Sample_Rate": {
|
|
"Prompt": "Sample Rate (Hz)",
|
|
"Def": "SAMPLE_RATE",
|
|
"Type": "edit",
|
|
"Default": 48000,
|
|
"NewRow": true
|
|
}
|
|
}
|
|
}
|
|
} |