G32R430 Device Driver Layer v1.0.4
G32R4xx Device Driver Layer API Reference
g32r4xx_ddl_gpio.c File Reference

GPIO DDL module driver. More...

#include "g32r4xx_ddl_gpio.h"
#include "g32r4xx_ddl_rcm.h"
#include "g32_assert.h"

Go to the source code of this file.

Macros

#define IS_DDL_GPIO_PORT(__VALUE__)
#define IS_DDL_GPIO_PIN(__VALUE__)
#define DDL_GPIO_PIN_0_5
#define IS_DDL_GPIO_PIN_FOR_PORT(__GPIO__, __PIN__)
#define IS_DDL_GPIO_MODE(__VALUE__)
#define IS_DDL_GPIO_OUTPUT_TYPE(__VALUE__)
#define IS_DDL_GPIO_SPEED(__VALUE__)
#define IS_DDL_GPIO_PULL(__VALUE__)
#define IS_DDL_GPIO_ALTERNATE(__VALUE__)
#define IS_DDL_GPIO_SPECIAL_PIN_TYPE(__VALUE__)
#define IS_DDL_GPIO_SPECIAL_PIN(__GPIO__, __PIN__)
#define DDL_GPIO_ADC3_SWR_PIN_B   (DDL_GPIO_PIN_2 | DDL_GPIO_PIN_3 | DDL_GPIO_PIN_5)
#define DDL_GPIO_ADC3_SWR_PIN_C
#define DDL_GPIO_ADC3_SWR_PIN_D   (DDL_GPIO_PIN_0 | DDL_GPIO_PIN_1 | DDL_GPIO_PIN_2)
#define IS_DDL_GPIO_ADC3_ANALOG_SWITCH_PIN(__GPIO__, __PIN__)

Functions

ErrorStatus DDL_GPIO_DeInit (GPIO_Type GPIOx)
 De-initialize GPIO registers (Registers restored to their default values).
ErrorStatus DDL_GPIO_Init (GPIO_Type GPIOx, DDL_GPIO_InitTypeDef *GPIO_InitStruct)
 Initialize GPIO registers according to the specified parameters in GPIO_InitStruct.
void DDL_GPIO_StructInit (DDL_GPIO_InitTypeDef *GPIO_InitStruct)
 Set each DDL_GPIO_InitTypeDef field to default value.
void DDL_GPIO_EnableAdc3AnalogSwitchPin (GPIO_Type GPIOx, uint32_t PinMask)
 Enable ADC3 analog switch bits in SWR.
void DDL_GPIO_DisableAdc3AnalogSwitchPin (GPIO_Type GPIOx, uint32_t PinMask)
 Disable ADC3 analog switch bits in SWR.
void DDL_GPIO_SetSpecialPinType (GPIO_Type GPIOx, uint32_t PinMask, uint32_t PinType)
 Configure special pin type for the dedicated special GPIO pin.
uint32_t DDL_GPIO_GetSpecialPinType (GPIO_Type GPIOx, uint32_t PinMask)
 Return special pin type configuration for the dedicated special GPIO pin.

Detailed Description

GPIO DDL module driver.

Attention

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

The original code has been modified by Geehy Semiconductor.

Copyright (c) 2017 STMicroelectronics. Copyright (C) 2025 Geehy Semiconductor. All rights reserved.

This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.

Definition in file g32r4xx_ddl_gpio.c.