stm32f103c8t6移植RT-Thread 之建立工程


RT-Thread入门(一)建立工程 stm32f103c8 + hal库 Keil不需要安装rtt插件,代码中包含所需的库文件。
资源截图
代码片段和文件信息
#include “led.h“

//初始化PB1为输出.并使能时钟     
//LED IO初始化
void LED_Init(void)
{
    GPIO_InitTypeDef GPIO_Initure;

    __HAL_RCC_GPIOC_CLK_ENABLE();            //开启GPIOB时钟
__HAL_RCC_GPIOE_CLK_ENABLE();            //开启GPIOE时钟

    GPIO_Initure.Pin=GPIO_PIN_13;  //PB5
    GPIO_Initure.Mode=GPIO_MODE_OUTPUT_PP;   //推挽输出
    GPIO_Initure.Pull=GPIO_PULLUP;           //上拉
    GPIO_Initure.Speed=GPIO_SPEED_HIGH;       //高速
    HAL_GPIO_Init(GPIOC&GPIO_Initure);

// GPIO_Initure.Pin=GPIO_PIN_5|GPIO_PIN_6;  //PE5 PE6
// HAL_GPIO_Init(GPIOE&GPIO_Initure);

    HAL_GPIO_WritePin(GPIOCGPIO_PIN_13GPIO_PIN_SET); //PB5置1,默认初始化后灯灭
//    HAL_GPIO_WritePin(GPIOEGPIO_PIN_5|GPIO_PIN_6GPIO_PIN_SET); //PE5置1,默认初始化后灯灭
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-01-20 17:58  RT-Thread_C8
     目录           0  2019-01-21 10:49  RT-Thread_C8applications
     文件         794  2019-01-21 10:16  RT-Thread_C8applicationsled.c
     文件         160  2019-01-21 10:16  RT-Thread_C8applicationsled.h
     文件         622  2019-01-21 10:49  RT-Thread_C8applicationsmain.c
     文件         237  2018-05-31 17:47  RT-Thread_C8applicationsSConscript
     文件        2553  2017-05-24 16:15  RT-Thread_C8applicationssys.c
     文件        3660  2017-05-24 16:19  RT-Thread_C8applicationssys.h
     目录           0  2019-01-20 15:49  RT-Thread_C8components
     目录           0  2019-01-20 15:49  RT-Thread_C8componentsCMSIS
     目录           0  2019-01-20 15:49  RT-Thread_C8componentsCMSISInclude
     文件        4676  2018-05-31 17:47  RT-Thread_C8componentsCMSISIncludearm_common_tables.h
     文件      242444  2018-05-31 17:47  RT-Thread_C8componentsCMSISIncludearm_math.h
     文件       33042  2018-05-31 17:47  RT-Thread_C8componentsCMSISIncludecore_cm0.h
     文件       40429  2018-05-31 17:47  RT-Thread_C8componentsCMSISIncludecore_cm0plus.h
     文件       99832  2018-05-31 17:47  RT-Thread_C8componentsCMSISIncludecore_cm3.h
     文件      109142  2018-05-31 17:47  RT-Thread_C8componentsCMSISIncludecore_cm4.h
     文件       22735  2018-05-31 17:47  RT-Thread_C8componentsCMSISIncludecore_cm4_simd.h
     文件       17146  2018-05-31 17:47  RT-Thread_C8componentsCMSISIncludecore_cmFunc.h
     文件       20513  2018-05-31 17:47  RT-Thread_C8componentsCMSISIncludecore_cmInstr.h
     文件       41744  2018-05-31 17:47  RT-Thread_C8componentsCMSISIncludecore_sc000.h
     文件       98211  2018-05-31 17:47  RT-Thread_C8componentsCMSISIncludecore_sc300.h
     文件         441  2018-05-31 17:47  RT-Thread_C8componentsCMSISKconfig
     文件        1516  2018-05-31 17:47  RT-Thread_C8componentsCMSISREADME.txt
     目录           0  2019-01-20 15:49  RT-Thread_C8componentsCMSISRTOS
     文件       36836  2018-05-31 17:47  RT-Thread_C8componentsCMSISRTOScmsis_os.h
     文件        8532  2018-05-31 17:47  RT-Thread_C8componentsCMSISRTOScmsis_rtthread.c
     文件         201  2018-05-31 17:47  RT-Thread_C8componentsCMSISRTOSSConscript
     文件         312  2018-05-31 17:47  RT-Thread_C8componentsCMSISSConscript
     目录           0  2019-01-20 15:49  RT-Thread_C8componentscplusplus
     文件        1404  2018-05-31 17:47  RT-Thread_C8componentscpluspluscrt.cpp
............此处省略2894个文件信息

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

发表评论

评论列表(条)