1 // Copyright 2020 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 }; 41 42 const uint32_t GPIO_HOLD_MASK[SOC_GPIO_PIN_COUNT] = { 43 BIT(0), //GPIO0 44 BIT(1), //GPIO1 45 BIT(2), //GPIO2 46 BIT(3), //GPIO3 47 BIT(4), //GPIO4 48 BIT(5), //GPIO5 49 BIT(6), //GPIO6 50 BIT(7), //GPIO7 51 BIT(8), //GPIO8 52 BIT(9), //GPIO9 53 BIT(10), //GPIO10 54 BIT(11), //GPIO11 55 BIT(12), //GPIO12 56 BIT(13), //GPIO13 57 BIT(14), //GPIO14 58 BIT(15), //GPIO15 59 BIT(16), //GPIO16 60 BIT(17), //GPIO17 61 BIT(18), //GPIO18 62 BIT(19), //GPIO19 63 BIT(20), //GPIO20 64 BIT(21), //GPIO21 65 }; 66