• 大小: 632KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-08
  • 语言: 其他
  • 标签: stm32  

资源简介

stm32f30x + rt-thread nano版。操作系统占用资源极少。

资源截图

代码片段和文件信息

/*
 * File      : application.c
 * This file is part of RT-Thread RTOS
 * COPYRIGHT (C) 2006 RT-Thread Development Team
 *
 * The license and distribution terms for this file may be
 * found in the file LICENSE in this distribution or at
 * http://www.rt-thread.org/license/LICENSE
 *
 * Change Logs:
 * Date           Author       Notes
 * 2009-01-05     Bernard      the first version
 * 2014-04-27     Bernard      make code cleanup. 
 */

#include 
#include 

#include “usart.h“

#ifdef RT_USING_GDB
#include 
#endif

void rt_init_thread_entry(void* parameter)
{
    //rt_device_t dev3 = rt_device_find(“uart3“);
    //rt_device_open(dev3 RT_DEVICE_OFLAG_RDWR | RT_DEVICE_FLAG_STREAM | RT_DEVICE_FLAG_INT_RX);
    //rt_device_set_rx_indicate(dev3 uartx_rx_ind);
    
    //inv_pwm_init();
    //hall_timer_init();
    //protocol.call_back = 0;
    //console_services_init();
    //doorctrl_application_init();
}

int rt_application_init()
{
    rt_thread_t tid;

    tid = rt_thread_create(“init“
        rt_init_thread_entry RT_NULL
        2048 3 20);

    if (tid != RT_NULL)
        rt_thread_startup(tid);

    return 0;
}

#include “finsh.h“
long test_finsh(void)
{
    rt_kprintf(“this is a test of finsh\r\n“);
    return 0;
}
FINSH_FUNCTION_EXPORT(test_finsh test finsh);


/*@}*/

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       1336  2017-12-21 17:18  bsp\stm32f30x\applications\application.c

     文件       2764  2017-12-21 17:00  bsp\stm32f30x\applications\startup.c

     文件       2435  2017-12-21 17:18  bsp\stm32f30x\drivers\board.c

     文件       1958  2017-12-21 17:11  bsp\stm32f30x\drivers\board.h

     文件       3421  2015-08-13 00:53  bsp\stm32f30x\drivers\stm32f30x_conf.h

     文件       3670  2016-09-08 13:01  bsp\stm32f30x\drivers\stm32f30x_it.c

     文件       2250  2015-08-13 00:53  bsp\stm32f30x\drivers\stm32f30x_it.h

     文件      11147  2017-12-21 16:59  bsp\stm32f30x\drivers\usart.c

     文件        528  2017-12-09 11:29  bsp\stm32f30x\drivers\usart.h

     文件       7251  2015-07-08 19:30  bsp\stm32f30x\Libraries\CMSIS\Include\arm_common_tables.h

     文件       3940  2015-07-08 19:30  bsp\stm32f30x\Libraries\CMSIS\Include\arm_const_structs.h

     文件     251190  2015-07-08 19:30  bsp\stm32f30x\Libraries\CMSIS\Include\arm_math.h

     文件      34051  2015-07-08 19:30  bsp\stm32f30x\Libraries\CMSIS\Include\core_cm0.h

     文件      41438  2015-07-08 19:30  bsp\stm32f30x\Libraries\CMSIS\Include\core_cm0plus.h

     文件     100475  2015-07-08 19:30  bsp\stm32f30x\Libraries\CMSIS\Include\core_cm3.h

     文件     109951  2015-07-08 19:30  bsp\stm32f30x\Libraries\CMSIS\Include\core_cm4.h

     文件     130351  2015-07-08 19:30  bsp\stm32f30x\Libraries\CMSIS\Include\core_cm7.h

     文件      17427  2015-07-08 19:30  bsp\stm32f30x\Libraries\CMSIS\Include\core_cmFunc.h

     文件      26854  2015-07-08 19:30  bsp\stm32f30x\Libraries\CMSIS\Include\core_cmInstr.h

     文件      22948  2015-07-08 19:30  bsp\stm32f30x\Libraries\CMSIS\Include\core_cmSimd.h

     文件      42756  2015-07-08 19:30  bsp\stm32f30x\Libraries\CMSIS\Include\core_sc000.h

     文件      99227  2015-07-08 19:30  bsp\stm32f30x\Libraries\CMSIS\Include\core_sc300.h

     文件     726626  2015-07-08 19:34  bsp\stm32f30x\Libraries\CMSIS\ST\STM32F30x\Include\stm32f30x.h

     文件       2208  2015-07-08 19:34  bsp\stm32f30x\Libraries\CMSIS\ST\STM32F30x\Include\system_stm32f30x.h

     文件      24343  2015-07-08 19:34  bsp\stm32f30x\Libraries\CMSIS\ST\STM32F30x\Release_Notes.html

     文件      23799  2015-07-08 19:34  bsp\stm32f30x\Libraries\CMSIS\ST\STM32F30x\Source\Templates\arm\startup_stm32f302x8.s

     文件      26346  2016-09-12 12:01  bsp\stm32f30x\Libraries\CMSIS\ST\STM32F30x\Source\Templates\arm\startup_stm32f303xc.s

     文件      27310  2015-07-08 19:34  bsp\stm32f30x\Libraries\CMSIS\ST\STM32F30x\Source\Templates\arm\startup_stm32f303xe.s

     文件      26339  2015-07-08 19:34  bsp\stm32f30x\Libraries\CMSIS\ST\STM32F30x\Source\Templates\arm\startup_stm32f30x.s

     文件      22159  2015-07-08 19:34  bsp\stm32f30x\Libraries\CMSIS\ST\STM32F30x\Source\Templates\arm\startup_stm32f334x8.s

............此处省略130个文件信息

评论

共有 条评论