• 大小: 830KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-05-25
  • 语言: 其他
  • 标签: FreeRTOS  AVR  

资源简介

FreeRTOS在AVR上的移植 AVR8位单片机 FreeRTOS选10.0.1 AVR开发环境选ATMEL Stdio 7

资源截图

代码片段和文件信息

/*
 * demo_mega128.c
 *
 * Created: 2017/11/15 星期三 16:40:01
 *  Author: Administrator
 */ 

#include 
#include 
#include “FreeRTOS.h“
#include “task.h“
#include “cfg.h“
#include “macromcu.h“

void vTaskCode1( void * pvParameters )
{
  const portTickType xDelay = 500 / portTICK_RATE_MS;
  for( ;; )
  {
    vTaskDelay( xDelay );
    LED1_On();
LED2_Off();
  }
}

void vTaskCode2( void * pvParameters )
{
  const portTickType xDelay = 800 / portTICK_RATE_MS;
  for( ;; )
  {
    vTaskDelay( xDelay );
    LED2_On();
LED1_Off();
  }
}

int main(void)
{
    LED1_Init();
LED2_Init();

    xTaskCreate( vTaskCode1 “TASK1“ configMINIMAL_STACK_SIZE NULL 1 NULL );
xTaskCreate( vTaskCode2 “TASK2“ configMINIMAL_STACK_SIZE NULL 2 NULL );

    vTaskStartScheduler();

    while(1);

    return 0;
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-05-02 18:47  freertos10.0.1_as\
     文件         329  2015-01-07 08:42  freertos10.0.1_as\cfg.h
     目录           0  2018-05-02 18:41  freertos10.0.1_as\demo_ATmega\
     目录           0  2018-05-02 18:41  freertos10.0.1_as\demo_ATmega\.vs\
     目录           0  2018-05-02 18:41  freertos10.0.1_as\demo_ATmega\.vs\demo_ATmega\
     目录           0  2018-05-02 18:41  freertos10.0.1_as\demo_ATmega\.vs\demo_ATmega\v14\
     文件       76288  2018-05-03 10:35  freertos10.0.1_as\demo_ATmega\.vs\demo_ATmega\v14\.atsuo
     目录           0  2018-05-02 18:41  freertos10.0.1_as\demo_ATmega\demo_ATmega\
     文件         901  2017-11-15 18:02  freertos10.0.1_as\demo_ATmega\demo_ATmega.atsln
     文件       18944  2017-11-15 18:41  freertos10.0.1_as\demo_ATmega\demo_ATmega.atsuo
     目录           0  2018-05-03 10:16  freertos10.0.1_as\demo_ATmega\demo_ATmega\APPFiles\
     文件         890  2018-05-03 10:34  freertos10.0.1_as\demo_ATmega\demo_ATmega\APPFiles\main.c
     目录           0  2018-05-03 10:34  freertos10.0.1_as\demo_ATmega\demo_ATmega\Debug\
     目录           0  2018-05-03 10:34  freertos10.0.1_as\demo_ATmega\demo_ATmega\Debug\APPFiles\
     文件        3781  2018-05-03 10:34  freertos10.0.1_as\demo_ATmega\demo_ATmega\Debug\APPFiles\main.d
     文件        5184  2018-05-03 10:34  freertos10.0.1_as\demo_ATmega\demo_ATmega\Debug\APPFiles\main.o
     文件          13  2018-05-03 10:34  freertos10.0.1_as\demo_ATmega\demo_ATmega\Debug\demo_ATmega.eep
     文件       43008  2018-05-03 10:34  freertos10.0.1_as\demo_ATmega\demo_ATmega\Debug\demo_ATmega.elf
     文件        9026  2018-05-03 10:34  freertos10.0.1_as\demo_ATmega\demo_ATmega\Debug\demo_ATmega.hex
     文件       66971  2018-05-03 10:34  freertos10.0.1_as\demo_ATmega\demo_ATmega\Debug\demo_ATmega.lss
     文件       41207  2018-05-03 10:34  freertos10.0.1_as\demo_ATmega\demo_ATmega\Debug\demo_ATmega.map
     文件        8868  2018-05-03 10:34  freertos10.0.1_as\demo_ATmega\demo_ATmega\Debug\demo_ATmega.srec
     目录           0  2018-05-02 09:09  freertos10.0.1_as\demo_ATmega\demo_ATmega\Debug\HeaderFiles\
     目录           0  2018-05-03 10:34  freertos10.0.1_as\demo_ATmega\demo_ATmega\Debug\KernelFiles\
     文件        3576  2018-05-03 10:34  freertos10.0.1_as\demo_ATmega\demo_ATmega\Debug\KernelFiles\croutine.d
     文件       17704  2018-05-03 10:34  freertos10.0.1_as\demo_ATmega\demo_ATmega\Debug\KernelFiles\croutine.o
     文件        4074  2018-05-03 10:34  freertos10.0.1_as\demo_ATmega\demo_ATmega\Debug\KernelFiles\event_groups.d
     文件       22744  2018-05-03 10:34  freertos10.0.1_as\demo_ATmega\demo_ATmega\Debug\KernelFiles\event_groups.o
     文件        3676  2018-05-03 10:34  freertos10.0.1_as\demo_ATmega\demo_ATmega\Debug\KernelFiles\heap_1.d
     文件        6648  2018-05-03 10:34  freertos10.0.1_as\demo_ATmega\demo_ATmega\Debug\KernelFiles\heap_1.o
     文件        3582  2018-05-03 10:34  freertos10.0.1_as\demo_ATmega\demo_ATmega\Debug\KernelFiles\list.d
............此处省略75个文件信息

评论

共有 条评论