1 // Copyright 2018 Espressif Systems (Shanghai) PTE LTD 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 #include "soc/gpio_periph.h" 16 17 const uint32_t GPIO_PIN_MUX_REG[SOC_GPIO_PIN_COUNT] = { 18 IO_MUX_GPIO0_REG, 19 IO_MUX_GPIO1_REG, 20 IO_MUX_GPIO2_REG, 21 IO_MUX_GPIO3_REG, 22 IO_MUX_GPIO4_REG, 23 IO_MUX_GPIO5_REG, 24 IO_MUX_GPIO6_REG, 25 IO_MUX_GPIO7_REG, 26 IO_MUX_GPIO8_REG, 27 IO_MUX_GPIO9_REG, 28 IO_MUX_GPIO10_REG, 29 IO_MUX_GPIO11_REG, 30 IO_MUX_GPIO12_REG, 31 IO_MUX_GPIO13_REG, 32 IO_MUX_GPIO14_REG, 33 IO_MUX_GPIO15_REG, 34 IO_MUX_GPIO16_REG, 35 IO_MUX_GPIO17_REG, 36 IO_MUX_GPIO18_REG, 37 IO_MUX_GPIO19_REG, 38 IO_MUX_GPIO20_REG, 39 IO_MUX_GPIO21_REG, 40 0, 41 0, 42 0, 43 0, 44 IO_MUX_GPIO26_REG, 45 IO_MUX_GPIO27_REG, 46 IO_MUX_GPIO28_REG, 47 IO_MUX_GPIO29_REG, 48 IO_MUX_GPIO30_REG, 49 IO_MUX_GPIO31_REG, 50 IO_MUX_GPIO32_REG, 51 IO_MUX_GPIO33_REG, 52 IO_MUX_GPIO34_REG, 53 IO_MUX_GPIO35_REG, 54 IO_MUX_GPIO36_REG, 55 IO_MUX_GPIO37_REG, 56 IO_MUX_GPIO38_REG, 57 IO_MUX_GPIO39_REG, 58 IO_MUX_GPIO40_REG, 59 IO_MUX_GPIO41_REG, 60 IO_MUX_GPIO42_REG, 61 IO_MUX_GPIO43_REG, 62 IO_MUX_GPIO44_REG, 63 IO_MUX_GPIO45_REG, 64 IO_MUX_GPIO46_REG, 65 IO_MUX_GPIO47_REG, 66 IO_MUX_GPIO48_REG, 67 }; 68 69 const uint32_t GPIO_HOLD_MASK[SOC_GPIO_PIN_COUNT] = { 70 0, 71 0, 72 0, 73 0, 74 0, 75 0, 76 0, 77 0, 78 0, 79 0, 80 0, 81 0, 82 0, 83 0, 84 0, 85 0, 86 0, 87 0, 88 0, 89 0, 90 0, 91 0, 92 BIT(1), 93 BIT(2), 94 BIT(3), 95 BIT(4), 96 BIT(5), 97 BIT(6), 98 BIT(7), 99 BIT(8), 100 BIT(9), 101 BIT(10), 102 BIT(11), 103 BIT(12), 104 BIT(13), 105 BIT(14), 106 BIT(15), 107 BIT(16), 108 BIT(17), 109 BIT(18), 110 BIT(19), 111 BIT(20), 112 BIT(21), 113 BIT(22), 114 BIT(23), 115 BIT(24), 116 BIT(25), 117 BIT(26), 118 }; 119