basetype.h

来自「realtime RTOS NEW」· C头文件 代码 · 共 51 行

H
51
字号
/*
===============================================================================
| Copyright (C) 2004 RuanHaiShen, All rights reserved.
| SUMMARY: 
|   Base types for this architecture.
|
| DESCRIPTION:
|   See http://www.01s.org for documentation, latest information, license 
|   and contact details.
|   email:ruanhaishen@01s.org
=============================================================================*/
#ifndef __basetype_h__
#define __basetype_h__
/*===========================================================================*/


/*---------------------------------------------------------------------------*/
/* characterize the architecture system                                      */

/* the processor data width                                                  */

#define ARCH_CPU_BITS       8


/* stack growing direction: UPWARDS   -from low-memory to high-memory        */
/*                          DOWNWARDS -from high-memory to low-memory        */

#define ARCH_STACK_GROW     UPWARDS


/* data storage in memory:  LITTLE_ENDIAN -data storage as little-endian     */
/*                          BIG_ENDIAN    -data storage as big-endian        */

#define ARCH_MM_BYTEORDER   BIG_ENDIAN


/* basetype */

#define __arch_u8       char
#define __arch_u16      short
#define __arch_u32      long
#define __arch_u64      long long

#define __sp            char idata *
#define __const_        code
#define __p_            data

/*===========================================================================*/
#endif

⌨️ 快捷键说明

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