bsl.h
来自「dm642_video_stream」· C头文件 代码 · 共 63 行
H
63 行
/*
* 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 + =
减小字号Ctrl + -
显示快捷键?