📄 bm8024.h
字号:
#ifndef _BM8024_H_
#define _BM8024_H_
#ifndef U8
#define U8 unsigned char
#endif
#ifndef U16
#define U16 unsigned short
#endif
#ifndef U32
#define U32 unsigned int
#endif
#ifndef S8
#define S8 signed char
#endif
#ifndef S16
#define S16 signed short
#endif
#ifndef S32
#define S32 signed int
#endif
#ifndef UCHAR
#define UCHAR unsigned char
#endif
#ifndef UINT8
#define UINT8 unsigned char
#endif
#ifndef UINT16
#define UINT16 unsigned short
#endif
#ifndef UINT32
#define UINT32 unsigned int
#endif
#ifndef INT8
#define INT8 signed char
#endif
#ifndef INT16
#define INT16 signed short
#endif
#ifndef INT32
#define INT32 signed int
#endif
/*
* generic defination
*/
#define LLSB(x) ((x) & 0xff) /* 32bit word byte/word swap macros */
#define LNLSB(x) (((x) >> 8) & 0xff)
#define LNMSB(x) (((x) >> 16) & 0xff)
#define LMSB(x) (((x) >> 24) & 0xff)
#define LONGSWAP(x) ((LLSB(x) << 24) | (LNLSB(x) << 16) | (LNMSB(x) << 8) | (LMSB(x)))
/*
* bm8024 defination
*/
#define DUMP_PORT 0x1F /**/
#define PORT_CPU_SPECIFY 0
#define PORT_ARL_SEARCH 1
#define MAX_PORTS 26
/*
* bm8024 function
*/
#define BM8024_BASE_ADDR 0x80000000
#define BM8024_REG_LEN 0x1FF
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -