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

📄 os_cpu_c.lst

📁 ucOS 模拟环境
💻 LST
📖 第 1 页 / 共 5 页
字号:
H8S,H8/300 SERIES C/C++ COMPILER (V.6.01.02.003)   28-Mar-2008 19:31:40 PAGE   1

************ SOURCE LISTING ************

      Line Pi 0----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+--
FILE NAME: E:\Study\ucOS-II\ucOS-II\PLATFORM\CPU\os_cpu_c.c
         1     /*
         2     *********************************************************************************************************
         3     *                                               uC/OS-II
         4     *                                        The Real-Time Kernel
         5     *
         6     *                            (c) Copyright 2003, Micrium, Inc., Weston, FL
         7     *                                          All Rights Reserved
         8     *
         9     *                                         H8/300  Specific code
        10     *
        11     * File         : OS_CPU_C.C
        12     * By           : Jean J. Labrosse
        13     *********************************************************************************************************
        14     */
        15     
        16     #define  OS_CPU_GLOBALS
        17     //#include <ucos_ii.h>
        18     #include "includes.h"
FILE NAME: E:\Study\ucOS-II\ucOS-II\PLATFORM\Public\includes.h
         1     /*
         2     *********************************************************************************************************
         3     *                                               uC/OS-II
         4     *                                        The Real-Time Kernel
         5     *
         6     *                            (c) Copyright 2003, Micrium, Inc., Weston, FL
         7     *                                          All Rights Reserved
         8     *
         9     *                                       H8-300 Master Include File
        10     *
        11     * File : INCLUDES.H
        12     * By   : Jean J. Labrosse
        13     *********************************************************************************************************
        14     */
        15     
        16     /*
        17     *******************************************************************************
        18     *                       C STANDARD LIBRARY INCLUDE FILES
        19     *******************************************************************************
        20     */
        21     
        22     #include  <stdio.h>
FILE NAME: c:\hew3\tools\renesas\h8\6_1_2\include\stdio.h
         1     /*--------------------------------------------------------------------*/
         2     /* H8S,H8/300 SERIES C/C++ Compiler V.6.01                            */
         3     /* Copyright (C) 1994,2003 Renesas Technology Corp. and               */
         4     /*               Renesas Solutions Corp.                              */
         5     /* Copyright (C) 2000,2003 Hitachi, Ltd.                              */
         6     /* All rights reserved.                                               */
         7     /*--------------------------------------------------------------------*/
         8     
         9     #ifndef _STDIO_H
        10     #define _STDIO_H
        11     
        12     #include <stddef.h>
FILE NAME: c:\hew3\tools\renesas\h8\6_1_2\include\stddef.h
         1     /*-----------------------------------------------------------------------*/
         2     /* H8S,H8/300 SERIES C/C++ Compiler Ver. 6.0                             */
         3     /* Copyright (C) 1994,2002, Renesas Technology Corp.                     */
         4     /* All Rights Reserved.                                                  */
         5     /*-----------------------------------------------------------------------*/
         6     
         7     #ifndef _STDDEF_H
         8     #define _STDDEF_H
         9     
        10  E  #if 2 == 4
        11 X   #ifndef _PTRDIFF_T
        12 X   #define _PTRDIFF_T
        13 X   typedef long ptrdiff_t;
        14 X   #endif
        15 X   #ifndef _SIZE_T
        16 X   #define _SIZE_T
        17 X   typedef unsigned long size_t;
        18 X   #endif
        19     #else /* __DATA_ADDRESS_SIZE__ == 2 */
        20     #ifndef _PTRDIFF_T
        21     #define _PTRDIFF_T
        22     typedef int ptrdiff_t;
        23     #endif
        24     #ifndef _SIZE_T
        25     #define _SIZE_T
        26     typedef unsigned int size_t;
        27     #endif
        28     #endif
        29     
        30     #ifndef NULL
        31     #ifdef __cplusplus
        32 X   #define NULL 0
        33     #else
        34     #define NULL ((void *)0)
        35     #endif
        36     #endif
        37     
        38     #ifndef offsetof
        39  E  #define offsetof(type,id) ((char *)(&(((type *)NULL)->id))  -                               (char *)((type *)NULL))
        41     #endif
        42     
        43     #ifdef __cplusplus
        44 X   extern "C" {
        45     #endif
        46     
        47     #ifndef errno
        48     #ifdef _REENTRANT
        49 X   extern int *errno_addr(void);
        50 X   #define errno (*errno_addr())
        51     #else
        52     extern volatile int _errno;
        53     #define errno _errno
        54     #endif
        55     #endif
        56     
        57     #ifdef __cplusplus
        58 X   }
        59     #endif
        60     
        61     #endif /* _STDDEF_H */
FILE NAME: c:\hew3\tools\renesas\h8\6_1_2\include\stdio.h
        13     
        14     #ifndef _NFILE
        15     #define _NFILE _nfiles
        16     
        17     #define FOPEN_MAX _nfiles
        18     
        19     extern const int _nfiles;
        20     #pragma pack 2
        21     extern struct _iobuf {
        22            unsigned char *_bufptr;          /* buffer pointer             */
        23                     long  _bufcnt;          /* buffer count               */
        24            unsigned char *_bufbase;         /* buffer base pointer        */
        25                     long  _buflen;          /* buffer length              */
        26                     char  _ioflag1;         /* I/O control flag 1         */
        27                     char  _ioflag2;         /* I/O control flag 2         */
        28                     char  _iofd;
        29                     char  reserve;
        30     }  _iob[];
        31     #pragma unpack
        32     
        33     
        34     typedef struct _iobuf  FILE;            /* define FILE of file-stream */
        35     
        36                                          /* define function of prototype  */
        37     #ifdef __cplusplus
        38 X   extern "C" {
        39     #endif
        40     
        41     #ifndef errno
        42 X   #ifdef _REENTRANT
        43 X   extern int *errno_addr(void);
        44 X   #define errno (*errno_addr())
        45 X   #else
        46 X   extern volatile int _errno;
        47 X   #define errno _errno
        48 X   #endif
        49     #endif
        50     
        51     extern int     _fillbuf(FILE*);
        52     extern int     _flshbuf(int,FILE*);
        53     extern int     fclose(FILE *);
        54     extern int     fflush(FILE *);
        55     extern FILE   *fopen(const char *, const char *);
        56     extern FILE   *freopen(const char *, const char *, FILE *);
        57     extern void    setbuf(FILE *, char *);
        58     extern int     setvbuf(FILE *, char *, int, size_t);
        59     extern int     fprintf(FILE *, const char *, ...);
        60     extern int     fscanf(FILE *, const char *, ...);
        61     extern int     printf(const char * ,...);
        62     extern int     scanf(const char * ,...);
        63     extern int     sprintf(char *, const char * ,...);
        64     extern int     sscanf(const char *, const char * ,...);
        65     extern int     vfprintf(FILE *, const char *, char *);
        66     extern int     vprintf(const char *, char *);
        67     extern int     vsprintf(char *, const char *, char *);
        68     extern int     fgetc(FILE *);
        69     extern char   *fgets(char *, int, FILE *);
        70     extern int     fputc(int , FILE *);
        71     extern int     fputs(const char *, FILE *);
        72     extern int     getc(FILE *);
        73     extern int     getchar(void);
        74     extern char   *gets(char *);
        75     extern int     putc(int, FILE *);
        76     extern int     putchar(int);
        77     extern int     puts(const char *);
        78     extern int     ungetc(int, FILE *);
        79     extern size_t  fread(void *, size_t, size_t, FILE *);
        80     extern size_t  fwrite(const void *, size_t, size_t, FILE *);
        81     extern int     fseek(FILE *, long int, int);
        82     extern long    ftell(FILE *);
        83     extern void    rewind(FILE *);
        84     extern void    clearerr(FILE *);
        85     extern int     feof(FILE *);
        86     extern int     ferror(FILE *);
        87     extern void    perror(const char *);
        88     #ifdef __cplusplus
        89 X   }
        90     #endif
        91     
        92     #define _IOFBF 1                   /* define _IOFBF of full buffering */
        93     #define _IOLBF 2                   /* define _IOLBF of line buffering */
        94     #define _IONBF 3                   /* define _IONBF of non buffering  */
        95     
        96     #define SEEK_SET 0                      /* allocate top position */
        97     #define SEEK_CUR 1                      /* allocate current position */
        98     #define SEEK_END 2                      /* allocate bottom position */
        99     
       100     #define BUFSIZ 512                      /* default buffer size */
       101     
       102                                             /* error number define */
       103     #ifndef EBADF
       104     #define EBADF  1302                     /* I/O operation error */
       105     #endif
       106     #ifndef PTRERR
       107     #define PTRERR 1106                     /* fp null */
       108     #endif
       109     #ifndef ECSPEC
       110     #define ECSPEC 1304                     /* format err */
       111     #endif
       112     #ifndef NOTOPN
       113     #define NOTOPN 1300                     /* file not open */
       114     #endif
       115     
       116     #ifndef EMALRESM
       117     #define EMALRESM 2100                   /* malloc semaphore reserve error */

⌨️ 快捷键说明

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