56 lines
1.4 KiB
C
56 lines
1.4 KiB
C
|
/*
|
|||
|
**********************************************************************************************************************
|
|||
|
*
|
|||
|
* the Embedded Secure Bootloader System
|
|||
|
*
|
|||
|
*
|
|||
|
* Copyright(C), 2006-2014, Allwinnertech Co., Ltd.
|
|||
|
* All Rights Reserved
|
|||
|
*
|
|||
|
* File :
|
|||
|
*
|
|||
|
* By :
|
|||
|
*
|
|||
|
* Version : V2.00
|
|||
|
*
|
|||
|
* Date :
|
|||
|
*
|
|||
|
* Descript:
|
|||
|
**********************************************************************************************************************
|
|||
|
*/
|
|||
|
|
|||
|
#ifndef __GPIO_H__
|
|||
|
#define __GPIO_H__
|
|||
|
|
|||
|
#include "type_def.h"
|
|||
|
//ͨ<>õģ<C3B5><C4A3><EFBFBD>GPIO<49><4F><EFBFBD>ص<EFBFBD><D8B5><EFBFBD><EFBFBD>ݽṹ
|
|||
|
typedef struct _normal_gpio_cfg
|
|||
|
{
|
|||
|
unsigned char port; //<2F>˿ں<CBBF>
|
|||
|
unsigned char port_num; //<2F>˿<EFBFBD><CBBF>ڱ<EFBFBD><DAB1><EFBFBD>
|
|||
|
char mul_sel; //<2F><><EFBFBD>ܱ<EFBFBD><DCB1><EFBFBD>
|
|||
|
char pull; //<2F><><EFBFBD><EFBFBD>״̬
|
|||
|
char drv_level; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
char data; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƽ
|
|||
|
unsigned char reserved[2]; //<2F><><EFBFBD><EFBFBD>λ<EFBFBD><CEBB><EFBFBD><EFBFBD>֤<EFBFBD><D6A4><EFBFBD><EFBFBD>
|
|||
|
}
|
|||
|
normal_gpio_cfg;
|
|||
|
|
|||
|
typedef struct _special_gpio_cfg
|
|||
|
{
|
|||
|
unsigned char port; //<2F>˿ں<CBBF>
|
|||
|
unsigned char port_num; //<2F>˿<EFBFBD><CBBF>ڱ<EFBFBD><DAB1><EFBFBD>
|
|||
|
char mul_sel; //<2F><><EFBFBD>ܱ<EFBFBD><DCB1><EFBFBD>
|
|||
|
char data; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƽ
|
|||
|
}special_gpio_cfg;
|
|||
|
|
|||
|
typedef struct _simple_gpio_cfg
|
|||
|
{
|
|||
|
char port;
|
|||
|
char port_num;
|
|||
|
}
|
|||
|
simple_gpio_cfg;
|
|||
|
|
|||
|
|
|||
|
#endif /* #ifndef __GPIO_H__ */
|