📄 gpio.h
字号:
/********************************************************************************
* Copyright Statement:
* --------------------
* This software is protected by Copyright and the information contained herein
* is confidential. The software may not be copied and the information
* contained herein may not be used or disclosed except with the written
* permission of INFOMAX COMMUNICATION CO.,LTD.
* * MODULE NAME: GPIO * DESCRIPTION: GPIO header file * AUTHOR: Bo-Hung Wu * BEGIN DATE: Oct. 19, 2007 * LAST MODIFICATION: *******************************************************************************/ #ifndef GPIO_H
#define GPIO_H
/******************************************************************************* Header files *******************************************************************************/#include "common_var_types.h"
#include "magic_reg_defs.h"
/******************************************************************************* Constant/Marco *******************************************************************************/#define FAST_GPIO_START 2
#define FAST_GPIO_END 4
#define GPIO_FUNC_INPUT 0#define GPIO_FUNC_OUTPUT 1#define GPIO_FUNC_EXT_INT 2#define GPIO_FUNC_LED 3
/******************************************************************************* Structure/Union/Enum/Typedef *******************************************************************************/ /******************************************************************************* Function Prototypes *******************************************************************************/ /**
@Desc
Description for function_name
@Param parameter 1
Put parameter 1 description here
@Param parameter 2
Put parameter 2 description here
@Return Return value 1 and it description
@Return Return value 1 and it description
*/
void led_on(int led_no);
void led_off(int led_no);
void toggle_led(int led_no);void gpio_init_func(UINT32 gpio_func_reg_val);
void gpio_write_io(UINT32 gpio_io_reg_val);
#endif /* #ifndef */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -