1 // Copyright 2015-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 #ifndef _SOC_PERIPH_DEFS_H_ 16 #define _SOC_PERIPH_DEFS_H_ 17 18 #ifdef __cplusplus 19 extern "C" { 20 #endif 21 22 typedef enum { 23 PERIPH_LEDC_MODULE = 0, 24 PERIPH_UART0_MODULE, 25 PERIPH_UART1_MODULE, 26 PERIPH_UART2_MODULE, 27 PERIPH_I2C0_MODULE, 28 PERIPH_I2C1_MODULE, 29 PERIPH_I2S0_MODULE, 30 PERIPH_I2S1_MODULE, 31 PERIPH_TIMG0_MODULE, 32 PERIPH_TIMG1_MODULE, 33 PERIPH_PWM0_MODULE, 34 PERIPH_PWM1_MODULE, 35 PERIPH_PWM2_MODULE, 36 PERIPH_PWM3_MODULE, 37 PERIPH_UHCI0_MODULE, 38 PERIPH_UHCI1_MODULE, 39 PERIPH_RMT_MODULE, 40 PERIPH_PCNT_MODULE, 41 PERIPH_SPI_MODULE, 42 PERIPH_HSPI_MODULE, 43 PERIPH_VSPI_MODULE, 44 PERIPH_SPI_DMA_MODULE, 45 PERIPH_SDMMC_MODULE, 46 PERIPH_SDIO_SLAVE_MODULE, 47 PERIPH_TWAI_MODULE, 48 PERIPH_CAN_MODULE = PERIPH_TWAI_MODULE, 49 PERIPH_EMAC_MODULE, 50 PERIPH_RNG_MODULE, 51 PERIPH_WIFI_MODULE, 52 PERIPH_BT_MODULE, 53 PERIPH_WIFI_BT_COMMON_MODULE, 54 PERIPH_BT_BASEBAND_MODULE, 55 PERIPH_BT_LC_MODULE, 56 PERIPH_AES_MODULE, 57 PERIPH_SHA_MODULE, 58 PERIPH_RSA_MODULE, 59 PERIPH_MODULE_MAX 60 } periph_module_t; 61 62 #ifdef __cplusplus 63 } 64 #endif 65 66 #endif /* _SOC_PERIPH_DEFS_H_ */ 67