davincihd_dip.h
来自「用于dm6467 开发平台的uboot源码」· C头文件 代码 · 共 53 行
H
53 行
/*
* Copyright 2007 by Spectrum Digital Incorporated.
* All rights reserved. Property of Spectrum Digital Incorporated.
*/
/*
* DIP Switch header file
*
*/
#ifndef DIP_
#define DIP_
#ifdef __cplusplus
extern "C" {
#endif
#include "davincihd.h"
#include "davincihd_gpio.h"
#include "davincihd_i2c_gpio.h"
/* ------------------------------------------------------------------------ *
* Definitions *
* ------------------------------------------------------------------------ */
#define DIP_0 0
#define DIP_1 1
#define DIP_2 2
#define DIP_3 3
/* ------------------------------------------------------------------------ *
* Switch Settings *
* ------------------------------------------------------------------------ */
#define DIP_DOWN 0 // DIP switch is DOWN
#define DIP_UP 1 // DIP switch is UP
/* ------------------------------------------------------------------------ *
* I2C Address *
* ------------------------------------------------------------------------ */
#define DIP_I2C_ADDR I2C_GPIO_GROUP_0
/* ------------------------------------------------------------------------ *
* Prototypes *
* ------------------------------------------------------------------------ */
Int16 DAVINCIHD_DIP_init( );
Int16 DAVINCIHD_DIP_get ( Int32 dip_num );
Int16 DAVINCIHD_DIP_wait( Int32 timeout );
#ifdef __cplusplus
}
#endif
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?