From 3ddab0b8f397899c15709f7db09662b66dd55a55 Mon Sep 17 00:00:00 2001 From: Konstantin Kondrashov Date: Mon, 13 May 2019 18:00:53 +0800 Subject: [PATCH] soc: Add xxx_periph.h for all modules The "xxx_periph" header file includes all SOC-level definitions for that peripheral. Closes: IDF-192 --- components/soc/include/soc/adc_periph.h | 16 ++++++++++++++++ components/soc/include/soc/can_periph.h | 16 ++++++++++++++++ components/soc/include/soc/dac_periph.h | 16 ++++++++++++++++ components/soc/include/soc/efuse_periph.h | 16 ++++++++++++++++ components/soc/include/soc/emac_periph.h | 17 +++++++++++++++++ components/soc/include/soc/gpio_periph.h | 5 +---- components/soc/include/soc/hwcrypto_periph.h | 17 +++++++++++++++++ components/soc/include/soc/i2c_periph.h | 17 +++++++++++++++++ components/soc/include/soc/i2s_periph.h | 17 +++++++++++++++++ components/soc/include/soc/ledc_periph.h | 17 +++++++++++++++++ components/soc/include/soc/lldesc.h | 3 +-- components/soc/include/soc/mcpwm_periph.h | 17 +++++++++++++++++ components/soc/include/soc/pcnt_periph.h | 17 +++++++++++++++++ components/soc/include/soc/rmt_periph.h | 17 +++++++++++++++++ components/soc/include/soc/rtc_periph.h | 8 ++++---- components/soc/include/soc/rtc_wdt.h | 8 ++------ components/soc/include/soc/sdio_slave_periph.h | 6 +----- components/soc/include/soc/sdmmc_periph.h | 6 +----- components/soc/include/soc/sens_periph.h | 17 +++++++++++++++++ components/soc/include/soc/sigmadelta_periph.h | 17 +++++++++++++++++ components/soc/include/soc/soc_memory_layout.h | 1 + components/soc/include/soc/spi_periph.h | 6 +----- components/soc/include/soc/syscon_periph.h | 17 +++++++++++++++++ components/soc/include/soc/timer_periph.h | 17 +++++++++++++++++ components/soc/include/soc/touch_periph.h | 16 ++++++++++++++++ components/soc/include/soc/uart_periph.h | 18 ++++++++++++++++++ 26 files changed, 314 insertions(+), 31 deletions(-) create mode 100644 components/soc/include/soc/adc_periph.h create mode 100644 components/soc/include/soc/can_periph.h create mode 100644 components/soc/include/soc/dac_periph.h create mode 100644 components/soc/include/soc/efuse_periph.h create mode 100644 components/soc/include/soc/emac_periph.h create mode 100644 components/soc/include/soc/hwcrypto_periph.h create mode 100644 components/soc/include/soc/i2c_periph.h create mode 100644 components/soc/include/soc/i2s_periph.h create mode 100644 components/soc/include/soc/ledc_periph.h create mode 100644 components/soc/include/soc/mcpwm_periph.h create mode 100644 components/soc/include/soc/pcnt_periph.h create mode 100644 components/soc/include/soc/rmt_periph.h create mode 100644 components/soc/include/soc/sens_periph.h create mode 100644 components/soc/include/soc/sigmadelta_periph.h create mode 100644 components/soc/include/soc/syscon_periph.h create mode 100644 components/soc/include/soc/timer_periph.h create mode 100644 components/soc/include/soc/touch_periph.h create mode 100644 components/soc/include/soc/uart_periph.h diff --git a/components/soc/include/soc/adc_periph.h b/components/soc/include/soc/adc_periph.h new file mode 100644 index 000000000..63dd72d40 --- /dev/null +++ b/components/soc/include/soc/adc_periph.h @@ -0,0 +1,16 @@ +// Copyright 2019 Espressif Systems (Shanghai) PTE LTD +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once +#include "soc/adc_channel.h" diff --git a/components/soc/include/soc/can_periph.h b/components/soc/include/soc/can_periph.h new file mode 100644 index 000000000..91d958276 --- /dev/null +++ b/components/soc/include/soc/can_periph.h @@ -0,0 +1,16 @@ +// Copyright 2019 Espressif Systems (Shanghai) PTE LTD +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once +#include "soc/can_struct.h" diff --git a/components/soc/include/soc/dac_periph.h b/components/soc/include/soc/dac_periph.h new file mode 100644 index 000000000..741ba751d --- /dev/null +++ b/components/soc/include/soc/dac_periph.h @@ -0,0 +1,16 @@ +// Copyright 2019 Espressif Systems (Shanghai) PTE LTD +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once +#include "soc/dac_channel.h" diff --git a/components/soc/include/soc/efuse_periph.h b/components/soc/include/soc/efuse_periph.h new file mode 100644 index 000000000..76a118e3b --- /dev/null +++ b/components/soc/include/soc/efuse_periph.h @@ -0,0 +1,16 @@ +// Copyright 2019 Espressif Systems (Shanghai) PTE LTD +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once +#include "soc/efuse_reg.h" diff --git a/components/soc/include/soc/emac_periph.h b/components/soc/include/soc/emac_periph.h new file mode 100644 index 000000000..4121018b6 --- /dev/null +++ b/components/soc/include/soc/emac_periph.h @@ -0,0 +1,17 @@ +// Copyright 2019 Espressif Systems (Shanghai) PTE LTD +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once +#include "soc/emac_reg_v2.h" +#include "soc/emac_ex_reg.h" diff --git a/components/soc/include/soc/gpio_periph.h b/components/soc/include/soc/gpio_periph.h index 93b23f427..306814557 100644 --- a/components/soc/include/soc/gpio_periph.h +++ b/components/soc/include/soc/gpio_periph.h @@ -12,8 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -#ifndef _SOC_GPIO_PERIPH_H -#define _SOC_GPIO_PERIPH_H +#pragma once #include "stdint.h" #include "soc/gpio_pins.h" #include "soc/io_mux_reg.h" @@ -31,5 +30,3 @@ extern const uint32_t GPIO_PIN_MUX_REG[GPIO_PIN_COUNT]; #ifdef __cplusplus } #endif - -#endif // _SOC_GPIO_PERIPH_H diff --git a/components/soc/include/soc/hwcrypto_periph.h b/components/soc/include/soc/hwcrypto_periph.h new file mode 100644 index 000000000..6cabdd38a --- /dev/null +++ b/components/soc/include/soc/hwcrypto_periph.h @@ -0,0 +1,17 @@ +// Copyright 2019 Espressif Systems (Shanghai) PTE LTD +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once +#include "soc/dport_reg.h" +#include "soc/hwcrypto_reg.h" diff --git a/components/soc/include/soc/i2c_periph.h b/components/soc/include/soc/i2c_periph.h new file mode 100644 index 000000000..0426f557c --- /dev/null +++ b/components/soc/include/soc/i2c_periph.h @@ -0,0 +1,17 @@ +// Copyright 2019 Espressif Systems (Shanghai) PTE LTD +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once +#include "soc/i2c_struct.h" +#include "soc/i2c_reg.h" diff --git a/components/soc/include/soc/i2s_periph.h b/components/soc/include/soc/i2s_periph.h new file mode 100644 index 000000000..7e4e2ed1a --- /dev/null +++ b/components/soc/include/soc/i2s_periph.h @@ -0,0 +1,17 @@ +// Copyright 2019 Espressif Systems (Shanghai) PTE LTD +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once +#include "soc/i2s_struct.h" +#include "soc/i2s_reg.h" diff --git a/components/soc/include/soc/ledc_periph.h b/components/soc/include/soc/ledc_periph.h new file mode 100644 index 000000000..342e54268 --- /dev/null +++ b/components/soc/include/soc/ledc_periph.h @@ -0,0 +1,17 @@ +// Copyright 2019 Espressif Systems (Shanghai) PTE LTD +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once +#include "soc/ledc_reg.h" +#include "soc/ledc_struct.h" diff --git a/components/soc/include/soc/lldesc.h b/components/soc/include/soc/lldesc.h index 410e98978..827e828bf 100644 --- a/components/soc/include/soc/lldesc.h +++ b/components/soc/include/soc/lldesc.h @@ -13,7 +13,6 @@ // limitations under the License. #pragma once - #include #include "esp32/rom/lldesc.h" @@ -45,4 +44,4 @@ void lldesc_setup_link(lldesc_t *out_desc_array, const void *buffer, int size, b static inline int lldesc_get_required_num(int data_size) { return (data_size + LLDESC_MAX_NUM_PER_DESC - 1) / LLDESC_MAX_NUM_PER_DESC; -} \ No newline at end of file +} diff --git a/components/soc/include/soc/mcpwm_periph.h b/components/soc/include/soc/mcpwm_periph.h new file mode 100644 index 000000000..d7223da45 --- /dev/null +++ b/components/soc/include/soc/mcpwm_periph.h @@ -0,0 +1,17 @@ +// Copyright 2019 Espressif Systems (Shanghai) PTE LTD +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once +#include "soc/mcpwm_reg.h" +#include "soc/mcpwm_struct.h" diff --git a/components/soc/include/soc/pcnt_periph.h b/components/soc/include/soc/pcnt_periph.h new file mode 100644 index 000000000..d74b175bb --- /dev/null +++ b/components/soc/include/soc/pcnt_periph.h @@ -0,0 +1,17 @@ +// Copyright 2019 Espressif Systems (Shanghai) PTE LTD +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once +#include "soc/pcnt_reg.h" +#include "soc/pcnt_struct.h" diff --git a/components/soc/include/soc/rmt_periph.h b/components/soc/include/soc/rmt_periph.h new file mode 100644 index 000000000..a46a6f526 --- /dev/null +++ b/components/soc/include/soc/rmt_periph.h @@ -0,0 +1,17 @@ +// Copyright 2019 Espressif Systems (Shanghai) PTE LTD +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once +#include "soc/rmt_reg.h" +#include "soc/rmt_struct.h" diff --git a/components/soc/include/soc/rtc_periph.h b/components/soc/include/soc/rtc_periph.h index 832186c3d..aa803e9b8 100644 --- a/components/soc/include/soc/rtc_periph.h +++ b/components/soc/include/soc/rtc_periph.h @@ -12,13 +12,15 @@ // See the License for the specific language governing permissions and // limitations under the License. -#ifndef _SOC_RTC_PERIPH_H -#define _SOC_RTC_PERIPH_H +#pragma once #include #include "soc/rtc_io_reg.h" +#include "soc/rtc_io_struct.h" #include "soc/rtc_cntl_reg.h" +#include "soc/rtc_cntl_struct.h" #include "soc/rtc_gpio_channel.h" #include "soc/gpio_pins.h" + #ifdef __cplusplus extern "C" { @@ -58,5 +60,3 @@ extern const rtc_gpio_desc_t rtc_gpio_desc[GPIO_PIN_COUNT]; #ifdef __cplusplus } #endif - -#endif // _SOC_RTC_PERIPH_H diff --git a/components/soc/include/soc/rtc_wdt.h b/components/soc/include/soc/rtc_wdt.h index bdaea942b..aae54530a 100644 --- a/components/soc/include/soc/rtc_wdt.h +++ b/components/soc/include/soc/rtc_wdt.h @@ -47,12 +47,10 @@ without description where were CPUs when it happened. @endcode */ -#ifndef _SOC_RTC_WDT_H -#define _SOC_RTC_WDT_H - +#pragma once #include #include -#include "soc/rtc_cntl_reg.h" +#include "soc/rtc_periph.h" #include "esp_err.h" #ifdef __cplusplus @@ -198,5 +196,3 @@ bool rtc_wdt_is_on(); #ifdef __cplusplus } #endif - -#endif // _SOC_RTC_WDT_H diff --git a/components/soc/include/soc/sdio_slave_periph.h b/components/soc/include/soc/sdio_slave_periph.h index 467104dcf..189f90757 100644 --- a/components/soc/include/soc/sdio_slave_periph.h +++ b/components/soc/include/soc/sdio_slave_periph.h @@ -12,9 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -#ifndef _SOC_SDIO_SLAVE_PERIPH_H_ -#define _SOC_SDIO_SLAVE_PERIPH_H_ - +#pragma once #include //include soc related (generated) definitions #include "soc/sdio_slave_pins.h" @@ -45,5 +43,3 @@ extern const sdio_slave_slot_info_t sdio_slave_slot_info[]; #ifdef __cplusplus } #endif - -#endif /* _SOC_SDIO_SLAVE_PERIPH_H_ */ \ No newline at end of file diff --git a/components/soc/include/soc/sdmmc_periph.h b/components/soc/include/soc/sdmmc_periph.h index 79dfaf34a..75499b0b4 100644 --- a/components/soc/include/soc/sdmmc_periph.h +++ b/components/soc/include/soc/sdmmc_periph.h @@ -12,9 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -#ifndef _SOC_SDMMC_PERIPH_H_ -#define _SOC_SDMMC_PERIPH_H_ - +#pragma once #include //include soc related (generated) definitions #include "soc/sdmmc_pins.h" @@ -49,5 +47,3 @@ extern const sdmmc_slot_info_t sdmmc_slot_info[]; #ifdef __cplusplus } #endif - -#endif /* _SOC_SDMMC_PERIPH_H_ */ \ No newline at end of file diff --git a/components/soc/include/soc/sens_periph.h b/components/soc/include/soc/sens_periph.h new file mode 100644 index 000000000..38b765753 --- /dev/null +++ b/components/soc/include/soc/sens_periph.h @@ -0,0 +1,17 @@ +// Copyright 2019 Espressif Systems (Shanghai) PTE LTD +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once +#include "soc/sens_reg.h" +#include "soc/sens_struct.h" diff --git a/components/soc/include/soc/sigmadelta_periph.h b/components/soc/include/soc/sigmadelta_periph.h new file mode 100644 index 000000000..63ec3a41d --- /dev/null +++ b/components/soc/include/soc/sigmadelta_periph.h @@ -0,0 +1,17 @@ +// Copyright 2019 Espressif Systems (Shanghai) PTE LTD +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once +#include "soc/gpio_sd_struct.h" +#include "soc/gpio_sd_reg.h" diff --git a/components/soc/include/soc/soc_memory_layout.h b/components/soc/include/soc/soc_memory_layout.h index 118f1d3ac..6fb8c6519 100644 --- a/components/soc/include/soc/soc_memory_layout.h +++ b/components/soc/include/soc/soc_memory_layout.h @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + #pragma once #include #include diff --git a/components/soc/include/soc/spi_periph.h b/components/soc/include/soc/spi_periph.h index 19b3f7451..812c1beca 100644 --- a/components/soc/include/soc/spi_periph.h +++ b/components/soc/include/soc/spi_periph.h @@ -12,9 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -#ifndef _SOC_SPI_PERIPH_H_ -#define _SOC_SPI_PERIPH_H_ - +#pragma once #include #include "soc/soc.h" #include "soc/periph_defs.h" @@ -62,5 +60,3 @@ extern const spi_signal_conn_t spi_periph_signal[3]; #ifdef __cplusplus } #endif - -#endif /* _SOC_SPI_PERIPH_H_ */ \ No newline at end of file diff --git a/components/soc/include/soc/syscon_periph.h b/components/soc/include/soc/syscon_periph.h new file mode 100644 index 000000000..0179e867c --- /dev/null +++ b/components/soc/include/soc/syscon_periph.h @@ -0,0 +1,17 @@ +// Copyright 2019 Espressif Systems (Shanghai) PTE LTD +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once +#include "soc/syscon_reg.h" +#include "soc/syscon_struct.h" diff --git a/components/soc/include/soc/timer_periph.h b/components/soc/include/soc/timer_periph.h new file mode 100644 index 000000000..6b07378d3 --- /dev/null +++ b/components/soc/include/soc/timer_periph.h @@ -0,0 +1,17 @@ +// Copyright 2019 Espressif Systems (Shanghai) PTE LTD +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once +#include "soc/timer_group_reg.h" +#include "soc/timer_group_struct.h" diff --git a/components/soc/include/soc/touch_periph.h b/components/soc/include/soc/touch_periph.h new file mode 100644 index 000000000..c877cac4c --- /dev/null +++ b/components/soc/include/soc/touch_periph.h @@ -0,0 +1,16 @@ +// Copyright 2019 Espressif Systems (Shanghai) PTE LTD +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once +#include "soc/touch_channel.h" diff --git a/components/soc/include/soc/uart_periph.h b/components/soc/include/soc/uart_periph.h new file mode 100644 index 000000000..d149048aa --- /dev/null +++ b/components/soc/include/soc/uart_periph.h @@ -0,0 +1,18 @@ +// Copyright 2019 Espressif Systems (Shanghai) PTE LTD +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once +#include "soc/uart_reg.h" +#include "soc/uart_struct.h" +#include "soc/uart_channel.h"