davincievm_gpio.h

来自「Uart source in CCS 3.3 C5507」· C头文件 代码 · 共 40 行

H
40
字号
/*
 *  Copyright 2005 by Spectrum Digital Incorporated.
 *  All rights reserved. Property of Spectrum Digital Incorporated.
 *
 *  Not for distribution.
 */

/*
 *  GPIO header file
 *
 */

#ifndef GPIO_
#define GPIO_

#ifdef __cplusplus
extern "C" {
#endif

#include "davincievm.h"

#define GPIO_IN     1
#define GPIO_OUT    0

/* ------------------------------------------------------------------------ *
 *                                                                          *
 *  GPIO Prototypes                                                         *
 *                                                                          *
 * ------------------------------------------------------------------------ */
Int16 DAVINCIEVM_GPIO_init        ( );
Int16 DAVINCIEVM_GPIO_setDirection( Uint16 number, Uint8 direction );
Int16 DAVINCIEVM_GPIO_setOutput   ( Uint16 number, Uint8 value );
Int16 DAVINCIEVM_GPIO_getInput    ( Uint16 number );

#ifdef __cplusplus
}
#endif

#endif

⌨️ 快捷键说明

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