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

📄 flash8.h

📁 umon bootloader source code, support mips cpu.
💻 H
字号:
#define	ftype					volatile unsigned char
#define Write_aa_to_555()		(*(ftype *)(fdev->base+(0x5555<<0)) = 0xaa)
#define Write_55_to_2aa()		(*(ftype *)(fdev->base+(0x2aaa<<0)) = 0x55)
#define Write_80_to_555()		(*(ftype *)(fdev->base+(0x5555<<0)) = 0x80)
#define Write_a0_to_555()		(*(ftype *)(fdev->base+(0x5555<<0)) = 0xa0)
#define Write_f0_to_555()		(*(ftype *)(fdev->base+(0x5555<<0)) = 0xf0)
#define Write_90_to_555()		(*(ftype *)(fdev->base+(0x5555<<0)) = 0x90)
#define Write_30_to_(add)		(*(ftype *)add = 0x30)
#define Read_0000()				(*(ftype *)(fdev->base+(0x0000<<0)))
#define Read_0001()				(*(ftype *)(fdev->base+(0x0001<<0)))
#define Read_5555()				(*(ftype *)(fdev->base+(0x5555<<0)))
#define Is_ff(add)				(*(ftype *)add == 0xff)
#define Is_not_ff(add)			(*(ftype *)add != 0xff)
#define D5_Timeout(add)			((*(ftype *)add & 0x20) != 0)
#define D7_not_set(add)			((*(ftype *)add & 0x80) == 0)
#define	NotAligned(ptr)	    	0

#define Is_D7_Equal(add,src)		\
		((*(ftype *)add & 0x80) == (*(ftype *)src & 0x80))
#define Is_D7_Not_Equal(add,src)	\
	    ((*(ftype *)add & 0x80) != (*(ftype *)src & 0x80))

⌨️ 快捷键说明

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