MAX32655 Peripheral Driver API
Peripheral Driver API for the MAX32655
mxc_pins.h
1 
6 /* *****************************************************************************
7  * Copyright (C) 2016 Maxim Integrated Products, Inc., All Rights Reserved.
8  *
9  * Permission is hereby granted, free of charge, to any person obtaining a
10  * copy of this software and associated documentation files (the "Software"),
11  * to deal in the Software without restriction, including without limitation
12  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
13  * and/or sell copies of the Software, and to permit persons to whom the
14  * Software is furnished to do so, subject to the following conditions:
15  *
16  * The above copyright notice and this permission notice shall be included
17  * in all copies or substantial portions of the Software.
18  *
19  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
20  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
21  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
22  * IN NO EVENT SHALL MAXIM INTEGRATED BE LIABLE FOR ANY CLAIM, DAMAGES
23  * OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
24  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
25  * OTHER DEALINGS IN THE SOFTWARE.
26  *
27  * Except as contained in this notice, the name of Maxim Integrated
28  * Products, Inc. shall not be used except as stated in the Maxim Integrated
29  * Products, Inc. Branding Policy.
30  *
31  * The mere transfer of this software does not imply any licenses
32  * of trade secrets, proprietary technology, copyrights, patents,
33  * trademarks, maskwork rights, or any other form of intellectual
34  * property whatsoever. Maxim Integrated Products, Inc. retains all
35  * ownership rights.
36  *
37  * $Date: 2017-10-27 16:45:57 -0500 (Fri, 27 Oct 2017) $
38  * $Revision: 31663 $
39  *
40  **************************************************************************** */
41 
42 
43 #ifndef _MXC_PINS_H_
44 #define _MXC_PINS_H_
45 
46 #include "gpio.h"
47 
48 /***** Global Variables *****/
49 // Predefined GPIO Configurations
50 extern const mxc_gpio_cfg_t gpio_cfg_extclk;
51 extern const mxc_gpio_cfg_t gpio_cfg_i2c0;
52 extern const mxc_gpio_cfg_t gpio_cfg_i2c1;
53 extern const mxc_gpio_cfg_t gpio_cfg_i2c2;
54 extern const mxc_gpio_cfg_t gpio_cfg_i2c2b;
55 extern const mxc_gpio_cfg_t gpio_cfg_i2c2c;
56 
57 
58 extern const mxc_gpio_cfg_t gpio_cfg_uart0;
59 extern const mxc_gpio_cfg_t gpio_cfg_uart0_flow;
60 extern const mxc_gpio_cfg_t gpio_cfg_uart1;
61 extern const mxc_gpio_cfg_t gpio_cfg_uart1_flow;
62 extern const mxc_gpio_cfg_t gpio_cfg_uart2;
63 extern const mxc_gpio_cfg_t gpio_cfg_uart2_flow;
64 extern const mxc_gpio_cfg_t gpio_cfg_uart3;
65 extern const mxc_gpio_cfg_t gpio_cfg_uart3_flow;
66 extern const mxc_gpio_cfg_t gpio_cfg_uart4;
67 extern const mxc_gpio_cfg_t gpio_cfg_uart4b;
68 extern const mxc_gpio_cfg_t gpio_cfg_uart4c;
69 extern const mxc_gpio_cfg_t gpio_cfg_uart4_flow;
70 extern const mxc_gpio_cfg_t gpio_cfg_uart4b_flow;
71 extern const mxc_gpio_cfg_t gpio_cfg_uart4c_flow;
72 extern const mxc_gpio_cfg_t gpio_cfg_uart5;
73 extern const mxc_gpio_cfg_t gpio_cfg_uart5b;
74 extern const mxc_gpio_cfg_t gpio_cfg_uart5_flow;
75 extern const mxc_gpio_cfg_t gpio_cfg_uart5b_flow;
76 // NOTE: uart5b flow control is split across port pins 0.31 and 1.0
77 extern const mxc_gpio_cfg_t gpio_cfg_uart5c_P1_flow;
78 extern const mxc_gpio_cfg_t gpio_cfg_uart5c_P0_flow;
79 
80 extern const mxc_gpio_cfg_t antenna_ctrl0;
81 extern const mxc_gpio_cfg_t antenna_ctrl1;
82 
83 // Timers are only defined once, depending on package, each timer could be mapped to other pins
84 extern const mxc_gpio_cfg_t gpio_cfg_tmr0;
85 extern const mxc_gpio_cfg_t gpio_cfg_tmr1;
86 extern const mxc_gpio_cfg_t gpio_cfg_tmr2;
87 extern const mxc_gpio_cfg_t gpio_cfg_tmr3;
88 extern const mxc_gpio_cfg_t gpio_cfg_tmr0b;
89 extern const mxc_gpio_cfg_t gpio_cfg_tmr1b;
90 extern const mxc_gpio_cfg_t gpio_cfg_tmr2b;
91 extern const mxc_gpio_cfg_t gpio_cfg_tmr3b;
92 extern const mxc_gpio_cfg_t gpio_cfg_tmr4;
93 extern const mxc_gpio_cfg_t gpio_cfg_tmr5;
94 
95 extern const mxc_gpio_cfg_t gpio_cfg_i2s0;
96 
97 extern const mxc_gpio_cfg_t gpio_cfg_rtcsqw;
98 extern const mxc_gpio_cfg_t gpio_cfg_rtcsqwb;
99 
100 
101 extern const mxc_gpio_cfg_t gpio_cfg_pt0;
102 extern const mxc_gpio_cfg_t gpio_cfg_pt1;
103 extern const mxc_gpio_cfg_t gpio_cfg_pt2;
104 extern const mxc_gpio_cfg_t gpio_cfg_pt3;
105 
106 extern const mxc_gpio_cfg_t gpio_cfg_adc_ain0;
107 extern const mxc_gpio_cfg_t gpio_cfg_adc_ain1;
108 extern const mxc_gpio_cfg_t gpio_cfg_adc_ain2;
109 extern const mxc_gpio_cfg_t gpio_cfg_adc_ain3;
110 extern const mxc_gpio_cfg_t gpio_cfg_adc_ain4;
111 extern const mxc_gpio_cfg_t gpio_cfg_adc_ain5;
112 extern const mxc_gpio_cfg_t gpio_cfg_adc_ain6;
113 extern const mxc_gpio_cfg_t gpio_cfg_adc_ain7;
114 
115 #endif /* _MXC_PINS_H_ */
Structure type for configuring a GPIO port.
Definition: gpio.h:155