Matlab自动生成STM32F103C8T6代码_代码及模型


MatlabR2016b Simulink 自动生成 STM32F103C8T6代码例子,让PC13(LED引脚) 按TIM1的1HZ周期闪烁,这是模型及代码部分
资源截图
代码片段和文件信息
/**
  ******************************************************************************
  * @file    system_stm32f1xx.c
  * @author  MCD Application Team
  * @version V4.2.0
  * @date    31-March-2017
  * @brief   CMSIS Cortex-M3 Device Peripheral Access layer System Source File.
  * 
  * 1.  This file provides two functions and one global variable to be called from 
  *     user application:
  *      - SystemInit(): Setups the system clock (System clock source PLL Multiplier
  *                      factors AHB/APBx prescalers and Flash settings). 
  *                      This function is called at startup just after reset and 
  *                      before branch to main program. This call is made inside
  *                      the “startup_stm32f1xx_xx.s“ file.
  *
  *      - SystemCoreClock variable: Contains the core clock (HCLK) it can be used
  *                                  by the user application to setup the SysTick 
  *                                  timer or configure other parameters.
  *                                     
  *      - SystemCoreClockUpdate(): Updates the variable SystemCoreClock and must
  *                                 be called whenever the core clock is changed
  *                                 during program execution.
  *
  * 2. After each device reset the HSI (8 MHz) is used as system clock source.
  *    Then SystemInit() function is called in “startup_stm32f1xx_xx.s“ file to
  *    configure the system clock before to branch to main program.
  *
  * 4. The default value of HSE crystal is set to 8 MHz (or 25 MHz depending on
  *    the product used) refer to “HSE_VALUE“. 
  *    When HSE is used as system clock source directly or through PLL and you
  *    are using different crystal you have to adapt the HSE value to your own
  *    configuration.
  *        
  ******************************************************************************
  * @attention
  *
  * 

© COPYRIGHT(c) 2017 STMicroelectronics


  *
  * Redistribution and use in source and binary forms with or without modification
  * are permitted provided that the following conditions are met:
  *   1. Redistributions of source code must retain the above copyright notice
  *      this list of conditions and the following disclaimer.
  *   2. Redistributions in binary form must reproduce the above copyright notice
  *      this list of conditions and the following disclaimer in the documentation
  *      and/or other materials provided with the distribution.
  *   3. Neither the name of STMicroelectronics nor the names of its contributors
  *      may be used to endorse or promote products derived from this software
  *      without specific prior written permission.
  *
  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS“
  * AND ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT LIMITED TO THE
  * IMPLIED WARRANTIE

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-12-12 13:11  blink1
     文件         233  2017-12-12 13:10  blink1.extSettings
     文件          22  2017-12-12 13:08  blink1.getVersionscript
     文件        3800  2017-12-12 13:11  blink1.mxproject
     文件          77  2017-12-12 13:10  blink1.script
     目录           0  2017-12-11 10:07  blink1Drivers
     目录           0  2017-12-11 10:07  blink1DriversCMSIS
     目录           0  2017-12-11 10:07  blink1DriversCMSISDSP_Lib
     目录           0  2017-12-11 10:07  blink1DriversCMSISDSP_LibSource
     目录           0  2017-12-11 10:07  blink1DriversCMSISDSP_LibSourceBasicMathFunctions
     文件        5114  2017-12-08 12:27  blink1DriversCMSISDSP_LibSourceBasicMathFunctionsarm_abs_f32.c
     文件        5458  2017-12-08 12:27  blink1DriversCMSISDSP_LibSourceBasicMathFunctionsarm_abs_q15.c
     文件        4431  2017-12-08 12:27  blink1DriversCMSISDSP_LibSourceBasicMathFunctionsarm_abs_q31.c
     文件        5090  2017-12-08 12:27  blink1DriversCMSISDSP_LibSourceBasicMathFunctionsarm_abs_q7.c
     文件        4891  2017-12-08 12:27  blink1DriversCMSISDSP_LibSourceBasicMathFunctionsarm_add_f32.c
     文件        4423  2017-12-08 12:27  blink1DriversCMSISDSP_LibSourceBasicMathFunctionsarm_add_q15.c
     文件        4553  2017-12-08 12:27  blink1DriversCMSISDSP_LibSourceBasicMathFunctionsarm_add_q31.c
     文件        4226  2017-12-08 12:27  blink1DriversCMSISDSP_LibSourceBasicMathFunctionsarm_add_q7.c
     文件        4613  2017-12-08 12:27  blink1DriversCMSISDSP_LibSourceBasicMathFunctionsarm_dot_prod_f32.c
     文件        4912  2017-12-08 12:27  blink1DriversCMSISDSP_LibSourceBasicMathFunctionsarm_dot_prod_q15.c
     文件        5000  2017-12-08 12:27  blink1DriversCMSISDSP_LibSourceBasicMathFunctionsarm_dot_prod_q31.c
     文件        5408  2017-12-08 12:27  blink1DriversCMSISDSP_LibSourceBasicMathFunctionsarm_dot_prod_q7.c
     文件        5582  2017-12-08 12:27  blink1DriversCMSISDSP_LibSourceBasicMathFunctionsarm_mult_f32.c
     文件        5306  2017-12-08 12:27  blink1DriversCMSISDSP_LibSourceBasicMathFunctionsarm_mult_q15.c
     文件        5201  2017-12-08 12:27  blink1DriversCMSISDSP_LibSourceBasicMathFunctionsarm_mult_q31.c
     文件        4530  2017-12-08 12:27  blink1DriversCMSISDSP_LibSourceBasicMathFunctionsarm_mult_q7.c
     文件        4574  2017-12-08 12:27  blink1DriversCMSISDSP_LibSourceBasicMathFunctionsarm_negate_f32.c
     文件        4621  2017-12-08 12:27  blink1DriversCMSISDSP_LibSourceBasicMathFunctionsarm_negate_q15.c
     文件        4178  2017-12-08 12:27  blink1DriversCMSISDSP_LibSourceBasicMathFunctionsarm_negate_q31.c
     文件        4104  2017-12-08 12:27  blink1DriversCMSISDSP_LibSourceBasicMathFunctionsarm_negate_q7.c
     文件        5095  2017-12-08 12:27  blink1DriversCMSISDSP_LibSourceBasicMathFunctionsarm_offset_f32.c
............此处省略682个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)