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

📄 rtkgener.hec

📁 这是用Labwindows开发的一个RF test程序。 用于日本机种的组装后ANT 测试。
💻 HEC
字号:
/******************************************************************************/
/* SCCS: %Z% Name: %M% Date US: %G% %U% Ver.: %I% */
/******************************************************************************/
/*F(*************************************************************************** 
 * File name : rtkgener.hec
 * Project : RTKGENER
 * Module : RTK-E (Real Time Kernel)
 * Date : (US) %G% %U%
 * Version : %I%
 * Compiler name and release(s) :
 *----------------------------------------------------------------------------* 
 *----------------------------------------------------------------------------* 
 *                                    DESCRIPTION
 * System external constants
 *----------------------------------------------------------------------------* 
 *----------------------------------------------------------------------------* 
 *                           FUNCTIONS DEFINED IN THIS FILE
 *----------------------------------------------------------------------------* 
 * Name | Object
 *----------------------------------------------------------------------------* 
 * 
 *----------------------------------------------------------------------------* 
 *----------------------------------------------------------------------------* 
 *                                    EVOLUTION
 *----------------------------------------------------------------------------* 
 * Date     | Author     | Arnb | Description
 *----------------------------------------------------------------------------* 
 * 07/07/97 | J.Thomas   |      | Creation from 'RTK-RR17.1.12' for rtke
 *----------------------------------------------------------------------------*
 * 12/10/97 | S.L        |      | User Events Implementation
 *----------------------------------------------------------------------------*
 * 17/05/00 | J.C.Trotin |      | Add external constants for the dynamic memory
 *          |            |      | management
 *----------------------------------------------------------------------------*
 * 23/11/00 | J.M.Royon  |      | Add external constants Trap/ NoTrap 
 *          |            |      | for the dynamic memory realloc function
 *          |            |      | Add define error code for return in a task
 *          |            |      | RTK_RETURN_IN_TASK
 *----------------------------------------------------------------------------*
 * 16/01/01 | J.M.Royon  |      | Add define error code RTK_TASK_EXIT
 *----------------------------------------------------------------------------*
 * 18/04/01 | J.C.Trotin |      | Remove constant RTK_RETURN_IN_TASK (never
 *          |            |      | used). Consequently, the constant RTK_TASK_EXIT
 *          |            |      | is set to 0x06
 ***************************************************************************)F*/
/* #*/

#ifndef RTKGENER_HEC
#define RTKGENER_HEC

/******************************************************************************/
/******************************************************************************/
/**            - START - ERROR CODES DEFINITION AREA                         **/
/******************************************************************************/
/******************************************************************************/

/* OK value
------------*/
/* Value kept for historical reasons */
#define RTK_OK                               0x0A

/*.Codes which are called in only one service                        */
/* error code stucture: 0x file number (4bits) error number (4 bits) */
/*-------------------------------------------------------------------*/
#define RTK_EXPIRED_OR_NOT_USED_TIMER        0x00

#define RTK_BAD_PROCESS_NAME                 0x01
#define RTK_INVALID_INSTANCE                 0x02
#define RTK_INSTANCE_OVERFLOW                0x03
#define RTK_BAD_OBJECT_TYPE		     0x04
#define RTK_REPLACE_PROCESS_ILLEGAL_USE      0x05
#define RTK_TASK_EXIT	 		     0x06

/* WARNING: Value is used in assembly file rtk07swi.asm */
/* #define RTK_STACK_OVERFLOW		     0x15 	*/

#define RTK_WAIT_IN_REGION                   0x21
#define RTK_BAD_EVENT                        0x22

/* WARNING: Values also declared in assembly file rtk07swi.asm */
#define RTK_COUNTER_OVERFLOW                 0x31  
#define RTK_COUNTER_UNDERFLOW                0x32

#define RTK_UNIT_NOAVAIL                     0x41
#define RTK_BAD_SEM_NUMBER                   0x42
#define RTK_SEM_OVERFLOW                     0x43
#define RTK_SEM_UNDERFLOW                    0x44
#define RTK_SEM_NOT_FREE                     0x45  
#define RTK_SEM_BAD_VAL                      0x46  
#define RTK_NO_FREE_ENV                      0x47
#define RTK_UNIT_AVAIL                     0x48

#define RTK_POOL_ID_ERROR                    0x51
#define RTK_OUT_OF_MEMORY                    0x52
#define RTK_DESTROYED_MEMORY                 0x53
#define RTK_NULL_PTR_RELEASE                 0x54
#define RTK_MEMORY_SIZE_ERROR                0x55
#define RTK_RELEASE_USED_CLUSTER	     0x56
#define RTK_BAD_MEMORY_ADDRESS               0x57

#define RTK_OBJECT_OVERFLOW                  0x61

