⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 salvo.h

📁 嵌入式操作系统Salvo 在单片机C8051F350上的移植
💻 H
📖 第 1 页 / 共 5 页
字号:

Will take effect only if they're not already defined in 
salvocfg.h.

**                                                         **
****                                                     ****
************************************************************/
#if !defined(OSBIG_SEMAPHORES)
#define OSBIG_SEMAPHORES                FALSE
#endif
                                        
#if !defined(OSBYTES_OF_COUNTS)            
#define OSBYTES_OF_COUNTS               0 
#endif 

#if !defined(OSBYTES_OF_DELAYS)           
#define OSBYTES_OF_DELAYS               0
#endif 

#if !defined(OSBYTES_OF_EVENT_FLAGS)
#define OSBYTES_OF_EVENT_FLAGS          1
#endif 

#if !defined(OSBYTES_OF_TICKS)
#define OSBYTES_OF_TICKS                0 
#endif 

#if !defined(OSCALL_OSCREATEEVENT)
#define OSCALL_OSCREATEEVENT            OSFROM_BACKGROUND
#endif

#if !defined(OSCALL_OSGETPRIOTASK)
#define OSCALL_OSGETPRIOTASK            OSFROM_BACKGROUND
#endif

#if !defined(OSCALL_OSGETSTATETASK)
#define OSCALL_OSGETSTATETASK           OSFROM_BACKGROUND
#endif

#if !defined(OSCALL_OSMSGQCOUNT)
#define OSCALL_OSMSGQCOUNT              OSFROM_BACKGROUND
#endif

#if !defined(OSCALL_OSMSGQEMPTY)
#define OSCALL_OSMSGQEMPTY              OSFROM_BACKGROUND
#endif

#if !defined(OSCALL_OSRETURNEVENT) 
#define OSCALL_OSRETURNEVENT            OSFROM_BACKGROUND
#endif

#if !defined(OSCALL_OSSIGNALEVENT)
#define OSCALL_OSSIGNALEVENT            OSFROM_BACKGROUND
#endif

#if !defined(OSCALL_OSSTARTTASK)
#define OSCALL_OSSTARTTASK              OSFROM_BACKGROUND
#endif

#if !defined(OSCLEAR_GLOBALS)
#define OSCLEAR_GLOBALS                 TRUE
#endif

#if !defined(OSCLEAR_UNUSED_POINTERS)
#define OSCLEAR_UNUSED_POINTERS         FALSE
#endif

#if !defined(OSCOMBINE_EVENT_SERVICES)
#define OSCOMBINE_EVENT_SERVICES        FALSE
#endif

#if !defined(OSCUSTOM_LIBRARY_CONFIG)
#define OSCUSTOM_LIBRARY_CONFIG         0
#endif

#if !defined(OSDISABLE_ERROR_CHECKING)
#define OSDISABLE_ERROR_CHECKING        FALSE
#endif

#if !defined(OSDISABLE_FAST_RESCHEDULING)
#define OSDISABLE_FAST_RESCHEDULING     FALSE
#endif

#if !defined(OSDISABLE_TASK_PRIORITIES)
#define OSDISABLE_TASK_PRIORITIES       FALSE
#endif

#if !defined(OSENABLE_BINARY_SEMAPHORES)
#define OSENABLE_BINARY_SEMAPHORES      FALSE
#endif

#if !defined(OSENABLE_BOUNDS_CHECKING)
#define OSENABLE_BOUNDS_CHECKING        FALSE
#endif

#if !defined(OSENABLE_CYCLIC_TIMERS)
#define OSENABLE_CYCLIC_TIMERS          FALSE
#endif

#if !defined(OSENABLE_EVENT_FLAGS)
#define OSENABLE_EVENT_FLAGS            FALSE
#endif

#if !defined(OSENABLE_EVENT_READING)
#define OSENABLE_EVENT_READING          FALSE
#endif

#if !defined(OSENABLE_EVENT_TRYING)
#define OSENABLE_EVENT_TRYING           FALSE
#endif

#if !defined(OSENABLE_FAST_SIGNALING)
#define OSENABLE_FAST_SIGNALING         FALSE
#endif

