MAX32680 Peripheral Driver API
Peripheral Driver API for the MAX32680
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Modules
mxc_pins.h
1
6/******************************************************************************
7 *
8 * Copyright (C) 2022-2023 Maxim Integrated Products, Inc. (now owned by
9 * Analog Devices, Inc.),
10 * Copyright (C) 2023-2024 Analog Devices, Inc.
11 *
12 * Licensed under the Apache License, Version 2.0 (the "License");
13 * you may not use this file except in compliance with the License.
14 * You may obtain a copy of the License at
15 *
16 * http://www.apache.org/licenses/LICENSE-2.0
17 *
18 * Unless required by applicable law or agreed to in writing, software
19 * distributed under the License is distributed on an "AS IS" BASIS,
20 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21 * See the License for the specific language governing permissions and
22 * limitations under the License.
23 *
24 ******************************************************************************/
25
26#ifndef LIBRARIES_PERIPHDRIVERS_INCLUDE_MAX32680_MXC_PINS_H_
27#define LIBRARIES_PERIPHDRIVERS_INCLUDE_MAX32680_MXC_PINS_H_
28
29#include "gpio.h"
30
31/***** Global Variables *****/
32// Predefined GPIO Configurations
33extern const mxc_gpio_cfg_t gpio_cfg_extclk;
34#define gpio_cfg_hfextclk gpio_cfg_extclk
35/* ^ Defined for driver compatability that references
36 gpio_cfg_hfextclk instead of gpio_cfg_extclk
37*/
38extern const mxc_gpio_cfg_t gpio_cfg_i2c0;
39extern const mxc_gpio_cfg_t gpio_cfg_i2c1;
40extern const mxc_gpio_cfg_t gpio_cfg_i2c2;
41extern const mxc_gpio_cfg_t gpio_cfg_i2c2b;
42extern const mxc_gpio_cfg_t gpio_cfg_i2c2c;
43
44extern const mxc_gpio_cfg_t gpio_cfg_uart0;
45extern const mxc_gpio_cfg_t gpio_cfg_uart0_flow;
46extern const mxc_gpio_cfg_t gpio_cfg_uart0_flow_disable;
47extern const mxc_gpio_cfg_t gpio_cfg_uart1;
48extern const mxc_gpio_cfg_t gpio_cfg_uart1_flow;
49extern const mxc_gpio_cfg_t gpio_cfg_uart1_flow_disable;
50extern const mxc_gpio_cfg_t gpio_cfg_uart2;
51extern const mxc_gpio_cfg_t gpio_cfg_uart2_flow;
52extern const mxc_gpio_cfg_t gpio_cfg_uart2_flow_disable;
53extern const mxc_gpio_cfg_t gpio_cfg_uart3;
54
55extern const mxc_gpio_cfg_t antenna_ctrl0;
56extern const mxc_gpio_cfg_t antenna_ctrl1;
57
58// Timers are only defined once, depending on package, each timer could be mapped to other pins
59extern const mxc_gpio_cfg_t gpio_cfg_tmr0;
60extern const mxc_gpio_cfg_t gpio_cfg_tmr1;
61extern const mxc_gpio_cfg_t gpio_cfg_tmr2;
62extern const mxc_gpio_cfg_t gpio_cfg_tmr3;
63extern const mxc_gpio_cfg_t gpio_cfg_tmr0b;
64extern const mxc_gpio_cfg_t gpio_cfg_tmr1b;
65extern const mxc_gpio_cfg_t gpio_cfg_tmr1_MapB;
66extern const mxc_gpio_cfg_t gpio_cfg_tmr2b;
67extern const mxc_gpio_cfg_t gpio_cfg_tmr3b;
68
69extern const mxc_gpio_cfg_t gpio_cfg_i2s0;
70
71extern const mxc_gpio_cfg_t gpio_cfg_owm;
72extern const mxc_gpio_cfg_t gpio_cfg_owmb;
73
74extern const mxc_gpio_cfg_t gpio_cfg_rtcsqw;
75extern const mxc_gpio_cfg_t gpio_cfg_rtcsqwb;
76
77extern const mxc_gpio_cfg_t gpio_cfg_pt0;
78extern const mxc_gpio_cfg_t gpio_cfg_pt1;
79extern const mxc_gpio_cfg_t gpio_cfg_pt2;
80extern const mxc_gpio_cfg_t gpio_cfg_pt3;
81
82extern const mxc_gpio_cfg_t gpio_cfg_adc_ain0;
83extern const mxc_gpio_cfg_t gpio_cfg_adc_ain1;
84extern const mxc_gpio_cfg_t gpio_cfg_adc_ain2;
85extern const mxc_gpio_cfg_t gpio_cfg_adc_ain3;
86extern const mxc_gpio_cfg_t gpio_cfg_adc_ain4;
87extern const mxc_gpio_cfg_t gpio_cfg_adc_ain5;
88extern const mxc_gpio_cfg_t gpio_cfg_adc_ain6;
89extern const mxc_gpio_cfg_t gpio_cfg_adc_ain7;
90
91extern const mxc_gpio_cfg_t gpio_cfg_rv_jtag;
92
93// SPI v2 Pin Definitions
94extern const mxc_gpio_cfg_t gpio_cfg_spi0_standard;
95extern const mxc_gpio_cfg_t gpio_cfg_spi0_3wire;
96extern const mxc_gpio_cfg_t gpio_cfg_spi0_dual;
97extern const mxc_gpio_cfg_t gpio_cfg_spi0_quad;
98
99// SPI v2 Target Selects Pin Definitions
100extern const mxc_gpio_cfg_t gpio_cfg_spi0_ts0;
101extern const mxc_gpio_cfg_t gpio_cfg_spi0_ts1;
102extern const mxc_gpio_cfg_t gpio_cfg_spi0_ts2;
103
104#endif // LIBRARIES_PERIPHDRIVERS_INCLUDE_MAX32680_MXC_PINS_H_
Structure type for configuring a GPIO port.
Definition: gpio.h:165