Zephyr Project API 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
ambiq-apollo5-pinctrl.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2025 Ambiq Micro Inc.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
12
13#ifndef __APOLLO5_PINCTRL_H__
14#define __APOLLO5_PINCTRL_H__
15
20
47
49
50#define APOLLO5_ALT_FUNC_POS 0
51#define APOLLO5_ALT_FUNC_MASK 0xf
52
53#define APOLLO5_PIN_NUM_POS 4
54#define APOLLO5_PIN_NUM_MASK 0xff
55
56#define APOLLO5_PINMUX(pin_num, alt_func) \
57 (pin_num << APOLLO5_PIN_NUM_POS | \
58 alt_func << APOLLO5_ALT_FUNC_POS)
59
61
63
64#endif /* __APOLLO5_PINCTRL_H__ */