mirror of
https://github.com/taubel/sdk-ameba-v4.0b-gcc.git
synced 2026-07-11 22:05:41 +00:00
initial commit
This commit is contained in:
commit
60a7afcc83
2528 changed files with 1001987 additions and 0 deletions
105
component/soc/realtek/8711b/fwlib/include/rtl8710b_pinmap.h
Normal file
105
component/soc/realtek/8711b/fwlib/include/rtl8710b_pinmap.h
Normal file
|
|
@ -0,0 +1,105 @@
|
|||
/**
|
||||
******************************************************************************
|
||||
* @file rtl8710b_pinmap.h
|
||||
* @author
|
||||
* @version V1.0.0
|
||||
* @date 2016-05-17
|
||||
* @brief This file provides firmware functions to manage the following
|
||||
* functionalities of pin control:
|
||||
* - pinmux
|
||||
* - active pad pull up & pull down
|
||||
* - sleep pad pull up & pull down
|
||||
******************************************************************************
|
||||
* @attention
|
||||
*
|
||||
* This module is a confidential and proprietary property of RealTek and
|
||||
* possession or use of this module requires written permission of RealTek.
|
||||
*
|
||||
* Copyright(c) 2015, Realtek Semiconductor Corporation. All rights reserved.
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
#ifndef _RTL8710B_PINMAP_H_
|
||||
#define _RTL8710B_PINMAP_H_
|
||||
|
||||
/** @addtogroup AmebaZ_Platform
|
||||
* @{
|
||||
*/
|
||||
|
||||
/** @defgroup PIN
|
||||
* @brief PIN driver modules
|
||||
* @{
|
||||
*/
|
||||
|
||||
/** @defgroup PINMAP
|
||||
* @brief PINMAP driver modules
|
||||
* @{
|
||||
*/
|
||||
|
||||
/** @addtogroup PINMAP
|
||||
* @verbatim
|
||||
*****************************************************************************************
|
||||
* PINMAP
|
||||
*****************************************************************************************
|
||||
* you can use pinmap to config pinmux instead of Pinmux_Config function
|
||||
* you can use pinmap to config GPIO pull high/low status for power save when enter power save mode
|
||||
*****************************************************************************************
|
||||
* How To Use
|
||||
*****************************************************************************************
|
||||
* -1) ENABLE MACRO: CONFIG_PINMAP_ENABLE
|
||||
* -2) Set all pins function in pmap_func based on your board
|
||||
* -3) Bootloader will call PMAP_Init, then all pinmux will be set based on pmap_func
|
||||
* -4) PMAP_Sleep will be called when enter sleep mode, all GPIO will pull high or low based on pmap_func
|
||||
* -5) PMAP_Wake will be called when wake from sleep mode, all GPIO will back to active mode
|
||||
*****************************************************************************************
|
||||
* @endverbatim
|
||||
*/
|
||||
|
||||
/* Exported types ------------------------------------------------------------*/
|
||||
|
||||
/** @defgroup PINMAP_Exported_Types PINMAP Exported Types
|
||||
* @{
|
||||
*/
|
||||
|
||||
/**
|
||||
* @brief PINMAP Init structure definition
|
||||
*/
|
||||
typedef struct
|
||||
{
|
||||
u32 PinName; /*!< Specifies the pin name, This parameter can be a value of @ref PINMUX_Pin_Name_definitions */
|
||||
u32 Function;/*!< Specifies the pin function, This parameter can be a value of @ref PINMUX_Function_definitions */
|
||||
u32 FuncPuPd;/*!< Specifies the pin function PU/PD, This parameter can be a value of @ref GPIO_Pull_parameter_definitions */
|
||||
u32 SleepPuPd;/*!< Specifies the pin sleep PU/PD, This parameter can be a value of @ref GPIO_Pull_parameter_definitions */
|
||||
u32 DrvStrenth;/*!< Specifies the pin driving strength, This parameter is 3 bits */
|
||||
} PMAP_TypeDef;
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
/* Exported functions --------------------------------------------------------*/
|
||||
/** @defgroup PINMAP_Exported_Functions PINMAP Exported Functions
|
||||
* @{
|
||||
*/
|
||||
void PMAP_Init(void);
|
||||
void PMAP_Sleep(void);
|
||||
void PMAP_Wake(void);
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
/* Other definations --------------------------------------------------------*/
|
||||
#endif //_RTL8710B_PINMAP_H_
|
||||
/******************* (C) COPYRIGHT 2016 Realtek Semiconductor *****END OF FILE****/
|
||||
Loading…
Add table
Add a link
Reference in a new issue