#define RTK_NO_MESSAGE                       0x71
#define RTK_QUEUE_EMPTY                      0x72
#define RTK_QUEUE_USED_CLUSTER		     0x73

#define RTK_TIMER_NOT_FOUND                  0x81
#define RTK_NULL_USED_TIMER_QUEUE            0x83
#define RTK_BAD_UPDATING_TIMER_VALUE         0x84
#define RTK_NO_TIMER_AVAIL                   0x85
#define RTK_BAD_TIMER_NAME                   0x86
#define RTK_CLEAR_TIMER_NOT_FOUND            0x87
#define RTK_BAD_EXTRACTION_TIMER             0x88
#define RTK_BAD_PRECISION                    0x89

#define RTK_BAD_TASK_NUMBER                  0x91
#define RTK_TASK_PRIO_ALREADY_EXIST          0x92

#define RTK_BAD_LIBRARY_VERSION              0xA1

/* Codes which are called in several services
----------------------------------------------*/
#define RTK_NON_ALLOWED_OPBGT                0xF1
#define RTK_BAD_MAILBOX_NUMBER               0xF2

/******************************************************************************/
/******************************************************************************/
/**              - END - ERROR CODES DEFINITION AREA                         **/
/******************************************************************************/
/******************************************************************************/

/* RTK-E debug level
---------------------*/
#define RTK_DEBUG_LEVEL_NONE           0
#define RTK_DEBUG_LEVEL_RTK_DEBUG      1
#define RTK_DEBUG_LEVEL_CLUSTER_DEBUG  2

/* MAX parameters
------------------*/
#define RTK_MIN_SEM_VALUE              -255
#define RTK_MAX_REGION_COUNT           255    /* NB interrupt pending */

/* Received messages
---------------------*/
#define RTK_OBJ_MESSAGE                      0x00   /* Do not change this value */
#define RTK_OBJ_TIMER                        0x01   /* Do not change this value */
#define RTK_OBJ_USER_EVENT                   0xFF
#define RTK_OBJ_MASK                         0x01

/* Background task
-------------------*/
#define RTK_BACK_GROUND_TASK                 0x00
#define RTK_BACK_GROUND_PRIO                 0x00

/*---------------*/
/* Task states   */
/*---------------*/

#define RTK_STATE_INIT  	(1<<0)
#define RTK_STATE_START 	(1<<1)
#define RTK_STATE_STOP		(1<<2)
#define RTK_STATE_SUSPEND	(1<<3)
#define RTK_STATE_WAIT_EVT	(1<<4)

#define RTK_STATE_ACTIVABLE	(RTK_STATE_INIT | RTK_STATE_START)

/* Task State constants
------------------------*/
/* #define RTK_NON_SIGNIFICANT                  0x00
#define RTK_NON_OPERATIONNAL                 0x01
#define RTK_READY                            0x02
#define RTK_ACTIVE                           0x03
#define RTK_SUSPENDED                        0x04
#define RTK_WAIT_SEMAPHOR                    0x05
#define RTK_WAIT_MAIL_BOX                    0x06
#define RTK_STOP                             0x07 */
 
/* Object parameters
---------------------*/
#define RTK_OBJ_TASK                   183
#define RTK_OBJ_QUEUE                  184
#define RTK_FREE_ENVELOP               190

/* Version Number
------------------*/
#define  RTK_VERSION_EDITION            0x0000
 
/* Timer constant
------------------*/
#define RTK_SLEEP_NO_CONSTRAINT         0xFFFFFFFF

/* Dynamic pool constants
--------------------------*/
#define RTK_POOL_TRAP          		0x0000
#define RTK_POOL_NO_TRAP      		0x8000
#define RTK_DYN_BLOCK_MIN_SIZE		12

#define RTK_REALLOC_NO_TRAP          	0
#define RTK_REALLOC_TRAP          	1
 
/* Other Parameters
--------------------*/
#define RTK_NULL_POINTER                0L
#define RTK_NONSIGNIFICANT_OBJECT       195
#define RTK_FREE_CLUSTER		~0

/* Exception handler blocking parameter values 
-----------------------------------------------*/ 
#define RTK_NOT_BLOCKED  	0
#define RTK_BLOCKED 		1

/* Acces to different queues of a mailbox */
#define RTK_NORMAL_QUEUE_MAILBOX	1
#define RTK_MEMORISED_QUEUE_MAILBOX	2
#define RTK_ALL_QUEUE_MAILBOX		3

/* Interrupt references */
#define RTK_INTERRUPT_STACK 		0xff

/* Cluster debug mailbox counting */
#define RTK_ENABLE_MAX_MBX_COUNTERS		0
#define RTK_ENABLE_CLEAR_MAX_MBX_COUNTERS	1

#endif /* RTKGENER_HEC */

⌨️ 快捷键说明

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