📄 config.h
字号:
/*
********************************************************
// Copyright (c)2003,2004 Ark Pioneer Microelectronics Ltd.,
// All Rights Reserved
//
// Filename:config.h
// Version:1.0
// Created:2004.01.12 By: Philip
*********************************************************
*/
#ifndef _CONFIG_H_
#define _CONFIG_H_
#ifndef __GNUC__
#define __asm__ asm
#define __inline__ inline
#define __const__ const
#endif
// data types
typedef unsigned char BYTE;
typedef unsigned short HWORD; //half-word
typedef unsigned long WORD;
typedef long long DWORD;
typedef unsigned long BOOLEAN; // 2004.08.16, philip add
#ifndef VOID
#define VOID void
#endif
typedef WORD address_t;
typedef void *PVOID; // 2004.08.24, philip add
typedef BYTE *PBYTE;
typedef WORD *PWORD;
// 2004.08.26, philip add
// for MIPS address transfer
#define K1BASE 0xa0000000
#define log2phy(a) ((void *)(((WORD)(a)) & 0x1fffffff))
#define phy2k1(a) ((void *)(((WORD)(a)) | K1BASE))
#define k02k1(a) ((void *)(((WORD)(a)) | K1BASE))
// Standard constants
#undef FALSE
#undef TRUE
#undef NULL
#define FALSE 0
#define TRUE 1
#define NULL 0
#define bmBIT0 0x01
#define bmBIT1 0x02
#define bmBIT2 0x04
#define bmBIT3 0x08
#define bmBIT4 0x10
#define bmBIT5 0x20
#define bmBIT6 0x40
#define bmBIT7 0x80
#define bmBIT8 0x0100
#define bmBIT9 0x0200
#define bmBIT10 0x0400
#define bmBIT11 0x0800
#define bmBIT12 0x1000
#define bmBIT13 0x2000
#define bmBIT14 0x4000
#define bmBIT15 0x8000
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -