Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
renesas-rz-gpio.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024 Renesas Electronics Corporation
3 * SPDX-License-Identifier: Apache-2.0
4 */
5
6#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_GPIO_RENESAS_RZ_GPIO_H_
7#define ZEPHYR_INCLUDE_DT_BINDINGS_GPIO_RENESAS_RZ_GPIO_H_
8
9/*********************************RZG3S*****************************************/
10
28/* GPIO drive IOLH */
29#define RZG3S_GPIO_IOLH_SHIFT 7U
30#define RZG3S_GPIO_IOLH_SET(iolh_val) (iolh_val << RZG3S_GPIO_IOLH_SHIFT)
31
32/* GPIO filter */
33#define RZG3S_GPIO_FILTER_SHIFT 9U
34#define RZG3S_GPIO_FILNUM_SHIFT 1U
35#define RZG3S_GPIO_FILCLKSEL_SHIFT 3U
36#define RZG3S_GPIO_FILTER_SET(fillonoff, filnum, filclksel) \
37 (((fillonoff) | ((filnum) << RZG3S_GPIO_FILNUM_SHIFT) | \
38 ((filclksel) << RZG3S_GPIO_FILCLKSEL_SHIFT)) \
39 << RZG3S_GPIO_FILTER_SHIFT)
40
41/*******************************************************************************/
42
43#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_GPIO_RENESAS_RZ_GPIO_H_ */