MAX78002 Peripheral Driver API
Peripheral Driver API for the MAX78002
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_MAX78002_MXC_PINS_H_
27#define LIBRARIES_PERIPHDRIVERS_INCLUDE_MAX78002_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;
34extern const mxc_gpio_cfg_t gpio_cfg_i2c0;
35extern const mxc_gpio_cfg_t gpio_cfg_i2c1;
36extern const mxc_gpio_cfg_t gpio_cfg_i2c2;
37
38extern const mxc_gpio_cfg_t gpio_cfg_uart0;
39extern const mxc_gpio_cfg_t gpio_cfg_uart0_flow;
40extern const mxc_gpio_cfg_t gpio_cfg_uart0_flow_disable;
41extern const mxc_gpio_cfg_t gpio_cfg_uart1;
42extern const mxc_gpio_cfg_t gpio_cfg_uart1_flow;
43extern const mxc_gpio_cfg_t gpio_cfg_uart1_flow_disable;
44extern const mxc_gpio_cfg_t gpio_cfg_uart2;
45extern const mxc_gpio_cfg_t gpio_cfg_uart2_flow;
46extern const mxc_gpio_cfg_t gpio_cfg_uart2_flow_disable;
47extern const mxc_gpio_cfg_t gpio_cfg_uart3;
48extern const mxc_gpio_cfg_t gpio_cfg_uart3_flow;
49extern const mxc_gpio_cfg_t gpio_cfg_uart3_flow_disable;
50
51// Timers are only defined once, depending on package, each timer could be mapped to other pins
52extern const mxc_gpio_cfg_t gpio_cfg_tmr0;
53extern const mxc_gpio_cfg_t gpio_cfg_tmr1;
54extern const mxc_gpio_cfg_t gpio_cfg_tmr2;
55extern const mxc_gpio_cfg_t gpio_cfg_tmr3;
56extern const mxc_gpio_cfg_t gpio_cfg_tmr0b;
57extern const mxc_gpio_cfg_t gpio_cfg_tmr1b;
58extern const mxc_gpio_cfg_t gpio_cfg_tmr2b;
59extern const mxc_gpio_cfg_t gpio_cfg_tmr3b;
60extern const mxc_gpio_cfg_t gpio_cfg_tmr4;
61extern const mxc_gpio_cfg_t gpio_cfg_tmr5;
62
63extern const mxc_gpio_cfg_t gpio_cfg_i2s0;
64extern const mxc_gpio_cfg_t gpio_cfg_i2s0_extclk;
65
66extern const mxc_gpio_cfg_t gpio_cfg_owm;
67extern const mxc_gpio_cfg_t gpio_cfg_owmb;
68
69extern const mxc_gpio_cfg_t gpio_cfg_spi0;
70extern const mxc_gpio_cfg_t gpio_cfg_spi1;
71
72extern const mxc_gpio_cfg_t gpio_cfg_rtcsqw;
73extern const mxc_gpio_cfg_t gpio_cfg_rtcsqwb;
74
75extern const mxc_gpio_cfg_t gpio_cfg_pt0;
76extern const mxc_gpio_cfg_t gpio_cfg_pt1;
77extern const mxc_gpio_cfg_t gpio_cfg_pt2;
78extern const mxc_gpio_cfg_t gpio_cfg_pt3;
79
80extern const mxc_gpio_cfg_t gpio_cfg_pcif_P0_BITS_0_7;
81extern const mxc_gpio_cfg_t gpio_cfg_pcif_P0_BITS_8_9;
82extern const mxc_gpio_cfg_t gpio_cfg_pcif_P1_BITS_10_11;
83extern const mxc_gpio_cfg_t gpio_cfg_pcif_hsync;
84extern const mxc_gpio_cfg_t gpio_cfg_pcif_vsync;
85extern const mxc_gpio_cfg_t gpio_cfg_pcif_xclk;
86
87extern const mxc_gpio_cfg_t gpio_cfg_adc_ain0;
88extern const mxc_gpio_cfg_t gpio_cfg_adc_ain1;
89extern const mxc_gpio_cfg_t gpio_cfg_adc_ain2;
90extern const mxc_gpio_cfg_t gpio_cfg_adc_ain3;
91extern const mxc_gpio_cfg_t gpio_cfg_adc_ain4;
92extern const mxc_gpio_cfg_t gpio_cfg_adc_ain4;
93extern const mxc_gpio_cfg_t gpio_cfg_adc_ain5;
94extern const mxc_gpio_cfg_t gpio_cfg_adc_ain6;
95extern const mxc_gpio_cfg_t gpio_cfg_adc_ain7;
96
97extern const mxc_gpio_cfg_t gpio_cfg_rv_jtag;
98
99extern const mxc_gpio_cfg_t gpio_cfg_cmp0;
100extern const mxc_gpio_cfg_t gpio_cfg_cmp1;
101extern const mxc_gpio_cfg_t gpio_cfg_cmp2;
102extern const mxc_gpio_cfg_t gpio_cfg_cmp3;
103
104extern const mxc_gpio_cfg_t gpio_cfg_sdhc;
105
106// SPI v2 Pin Definitions
107extern const mxc_gpio_cfg_t gpio_cfg_spi0_standard;
108extern const mxc_gpio_cfg_t gpio_cfg_spi0_3wire;
109extern const mxc_gpio_cfg_t gpio_cfg_spi0_dual;
110extern const mxc_gpio_cfg_t gpio_cfg_spi0_quad;
111extern const mxc_gpio_cfg_t gpio_cfg_spi1_standard;
112extern const mxc_gpio_cfg_t gpio_cfg_spi1_3wire;
113extern const mxc_gpio_cfg_t gpio_cfg_spi1_dual;
114extern const mxc_gpio_cfg_t gpio_cfg_spi1_quad;
115
116// SPI v2 Target Selects Pin Definitions
117extern const mxc_gpio_cfg_t gpio_cfg_spi0_ts0;
118extern const mxc_gpio_cfg_t gpio_cfg_spi0_ts1;
119extern const mxc_gpio_cfg_t gpio_cfg_spi0_ts2;
120extern const mxc_gpio_cfg_t gpio_cfg_spi1_ts0;
121
122#endif // LIBRARIES_PERIPHDRIVERS_INCLUDE_MAX78002_MXC_PINS_H_
Structure type for configuring a GPIO port.
Definition: gpio.h:165