#if !defined(OSENABLE_IDLE_COUNTER)
#define OSENABLE_IDLE_COUNTER           FALSE
#endif

#if !defined(OSENABLE_IDLING_HOOK)
#define OSENABLE_IDLING_HOOK            FALSE
#endif

#if !defined(OSENABLE_INTERRUPT_HOOKS)
#define OSENABLE_INTERRUPT_HOOKS        FALSE
#endif

#if !defined(OSENABLE_MESSAGES)
#define OSENABLE_MESSAGES               FALSE
#endif

#if !defined(OSENABLE_MESSAGE_QUEUES)
#define OSENABLE_MESSAGE_QUEUES         FALSE
#endif

#if !defined(OSENABLE_OSSCHED_DISPATCH_HOOK)
#define OSENABLE_OSSCHED_DISPATCH_HOOK  FALSE
#endif

#if !defined(OSENABLE_OSSCHED_ENTRY_HOOK)
#define OSENABLE_OSSCHED_ENTRY_HOOK     FALSE
#endif

#if !defined(OSENABLE_OSSCHED_RETURN_HOOK)
#define OSENABLE_OSSCHED_RETURN_HOOK    FALSE
#endif

#if !defined(OSENABLE_SEMAPHORES)
#define OSENABLE_SEMAPHORES             FALSE
#endif

#if !defined(OSENABLE_STACK_CHECKING)
#define OSENABLE_STACK_CHECKING         FALSE
#endif

#if !defined(OSENABLE_TCBEXT0)
#define OSENABLE_TCBEXT0                FALSE
#endif

#if !defined(OSENABLE_TCBEXT1)
#define OSENABLE_TCBEXT1                FALSE
#endif

#if !defined(OSENABLE_TCBEXT2)
#define OSENABLE_TCBEXT2                FALSE
#endif

#if !defined(OSENABLE_TCBEXT3)
#define OSENABLE_TCBEXT3                FALSE
#endif

#if !defined(OSENABLE_TCBEXT4)
#define OSENABLE_TCBEXT4                FALSE
#endif

#if !defined(OSENABLE_TCBEXT5)
#define OSENABLE_TCBEXT5                FALSE
#endif

#if !defined(OSENABLE_TIMEOUTS)
#define OSENABLE_TIMEOUTS               FALSE
#endif

#if !defined(OSEVENT_FLAGS)
#define OSEVENT_FLAGS                   0
#endif

#if !defined(OSEVENTS)
#define OSEVENTS                        0
#endif

#if !defined(OSEVENTS_LIMIT)
#define OSEVENTS_LIMIT                  OSEVENTS
#endif

#if !defined(OSGATHER_STATISTICS)
#define OSGATHER_STATISTICS             FALSE
#endif

#if !defined(OSINTERRUPT_LEVEL)
#define OSINTERRUPT_LEVEL               0
#endif

#if !defined(OSLOGGING)
#define OSLOGGING                       FALSE
#endif

#if !defined(OSLOG_MESSAGES)
#define OSLOG_MESSAGES                  OSLOG_NONE
#endif
                                        
#if !defined(OSMAKE_LIBRARY)
#define OSMAKE_LIBRARY                  FALSE
#endif

#if !defined(OSMAX_LOST_TICKS)
#define OSMAX_LOST_TICKS                255
#endif

#if !defined(OSMESSAGE_QUEUES)
#define OSMESSAGE_QUEUES                0
#endif

#if !defined(OSOPTIMIZE_FOR_SPEED)
#define OSOPTIMIZE_FOR_SPEED            FALSE
#endif

#if !defined(OSPRESERVE_INTERRUPT_MASK)
#define OSPRESERVE_INTERRUPT_MASK       TRUE
#endif 

#if !defined(OSRPT_HIDE_INVALID_POINTERS)
#define OSRPT_HIDE_INVALID_POINTERS     TRUE
#endif

#if !defined(OSRPT_SHOW_ONLY_ACTIVE)
#define OSRPT_SHOW_ONLY_ACTIVE          TRUE
#endif

#if !defined(OSRPT_SHOW_TOTAL_DELAY)
#define OSRPT_SHOW_TOTAL_DELAY          TRUE
#endif

