msgPtr = osal_msg_receive(Hal_TaskID);while(msgPtr) {/* Do something here - for now, just deallocate the msg and move on *//* De-allocate */osal_msg_deallocate( msgPtr );/* Next */msgPtr = osal_msg_receive( Hal_TaskID ); }returnevents ^ SYS_EVENT_MSG; }return0; } 开发者...