Zephyr API Documentation 4.1.99
A Scalable Open Source RTOS
 4.1.99
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
renesas-rztn-gpio.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2025 Renesas Electronics Corporation
3 * SPDX-License-Identifier: Apache-2.0
4 */
5
6#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_GPIO_RENESAS_RZTN_GPIO_H_
7#define ZEPHYR_INCLUDE_DT_BINDINGS_GPIO_RENESAS_RZTN_GPIO_H_
8
9/*********************************RZTN*****************************************/
10
27/* GPIO DRCTL register */
28#define RZTN_GPIO_DRCTL_SHIFT 8U
29#define RZTN_GPIO_SCHMITT_TRIG_SHIFT 4U
30#define RZTN_GPIO_SLEW_RATE_SHIFT 5U
31#define RZTN_GPIO_DRCTL_SET(drive_ability, schmitt_trig, slew_rate) \
32 (((drive_ability) | ((schmitt_trig) << RZTN_GPIO_SCHMITT_TRIG_SHIFT) | \
33 ((slew_rate) << RZTN_GPIO_SLEW_RATE_SHIFT)) \
34 << RZTN_GPIO_DRCTL_SHIFT)
35
36/*******************************************************************************/
37
38#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_GPIO_RENESAS_RZTN_GPIO_H_ */