📄 os_ints.lst
字号:
40 =2 #pragma RESTORE
41 =2
42 =2 #endif
43 =2
18 =1 #include <string.h>
1 =2 /*--------------------------------------------------------------------------
2 =2 STRING.H
3 =2
4 =2 String functions.
5 =2 Copyright (c) 1988-2002 Keil Elektronik GmbH and Keil Software, Inc.
6 =2 All rights reserved.
7 =2 --------------------------------------------------------------------------*/
8 =2
9 =2 #ifndef __STRING_H__
10 =2 #define __STRING_H__
11 =2
12 =2 #ifndef _SIZE_T
=2 #define _SIZE_T
=2 typedef unsigned int size_t;
C51 COMPILER V7.50 OS_INTS 12/23/2004 09:42:17 PAGE 5
=2 #endif
16 =2
17 =2 #ifndef NULL
=2 #define NULL ((void *) 0L)
=2 #endif
20 =2
21 =2 #pragma SAVE
22 =2 #pragma REGPARMS
23 =2 extern char *strcat (char *s1, char *s2);
24 =2 extern char *strncat (char *s1, char *s2, int n);
25 =2
26 =2 extern char strcmp (char *s1, char *s2);
27 =2 extern char strncmp (char *s1, char *s2, int n);
28 =2
29 =2 extern char *strcpy (char *s1, char *s2);
30 =2 extern char *strncpy (char *s1, char *s2, int n);
31 =2
32 =2 extern int strlen (char *);
33 =2
34 =2 extern char *strchr (const char *s, char c);
35 =2 extern int strpos (const char *s, char c);
36 =2 extern char *strrchr (const char *s, char c);
37 =2 extern int strrpos (const char *s, char c);
38 =2
39 =2 extern int strspn (char *s, char *set);
40 =2 extern int strcspn (char *s, char *set);
41 =2 extern char *strpbrk (char *s, char *set);
42 =2 extern char *strrpbrk (char *s, char *set);
43 =2 extern char *strstr (char *s, char *sub);
44 =2 extern char *strtok (char *str, const char *set);
45 =2
46 =2 extern char memcmp (void *s1, void *s2, int n);
47 =2 extern void *memcpy (void *s1, void *s2, int n);
48 =2 extern void *memchr (void *s, char val, int n);
49 =2 extern void *memccpy (void *s1, void *s2, char val, int n);
50 =2 extern void *memmove (void *s1, void *s2, int n);
51 =2 extern void *memset (void *s, char val, int n);
52 =2 #pragma RESTORE
53 =2
54 =2 #endif
19 =1 #include <ctype.h>
1 =2 /*--------------------------------------------------------------------------
2 =2 CTYPE.H
3 =2
4 =2 Prototypes for character functions.
5 =2 Copyright (c) 1988-2002 Keil Elektronik GmbH and Keil Software, Inc.
6 =2 All rights reserved.
7 =2 --------------------------------------------------------------------------*/
8 =2
9 =2 #ifndef __CTYPE_H__
10 =2 #define __CTYPE_H__
11 =2
12 =2 #pragma SAVE
13 =2 #pragma REGPARMS
14 =2 extern bit isalpha (unsigned char);
15 =2 extern bit isalnum (unsigned char);
16 =2 extern bit iscntrl (unsigned char);
17 =2 extern bit isdigit (unsigned char);
18 =2 extern bit isgraph (unsigned char);
19 =2 extern bit isprint (unsigned char);
20 =2 extern bit ispunct (unsigned char);
21 =2 extern bit islower (unsigned char);
C51 COMPILER V7.50 OS_INTS 12/23/2004 09:42:17 PAGE 6
22 =2 extern bit isupper (unsigned char);
23 =2 extern bit isspace (unsigned char);
24 =2 extern bit isxdigit (unsigned char);
25 =2 extern unsigned char tolower (unsigned char);
26 =2 extern unsigned char toupper (unsigned char);
27 =2 extern unsigned char toint (unsigned char);
28 =2
29 =2 #define _tolower(c) ( (c)-'A'+'a' )
30 =2 #define _toupper(c) ( (c)-'a'+'A' )
31 =2 #define toascii(c) ( (c) & 0x7F )
32 =2 #pragma RESTORE
33 =2
34 =2 #endif
20 =1 #include <stdlib.h>
1 =2 /*--------------------------------------------------------------------------
2 =2 STDLIB.H
3 =2
4 =2 Standard functions.
5 =2 Copyright (c) 1988-2002 Keil Elektronik GmbH and Keil Software, Inc.
6 =2 All rights reserved.
7 =2 --------------------------------------------------------------------------*/
8 =2
9 =2 #ifndef __STDLIB_H__
10 =2 #define __STDLIB_H__
11 =2
12 =2 #ifndef _SIZE_T
=2 #define _SIZE_T
=2 typedef unsigned int size_t;
=2 #endif
16 =2
17 =2 #ifndef NULL
=2 #define NULL ((void *) 0L)
=2 #endif
20 =2
21 =2 #ifndef _WCHAR_T_DEFINED_
22 =2 #define _WCHAR_T_DEFINED_
23 =2 typedef char wchar_t;
24 =2 #endif
25 =2
26 =2
27 =2 #pragma SAVE
28 =2 #pragma REGPARMS
29 =2
30 =2 extern int abs (int val);
31 =2 extern long labs (long val);
32 =2
33 =2 extern float atof (char *s1);
34 =2 extern long atol (char *s1);
35 =2 extern int atoi (char *s1);
36 =2 extern int rand ();
37 =2 extern void srand (int);
38 =2
39 =2 extern float strtod (char *, char **);
40 =2 extern long strtol (char *, char **, unsigned char);
41 =2 extern unsigned long strtoul (char *, char **, unsigned char);
42 =2
43 =2 #define _MALLOC_MEM_ xdata
44 =2
45 =2 extern int init_mempool (void _MALLOC_MEM_ *p, unsigned int size);
46 =2 extern void _MALLOC_MEM_ *malloc (unsigned int size);
47 =2 extern void free (void _MALLOC_MEM_ *p);
48 =2 extern void _MALLOC_MEM_ *realloc (void _MALLOC_MEM_ *p, unsigned int size);
C51 COMPILER V7.50 OS_INTS 12/23/2004 09:42:17 PAGE 7
49 =2 extern void _MALLOC_MEM_ *calloc (unsigned int size, unsigned int len);
50 =2
51 =2 #pragma RESTORE
52 =2
53 =2 #endif
21 =1 #include <setjmp.h>
1 =2 /*--------------------------------------------------------------------------
2 =2 SETJMP.H
3 =2
4 =2 Prototypes for longjmp facility.
5 =2 Copyright (c) 1988-2003 Keil Elektronik GmbH and Keil Software, Inc.
6 =2 All rights reserved.
7 =2 --------------------------------------------------------------------------*/
8 =2
9 =2 /* define the buffer type for holding the state information */
10 =2 #ifndef __SETJMP_H__
11 =2 #define __SETJMP_H__
12 =2
13 =2 #ifdef __CX51__
=2 #define _JBLEN 9 /* SP, SPE, ?C_XBP, ?C_IBP, ?C_PBP, RET-ADDR */
=2 #else
16 =2 #define _JBLEN 7 /* RET-ADDR, ?C_XBP, ?C_IBP, ?C_PBP, SP */
17 =2 /* for Dallas 390: RET-ADDR, ?C_XBP, ?C_IBP, PCX, SP */
18 =2 #endif
19 =2
20 =2 typedef char jmp_buf[_JBLEN];
21 =2
22 =2 /* function prototypes */
23 =2 extern int setjmp (jmp_buf);
24 =2 extern void longjmp (jmp_buf, int);
25 =2 #endif
26 =2
22 =1
23 =1 #include "os_cfg.h"
1 =2 /*
2 =2 **********************************************************************************************************
-*********
3 =2 * uC/OS-II
4 =2 * The Real-Time Kernel
5 =2 *
6 =2 * (c) Copyright 1992-2002, Jean J. Labrosse, Weston, FL
7 =2 * All Rights Reserved
8 =2 *
9 =2 * uC/OS-II Configuration File for V2.60
10 =2 *
11 =2 * File : OS_CFG.H
12 =2 * By : Jean J. Labrosse
13 =2 **********************************************************************************************************
-*********
14 =2 */
15 =2 #ifndef OS_CFG_H
16 =2 #define OS_CFG_H
17 =2
18 =2 /* --------------------- SYSTEM CONFIG ------------------
------- */
19 =2 /* Defines the lowest priority that can be assigned ...
- */
20 =2 #define OS_LOWEST_PRIO 16 /* ... MUST NEVER be higher than 63!
- */
21 =2 #define OS_MAX_TASKS 8 /* Max. number of tasks in your application, MUST be >= 2
- */
22 =2 #define TaskStkSize 64 /* Stack size of each task
C51 COMPILER V7.50 OS_INTS 12/23/2004 09:42:17 PAGE 8
- */
23 =2
24 =2
25 =2 /* ------------------- TASK COMMUNICATION ---------------
------- */
26 =2 #define OS_EVENT_NAME_SIZE 0 /* Determine the size of the name of a Sem, Mutex, Mbox o
-r Q */
27 =2 #define OS_MAX_EVENTS 8 /* Max. number of event control blocks in your applicatio
-n */
28 =2
29 =2 /* ----------------------- EVENT FLAGS ------------------
------- */
30 =2 typedef unsigned int OS_FLAGS; /* Date type for event flag bits (8, 16 or 32 bits)
- */
31 =2 #define OS_FLAG_NAME_SIZE 0 /* Determine the size of the name of an event flag gr
-oup */
32 =2 #define OS_MAX_FLAGS 0 /* Max. number of Event Flag Groups in your applicatio
-n */
33 =2 #define OS_FLAG_EN 0 /* Enable (1) or Disable (0) code generation for EVENT FL
-AGS */
34 =2 #define OS_FLAG_WAIT_CLR_EN 0 /* Include code for Wait on Clear EVENT FLAGS
- */
35 =2 #define OS_FLAG_ACCEPT_EN 0 /* Include code for OSFlagAccept()
- */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -