• 大小: 42.45MB
    文件类型: .zip
    金币: 2
    下载: 0 次
    发布日期: 2024-02-05
  • 语言: 其他
  • 标签: STM  

资源简介

STM32F030(051)C8T6最小系统资料 包括最小系统的库函数 测试例程 包括定时器 串口 等功能 硬件资料 数据或者参考手册

资源截图

代码片段和文件信息

/******************** (C) COPYRIGHT  源地工作室 ********************************
 * 文件名  :led.c
 * 描述    :LED灯引脚配置     
 * 作者    :zhuoyingxingyu
 * 淘宝    :源地工作室http://vcc-gnd.taobao.com/
 * 论坛地址:极客园地-嵌入式开发论坛http://vcc-gnd.com/
 * 版本更新: 2015-12-20
 * 硬件连接: D1->PC13;D2->PB0;D4->PB1
 * 调试方式:J-link-OB
**********************************************************************************/


//头文件
#include “led.h“

 /**
  * @file   LED_GPIO_Config
  * @brief  LED灯引脚配置
  * @param  无
  * @retval 无
  */
void LED_GPIO_Config(void)
{
//定义一个GPIO_InitTypeDef 类型的结构体
GPIO_InitTypeDef  GPIO_InitStructure;
//使能GPIOC的外设时钟
RCC_AHBPeriphClockCmd(LED1_GPIO_RCCENABLE);//使能GPIO的外设时钟

GPIO_InitStructure.GPIO_Pin =LED1_GPIO_PIN; //选择要用的GPIO引脚
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_OUT; //设置引脚为普通输出模式
GPIO_InitStructure.GPIO_OType = GPIO_OType_PP; //设置引脚为推挽输出
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_UP; //设置引脚为上拉
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;//设置引脚速度为50MHZ
GPIO_Init(LED1_GPIO_PORT &GPIO_InitStructure);//调用库函数,初始化GPIO



}

 /**
  * @file   LEDXToggle
  * @brief  LED亮灭翻转
  * @param  ledx:1--PC13;2--PB0;1--PB1
  * @retval 无
  */
