附件地址:http://deershare.com/recv/982136 取件码:982136
[code]
#ifndef FREERTOS_CONFIG_H
#define FREERTOS_CONFIG_H
#include "hc32f030.h"
/* Ensure stdint is only used by the compiler, and not the assembler. */
#if defined(__ICCARM__) || defined(__CC_ARM) || defined(__GNUC__)
#include <stdint.h>
extern uint32_t SystemCoreClock;
#endif
#define configUSE_PREEMPTION 1//��ռʽ����������
#define configUSE_IDLE_HOOK 0//���������Ӻ���
#define configUSE_TICK_HOOK 0//ʱ��Ƭ���Ӻ���
#define configCPU_CLOCK_HZ ( SystemCoreClock )//CPU��Ƶ
#define configTICK_RATE_HZ ( ( TickType_t ) 1000 )//RTOS����Ƶ�� ��1����жϴ���
#define configMAX_PRIORITIES ( 5 )//��ʹ�õ�������ȼ�
#define configMINIMAL_STACK_SIZE ( ( unsigned short ) 64 )//�����������ʹ�õĶ�ջ��С
#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 6*1024 ) )//RTOS�ں��ܼƿ��õ���Ч��RAM��С
#define configMAX_TASK_NAME_LEN ( 12 )//�������� |