# Parameters:
# instance.parameter=value #(type, mode) default = 'def value' : description : [min..max]
#----------------------------------------------------------------------------------------------
cpu0.FPU=0 # (bool , init-time) default = '1' : Set whether the model has VFP support
cpu0.DSP=0 # (bool , init-time) default = '1' : Set whether the model has the DSP extension
cpu0.semihosting-enable=0 # (bool , init-time) default = '1' : Enable semihosting SVC traps. Applications that do not use semihosting must set this parameter to false.
cpu0.MPU_S=0x8 # (int , init-time) default = '0x8' : Number of regions in the Secure MPU. If Security Extentions are absent, this is ignored : [0x0..0x10]
cpu0.MPU_NS=0x8 # (int , init-time) default = '0x8' : Number of regions in the Non-Secure MPU. If Security Extentions are absent, this is the total number of MPU regions : [0x0..0x10]
cpu0.ITM=0 # (bool , init-time) default = '1' : Level of instrumentation trace supported. false : No ITM trace included, true: ITM trace included
cpu0.IRQLVL=0x3 # (int , init-time) default = '0x3' : Number of bits of interrupt priority : [0x3..0x8]
cpu0.BIGENDINIT=0 # (bool , init-time) default = '0' : Initialize processor to big endian mode
cpu0.INITSVTOR=0x00000000 # (int , init-time) default = '0x10000000' : Secure vector-table offset at reset : [0x0..0xFFFFFF80]
cpu0.INITNSVTOR=0x0 # (int , init-time) default = '0x0' : Non-Secure vector-table offset at reset : [0x0..0xFFFFFF80]
cpu0.SAU=0x0 # (int , init-time) default = '0x4' : Number of SAU regions (0 => no SAU) : [0x0..0x8]
cpu0.SAU_CTRL.ENABLE=0 # (bool , init-time) default = '0' : Enable SAU at reset
cpu0.SAU_CTRL.ALLNS=0 # (bool , init-time) default = '0' : At reset, the SAU treats entire memory space as NS when the SAU is disabled if this is set
cpu0.NUM_IDAU_REGION=0x0 # (int , init-time) default = '0xA' :
cpu0.LOCK_SAU=0 # (bool , init-time) default = '0' : Lock down of SAU registers write
cpu0.LOCK_S_MPU=0 # (bool , init-time) default = '0' : Lock down of Secure MPU registers write
cpu0.LOCK_NS_MPU=0 # (bool , init-time) default = '0' : Lock down of Non-Secure MPU registers write
cpu0.CPIF=1 # (bool , init-time) default = '1' : Specifies whether the external coprocessor interface is included
cpu0.SECEXT=0 # (bool , init-time) default = '1' : Whether the ARMv8-M Security Extensions are included
fvp_mps2.DISABLE_GATING=1 # (bool , init-time) default = '0' : Disable Memory gating logic
fvp_mps2.NUM_IDAU_REGION=0x0 # (int , init-time) default = '0xA' :
fvp_mps2.SCC_ID.Variant=0x0 # (int , init-time) default = '0x0' : SCC_ID[23:20], X in the FGPA version 'rXpY' : [0x0..0xF]
fvp_mps2.SCC_ID.Revision=0x1 # (int , init-time) default = '0x1' : SCC_ID[3:0], Y in the FGPA version 'rXpY' : [0x0..0xF]
fvp_mps2.platform_type=0x0 # (int , init-time) default = '0x0' : 0:MPS2 ; 1:IoT Kit ; 2:Castor : [0x0..0x2]
fvp_mps2.extra_psram=0 # (bool , init-time) default = '0' : Increases PSRAM to 32Mb
fvp_mps2.UART2.out_file="" # (string, init-time) default = '' : Output file to hold data written by the UART (use '-' to send all output to stdout)
fvp_mps2.UART2.in_file="" # (string, init-time) default = '' : Input file for data to be read by the UART
fvp_mps2.UART2.unbuffered_output=0 # (bool , init-time) default = '0' : Unbuffered output
fvp_mps2.UART2.in_file_escape_sequence="##" # (string, init-time) default = '##' : Input file escape sequence
fvp_mps2.UART2.shutdown_on_eot=0 # (bool , init-time) default = '0' : Shutdown simulation when a EOT (ASCII 4) char is transmitted (useful for regression tests when semihosting is not available)
fvp_mps2.UART2.shutdown_tag="" # (string, run-time ) default = '' : Shutdown simulation when a string is transmitted
fvp_mps2.UART1.out_file="" # (string, init-time) default = '' : Output file to hold data written by the UART (use '-' to send all output to stdout)
fvp_mps2.UART1.in_file="" # (string, init-time) default = '' : Input file for data to be read by the UART
fvp_mps2.UART1.unbuffered_output=0 # (bool , init-time) default = '0' : Unbuffered output
fvp_mps2.UART1.in_file_escape_sequence="##" # (string, init-time) default = '##' : Input file escape sequence
fvp_mps2.UART1.shutdown_on_eot=0 # (bool , init-time) default = '0' : Shutdown simulation when a EOT (ASCII 4) char is transmitted (useful for regression tests when semihosting is not available)
fvp_mps2.UART1.shutdown_tag="" # (string, run-time ) default = '' : Shutdown simulation when a string is transmitted
fvp_mps2.mps2_visualisation.rate_limit-enable=1 # (bool , init-time) default = '1' : Rate limit simulation.
fvp_mps2.mps2_visualisation.disable-visualisation=0 # (bool , init-time) default = '0' : Enable/disable visualisation
fvp_mps2.mps2_visualisation.window_title="CLCD %cpu%" # (string, init-time) default = 'CLCD %cpu%' : Window title (%cpu% is replaced by cpu_name)
fvp_mps2.mps2_visualisation.idler.delay_ms=0x32 # (int , init-time) default = '0x32' : Determines the period, in milliseconds of real time, between gui_callback() calls.
fvp_mps2.telnetterminal0.mode="telnet" # (string, init-time) default = 'telnet' : Terminal initialisation mode
fvp_mps2.telnetterminal0.start_telnet=1 # (bool , init-time) default = '1' : Start telnet if nothing connected
fvp_mps2.telnetterminal0.start_port=0x1388 # (int , init-time) default = '0x1388' : Telnet TCP Port Number : [0x0..0xFFFFFFFF]
fvp_mps2.telnetterminal0.quiet=0 # (bool , init-time) default = '0' : Avoid output on stdout/stderr
fvp_mps2.telnetterminal0.terminal_command="" # (string, init-time) default = '' : Commandline to launch a terminal application and connect to the opened TCP port. Keywords %port and %title will be replaced with the opened port number and component name respectively. An empty string (default behaviour) will launch xterm (Linux) or telnet.exe (Windows)
fvp_mps2.telnetterminal1.mode="telnet" # (string, init-time) default = 'telnet' : Terminal initialisation mode
fvp_mps2.telnetterminal1.start_telnet=1 # (bool , init-time) default = '1' : Start telnet if nothing connected
fvp_mps2.telnetterminal1.start_port=0x1388 # (int , init-time) default = '0x1388' : Telnet TCP Port Number : [0x0..0xFFFFFFFF]
fvp_mps2.telnetterminal1.quiet=0 # (bool , init-time) default = '0' : Avoid output on stdout/stderr
fvp_mps2.telnetterminal1.terminal_command="" # (string, init-time) default = '' : Commandline to launch a terminal application
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
虽然这里演示的是STM32F407,但是STM32F103还是STM32H系列等,但是可直接将LED、按键、串口文件复制使用,仅供需改头文件的引脚。之前介绍了很多关于点灯的方法,比如轮询、定时器中断、PWM、按键点灯等方式,这些文章使用的编程方法都不是模块化的编写方式,往往会导致代码可读性差、重用性差、扩展性差以及测试和维护困难等问题。为了避免这些问题,我们实际工作中通常会采用模块化的编写方法,这样可以确保代码结构清晰、功能明确,提高代码的可读性和可维护性,同时降低功能之间的耦合度,增强代码的重用性和扩展性。模块化的编写方式还有助于实现代码的并行开发,提高开发效率,使得整个项目更加易于管理和维护。 基于之前的按键点灯的程序和printf重定向输出进行修改,我将为您详细阐述如何使用STM32F407的HAL库,并结合STM32CubeMX配置工具,通过模块化分层方法用按键分别控制两个LED灯并通过串口打印按键与灯的状态,即用引脚PE2和PE3按键分别控制PF9和PF10引脚LED,通过USART1打印信息。这一简洁而高效的流程将助您迅速掌握LED、按键、串口模块化编写方法。
资源推荐
资源详情
资源评论
收起资源包目录
STM32单片机C语言模块化编程实战:按键控制LED灯并串口打印详解与示例 (1149个子文件)
libarm_cortexM4l_math.a 2.99MB
libarm_cortexM4lf_math.a 2.95MB
iar_cortexM4b_math.a 2.83MB
iar_cortexM4l_math.a 2.82MB
iar_cortexM4bf_math.a 2.8MB
iar_cortexM4lf_math.a 2.8MB
led_key_usart_module.uvguix.Administrator 175KB
key_module.uvguix.Administrator 91KB
led_module.uvguix.Administrator 90KB
led_key_usart_module.axf 767KB
arm_linear_interp_data.c 4.12MB
arm_common_tables.c 987KB
arm_dct4_init_f32.c 809KB
arm_dct4_init_q31.c 637KB
arm_dct4_init_q15.c 494KB
arm_rfft_init_f32.c 341KB
arm_rfft_init_q31.c 326KB
transform_tests_common_data.c 273KB
arm_rfft_init_q15.c 252KB
stm32f4xx_hal_tim.c 245KB
stm32f4xx_hal_i2c.c 241KB
stm32f4xx_hal_fmpi2c.c 238KB
stm32f4xx_hal_cryp.c 235KB
stm32f4xx_hal_rcc_ex.c 155KB
stm32f4xx_hal_dfsdm.c 154KB
stm32f4xx_hal_uart.c 133KB
stm32f4xx_hal_hash.c 132KB
stm32f4xx_hal_spi.c 125KB
stm32f4xx_hal_eth.c 110KB
stm32f4xx_hal_sd.c 102KB
stm32f4xx_hal_mmc.c 102KB
stm32f4xx_hal_usart.c 102KB
stm32f4xx_hal_fmpsmbus.c 102KB
stm32f4xx_hal_qspi.c 96KB
stm32f4xx_hal_smbus.c 96KB
stm32f4xx_hal_irda.c 96KB
stm32f4xx_hal_dsi.c 89KB
stm32f4xx_hal_smartcard.c 85KB
stm32f4xx_hal_tim_ex.c 83KB
stm32f4xx_hal_sai.c 82KB
stm32f4xx_hal_can.c 81KB
stm32f4xx_hal_adc.c 78KB
stm32f4xx_hal_nand.c 77KB
stm32f4xx_hal_lptim.c 76KB
stm32f4xx_hal_dma2d.c 73KB
stm32f4xx_hal_ltdc.c 73KB
stm32f4xx_hal_i2s.c 70KB
stm32f4xx_hal_rtc.c 67KB
stm32f4xx_hal_pcd.c 64KB
filtering_test_common_data.c 64KB
stm32f4xx_ll_usb.c 63KB
stm32f4xx_hal_rtc_ex.c 61KB
stm32f4xx_ll_fmc.c 56KB
arm_cfft_radix4_q15.c 55KB
stm32f4xx_hal_spdifrx.c 54KB
stm32f4xx_ll_rcc.c 51KB
stm32f4xx_ll_sdmmc.c 51KB
stm32f4xx_hal_flash_ex.c 50KB
stm32f4xx_hal_hcd.c 49KB
stm32f4xx_hal_hash_ex.c 48KB
stm32f4xx_hal_nor.c 47KB
stm32f4xx_hal_dac.c 46KB
stm32f4xx_ll_tim.c 45KB
arm_fft_bin_data.c 43KB
arm_conv_partial_fast_q15.c 43KB
stm32f4xx_ll_adc.c 43KB
stm32f4xx_hal_rcc.c 42KB
stm32f4xx_hal_adc_ex.c 42KB
stm32f4xx_ll_fsmc.c 40KB
stm32f4xx_hal_sdram.c 40KB
stm32f4xx_hal_dma.c 40KB
arm_cfft_radix4_q31.c 39KB
stm32f4xx_hal_i2s_ex.c 39KB
arm_conv_fast_q15.c 38KB
stm32f4xx_hal_dcmi.c 38KB
arm_correlate_fast_q15.c 36KB
arm_cfft_radix4_f32.c 34KB
stm32f4xx_hal_sram.c 34KB
controller_test_common_data.c 33KB
stm32f4xx_hal_cec.c 32KB
stm32f4xx_ll_utils.c 32KB
stm32f4xx_hal_pccard.c 30KB
stm32f4xx_ll_rtc.c 30KB
arm_fir_f32.c 28KB
system_stm32f4xx.c 27KB
system_stm32f4xx.c 27KB
fir_tests.c 26KB
fast_math_tests_common_data.c 26KB
stm32f4xx_hal_rng.c 26KB
conv_tests.c 25KB
arm_conv_partial_q15.c 25KB
stm32f4xx_hal_flash.c 24KB
arm_correlate_q7.c 24KB
arm_conv_partial_q7.c 24KB
stm32f4xx_ll_spi.c 23KB
stm32f4xx_ll_dma2d.c 23KB
stm32f4xx_hal_pwr_ex.c 23KB
arm_graphic_equalizer_example_q31.c 23KB
biquad.c 23KB
arm_correlate_f32.c 22KB
共 1149 条
- 1
- 2
- 3
- 4
- 5
- 6
- 12
资源评论
jmlinux
- 粉丝: 502
- 资源: 24
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 使用C++实现的常见算法
- travel-web-springboot【程序员VIP专用】.zip
- 基于Matlab, ConvergeCase中部分2D结果文件输出至EXCEL中 能力有限,代码和功能极其简陋.zip
- java桌面小程序,主要为游戏.zip学习资源
- Java桌面-坦克大战小游戏.zip程序资源
- java语言做的魔板小游戏.zip
- 初学JAVA制作的坦克大战小游戏,使用JAVA 的GUI模拟2,5D界面.zip
- 公开整理-2024年832个国家级贫困县摘帽情况分省分年统计.xlsx
- 纯js+Jquery实现2048游戏
- 叠罗汉游戏,安卓java实现,自定义Framlayout,属性动画.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功