void LEDXToggle(uint8_t ledx)
{
  if(ledx==1)
  {
    LED1_GPIO_PORT->ODR^=LED1_GPIO_PIN;
  }
  
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-09-13 17:46  YD-STM32F030(051)C8T6最小系统资料\
     目录           0  2017-09-13 17:49  YD-STM32F030(051)C8T6最小系统资料\文档资料\
     文件     2137455  2017-09-13 17:47  YD-STM32F030(051)C8T6最小系统资料\文档资料\DM00039193(STM32F051数据手册).pdf
     文件    14130573  2017-09-13 17:48  YD-STM32F030(051)C8T6最小系统资料\文档资料\DM00091010(STM32F030x4x6x8编程手册).pdf
     文件    23944709  2017-09-13 17:49  YD-STM32F030(051)C8T6最小系统资料\文档资料\STM32F051x Reference Manual_Chinese Version(STM32F051编程手册).pdf
     目录           0  2017-09-14 19:47  YD-STM32F030(051)C8T6最小系统资料\测试程序\
     目录           0  2016-03-18 19:51  YD-STM32F030(051)C8T6最小系统资料\测试程序\STM32F030C8T6(LED)\
     目录           0  2017-09-14 13:19  YD-STM32F030(051)C8T6最小系统资料\测试程序\STM32F030C8T6(LED)\BSP\
     文件        1452  2016-03-17 09:47  YD-STM32F030(051)C8T6最小系统资料\测试程序\STM32F030C8T6(LED)\BSP\led.c
     文件         305  2016-03-17 09:47  YD-STM32F030(051)C8T6最小系统资料\测试程序\STM32F030C8T6(LED)\BSP\led.h
     目录           0  2016-03-18 19:51  YD-STM32F030(051)C8T6最小系统资料\测试程序\STM32F030C8T6(LED)\Libraries\
     目录           0  2017-09-14 13:19  YD-STM32F030(051)C8T6最小系统资料\测试程序\STM32F030C8T6(LED)\Libraries\CMSIS\
     文件       51511  2012-03-23 12:36  YD-STM32F030(051)C8T6最小系统资料\测试程序\STM32F030C8T6(LED)\Libraries\CMSIS\CMSIS END USER LICENCE AGREEMENT.pdf
     目录           0  2017-09-14 13:19  YD-STM32F030(051)C8T6最小系统资料\测试程序\STM32F030C8T6(LED)\Libraries\CMSIS\Include\
     文件        4676  2014-01-16 23:23  YD-STM32F030(051)C8T6最小系统资料\测试程序\STM32F030C8T6(LED)\Libraries\CMSIS\Include\arm_common_tables.h
     文件        3666  2014-01-16 23:23  YD-STM32F030(051)C8T6最小系统资料\测试程序\STM32F030C8T6(LED)\Libraries\CMSIS\Include\arm_const_structs.h
     文件      242444  2014-01-16 23:23  YD-STM32F030(051)C8T6最小系统资料\测试程序\STM32F030C8T6(LED)\Libraries\CMSIS\Include\arm_math.h
     文件       33042  2014-01-16 23:23  YD-STM32F030(051)C8T6最小系统资料\测试程序\STM32F030C8T6(LED)\Libraries\CMSIS\Include\core_cm0.h
     文件       40429  2014-01-16 23:23  YD-STM32F030(051)C8T6最小系统资料\测试程序\STM32F030C8T6(LED)\Libraries\CMSIS\Include\core_cm0plus.h
     文件       99832  2014-01-16 23:23  YD-STM32F030(051)C8T6最小系统资料\测试程序\STM32F030C8T6(LED)\Libraries\CMSIS\Include\core_cm3.h
     文件      109142  2014-01-16 23:23  YD-STM32F030(051)C8T6最小系统资料\测试程序\STM32F030C8T6(LED)\Libraries\CMSIS\Include\core_cm4.h
     文件       22735  2014-01-16 23:23  YD-STM32F030(051)C8T6最小系统资料\测试程序\STM32F030C8T6(LED)\Libraries\CMSIS\Include\core_cm4_simd.h
     文件       17146  2014-01-16 23:23  YD-STM32F030(051)C8T6最小系统资料\测试程序\STM32F030C8T6(LED)\Libraries\CMSIS\Include\core_cmFunc.h
     文件       20513  2014-01-16 23:23  YD-STM32F030(051)C8T6最小系统资料\测试程序\STM32F030C8T6(LED)\Libraries\CMSIS\Include\core_cmInstr.h
     文件       41744  2014-01-16 23:23  YD-STM32F030(051)C8T6最小系统资料\测试程序\STM32F030C8T6(LED)\Libraries\CMSIS\Include\core_sc000.h
     文件       98211  2014-01-16 23:23  YD-STM32F030(051)C8T6最小系统资料\测试程序\STM32F030C8T6(LED)\Libraries\CMSIS\Include\core_sc300.h
     文件        1370  2012-03-23 12:36  YD-STM32F030(051)C8T6最小系统资料\测试程序\STM32F030C8T6(LED)\Libraries\CMSIS\README.txt
     目录           0  2016-03-18 19:51  YD-STM32F030(051)C8T6最小系统资料\测试程序\STM32F030C8T6(LED)\Libraries\CMSIS\ST\
     目录           0  2017-09-14 13:19  YD-STM32F030(051)C8T6最小系统资料\测试程序\STM32F030C8T6(LED)\Libraries\CMSIS\ST\STM32F0xx\
     目录           0  2017-09-14 13:19  YD-STM32F030(051)C8T6最小系统资料\测试程序\STM32F030C8T6(LED)\Libraries\CMSIS\ST\STM32F0xx\Include\
     文件      409949  2014-01-16 23:27  YD-STM32F030(051)C8T6最小系统资料\测试程序\STM32F030C8T6(LED)\Libraries\CMSIS\ST\STM32F0xx\Include\stm32f0xx.h
............此处省略1289个文件信息

评论

共有 条评论