cnmutil.h
来自「PEAKAUDIO用于EV2板的MCU控制源码」· C头文件 代码 · 共 44 行
H
44 行
/*************************************************************************
CNMUtil.h
This is the CobraNet Module manufacturing test utilities include file.
It includes defines related to the 8051 on the evaluation board.
Copyright (C) 2001-2004 by Cirrus Logic Inc. All Rights Reserved
*************************************************************************/
#ifndef CNMUtil_h
#define CNMUtil_h
#define mFPGA_INIT P1_BITS.B0 //xilinx configuration init control
#define mFPGA_PROG P1_BITS.B1 //xilinx configuration program control
#define mHEX_DATA_OUT P1_BITS.B3 //data going to the hex shift register
#define mHEX_CLOCK P1_BITS.B4 //used to clock the hex shift register
#define mHEX_SHIFT P1_BITS.B5 //load or shift the hex shift register
#define mHEX_DATA_IN P1_BITS.B6 //hex data from the hex shift register
#define mRS232 P1_BITS.B7 //selects output out of A/D
#define cUPDATE_HEX 1
#define cNO_UPDATE_HEX 0
#define cRESET 1
#define cNO_RESET 0
#define cFPGA_LOC_ptr 0x8800 //FPGA programming location
#define cFPGA_START_ptr 0xC000 //start of Xilinx data in Flash memory
#define cNUM_XBYTES 0x3EBC //number of bytes to program
#define cSYSNAME_LOC_ptr 0x100300 //pointer to MIB variable sysNAME
#define cSYS_NAME_LEN 24 //length of default system name
extern void waiting( unsigned short delay1, unsigned char delay2 );
extern unsigned short get_hex_switches( unsigned char update_hex );
extern void load_FPGA( void );
extern void set_sysname( void );
extern void set_syshex( unsigned short syshex_int );
extern void check_hex( void );
extern unsigned short swapBytes( unsigned short the_short );
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?