EC600U_esp32_iap_uart/peripheral/inc/gpio_demo.h

51 lines
1.3 KiB
C
Raw Normal View History

2024-02-05 17:39:56 +08:00
/*=================================================================
EDIT HISTORY FOR MODULE
This section contains comments describing changes made to the module.
Notice that changes are listed in reverse chronological order.
WHEN WHO WHAT, WHERE, WHY
------------ ------- -------------------------------------------------------------------------------
=================================================================*/
#ifndef _GPIODEMO_H
#define _GPIODEMO_H
#include "ql_gpio.h"
#ifdef __cplusplus
extern "C" {
#endif
/*===========================================================================
* Macro Definition
===========================================================================*/
/*===========================================================================
* Struct
===========================================================================*/
typedef struct
{
ql_GpioNum gpio_num;
ql_GpioDir gpio_dir;
ql_PullMode gpio_pull; //for input only
ql_LvlMode gpio_lvl; //for output only
} ql_gpio_cfg;
/*===========================================================================
* Functions declaration
===========================================================================*/
void ql_gpio_app_init(void);
#ifdef __cplusplus
} /*"C" */
#endif
#endif /* _GPIODEMO_H */