00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #include "..\inc\includes.h"
00011 #include "..\tasks\task_includes.h"
00012 #include "..\os_core\os_includes.h"
00013
00014 void F_IrdaTask(void) LargeReentrant;
00015 void F_IrdaTaskInit(void) LargeReentrant;
00016
00017 void F_IrdaTaskInit(void) LargeReentrant{}
00018 void F_IrdaTask(void) LargeReentrant{
00019 INT8U i=0;
00020
00021 F_IrdaTaskInit();
00022 while(1){
00023 if(F_IrdaCheckKeyInBuffer()==IRDA_KEY_BUFFER_EMPTY){
00024 #if(ENABLE_TASK_LEVEL_CSW==1)
00025 OS_ENTER_CRITICAL();
00026 OsCoreScheduler();
00027 OS_EXIT_CRITICAL();
00028 #endif
00029 }
00030 i=F_IrdaGetKey();
00031 if(i==0x80){
00032 LcmChar[47]='8';
00033 LcmChar[48]='0';
00034 F_MotorDirectionSet(1);
00035 }
00036 else if(i==0x40){
00037 LcmChar[47]='4';
00038 LcmChar[48]='0';
00039 F_MotorDirectionSet(0);
00040 }
00041 }
00042 }