#if !defined(OSSET_LIMITS)
#define OSSET_LIMITS                    FALSE
#endif

#if !defined(OSSPEEDUP_QUEUEING)
#define OSSPEEDUP_QUEUEING              FALSE
#endif

#if !defined(OSTARGET)
#define OSTARGET                        OSUNDEF
#endif

#if !defined(OSTASKS)
#define OSTASKS                         0
#endif

#if !defined(OSTASKS_LIMIT)
#define OSTASKS_LIMIT                   OSTASKS
#endif

#if !defined(OSTIMER_PRESCALAR)
#define OSTIMER_PRESCALAR               0
#endif

#if !defined(OSTYPE_TCBEXT0)
#define OSTYPE_TCBEXT0                  void *
#endif 

#if !defined(OSTYPE_TCBEXT1)
#define OSTYPE_TCBEXT1                  void *
#endif 

#if !defined(OSTYPE_TCBEXT2)
#define OSTYPE_TCBEXT2                  void *
#endif

#if !defined(OSTYPE_TCBEXT3)
#define OSTYPE_TCBEXT3                  void *
#endif

#if !defined(OSTYPE_TCBEXT4)
#define OSTYPE_TCBEXT4                  void *
#endif

#if !defined(OSTYPE_TCBEXT5)
#define OSTYPE_TCBEXT5                  void *
#endif

#if !defined(OSUSE_ARRAYS)
#define OSUSE_ARRAYS                    FALSE
#endif

#if !defined(OSUSE_EVENT_TYPES)
#define OSUSE_EVENT_TYPES               TRUE
#endif

#if !defined(OSUSE_INLINE_OSSCHED)
#define OSUSE_INLINE_OSSCHED            FALSE
#endif

#if !defined(OSUSE_INLINE_OSTIMER)
#define OSUSE_INLINE_OSTIMER            FALSE
#endif

#if !defined(OSUSE_OSINSELIG_MACRO)
#define OSUSE_OSINSELIG_MACRO           TRUE
#endif    

#if !defined(OSUSE_LIBRARY)
#define OSUSE_LIBRARY                   FALSE
#endif



/************************************************************ 
****                                                     ****
**                                                         **
#include"portXyz.h":

Include the compiler- and target processor-specific items
required for your system.

**                                                         **
****                                                     ****
************************************************************/
/* undefined compiler -- was not set by user */
#if !defined(OSCOMPILER)
#define OSCOMPILER                      OSUNDEF
#endif



/* Zilog ZDSII compiler for Z8 Encore. Put this here because */
/*  of bug in v4.2 in #if ... #elif ... #else ... #endif     */
/*  statements ... but it still screws up on the #else part. */
#if (OSCOMPILER == OSZILOG_ZDSII)

#include "portez8.h"



/* Your Compiler - specific items */
#elif   (OSCOMPILER == OSUNDEF)
  
#include "portuser.h"


/* Archelon/Quadravox 430 */
#elif (OSCOMPILER == OSAQ_430)

#include "portaq430.h"


/* GNU C compiler */
#elif (OSCOMPILER == OSGCC)

#include "portgcc.h"


/* HI-TECH 8051C compiler  */
#elif (OSCOMPILER == OSHT_8051C)

#include "portht51.h"


/* HI-TECH PICC and PICC-18 */
#elif (OSCOMPILER == OSHT_PICC)

#include "portpicc.h"


/* HI-TECH V8C compiler */
#elif (OSCOMPILER == OSHT_V8C)

#include "portv8c.h"


/* IAR PICMicro C Compiler */
#elif (OSCOMPILER == OSIAR_ICC)

#if   (OSTARGET == OSAVR)
#include "portiaravr.h"
#elif (OSTARGET == OSMSP430)
#include "portiar430.h"
#elif (OSTARGET == OSPIC18)
#include "portiar18.h"
#else
#error salvo.h: Unknown target for IAR compiler.
#endif


/* ImageCraft compilers */
#elif (OSCOMPILER == OSIMAGECRAFT) 

#if   (OSTARGET == OSAVR)
#include "porticcavr.h"
#elif (OSTARGET == OSM68HC11)
#include "porticc11.h"
#elif (OSTARGET == OSMSP430)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -