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

📄 bsl.h

📁 dm642_video_stream
💻 H
字号:
/*
 *  Copyright 2006 by VisionMagic Ltd.
 *  All rights reserved. Property of VisionMagic Ltd.
 */
#ifndef __DM642_BSL_INCLUDED__
#define __DM642_BSL_INCLUDED__

#ifdef __cplusplus
extern "C" {
#endif

#include <csl.h>
#include <csl_i2c.h>
#include <csl_gpio.h>

/*
 *  Note:  Bit definitions for each register field
 *         needs to be supplied here for the CPLD
 *	       and other board periperals.
 */

/* Compatability definitions */
#define NULL                 0

/* CPLD address definitions */
#define VMD642_CPLD_BASE       0x90080000

/* CPLD Register Indices */
#define VMD642_IOOUT       	0x12 //write only
#define VMD642_IOINPUT     	0x13 //read only
#define VMD642_FLASHPAGE   	0x17 //write only	

#define VMD642_FLASH_BASE          0x90000000
#define VMD642_FLASH_CTL555        (VMD642_FLASH_BASE + 0x555)
#define VMD642_FLASH_CTLAAA        (VMD642_FLASH_BASE + 0xaaa)
#define VMD642_FLASH_SECTORSIZE    0x010000
#define VMD642_FLASH_SECTORS       0x8
#define VMD642_FLASH_PAGES         0x8
#define VMD642_FLASH_PAGESIZE      0x080000
#define VMD642_FLASH_SIZE          0x400000


/* Read an 8-bit value from a CPLD register */
Uint8 VMD642_rget(Int16 regnum);

/* Write an 8-bit value to a CPLD register */
void VMD642_rset(Int16 regnum, Uint8 regval);

/* Spin in a delay loop for delay iterations */
void VMD642_wait(Uint32 delay);

/* Spin in a delay loop for delay microseconds */
void VMD642_waitusec(Uint32 delay);

void DM642_init();


#ifdef __cplusplus
}
#endif

#endif

⌨️ 快捷键说明

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