Skip to content

Commit

Permalink
zephyr: remove autoconf.h
Browse files Browse the repository at this point in the history
`autoconf.h` should be injected, remove them.

Signed-off-by: Yong Cong Sin <[email protected]>
  • Loading branch information
ycsin authored and erwango committed Jul 1, 2024
1 parent d12e21e commit 2d9f676
Show file tree
Hide file tree
Showing 50 changed files with 0 additions and 100 deletions.
2 changes: 0 additions & 2 deletions scripts/genllheaders/header-template.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <autoconf.h>

{% for series in all_series %}
#{{ "if" if loop.index == 1 else "elif"}} defined(CONFIG_SOC_SERIES_{{ series[:-1] | upper }})
#include <{{ series }}_ll_{{ ll_api }}.h>
Expand Down
2 changes: 0 additions & 2 deletions scripts/tests/genllheaders/data/stm32_ll_tim.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <autoconf.h>

#if defined(CONFIG_SOC_SERIES_STM32F0X)
#include <stm32f0xx_ll_tim.h>
#elif defined(CONFIG_SOC_SERIES_STM32F1X)
Expand Down
2 changes: 0 additions & 2 deletions scripts/tests/genllheaders/data/stm32_ll_usart.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <autoconf.h>

#if defined(CONFIG_SOC_SERIES_STM32F1X)
#include <stm32f1xx_ll_usart.h>
#endif
2 changes: 0 additions & 2 deletions stm32cube/common_ll/include/stm32_ll_adc.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <autoconf.h>

#if defined(CONFIG_SOC_SERIES_STM32C0X)
#include <stm32c0xx_ll_adc.h>
#elif defined(CONFIG_SOC_SERIES_STM32F0X)
Expand Down
2 changes: 0 additions & 2 deletions stm32cube/common_ll/include/stm32_ll_bdma.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <autoconf.h>

#if defined(CONFIG_SOC_SERIES_STM32H7X)
#include <stm32h7xx_ll_bdma.h>
#endif
2 changes: 0 additions & 2 deletions stm32cube/common_ll/include/stm32_ll_bus.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <autoconf.h>

#if defined(CONFIG_SOC_SERIES_STM32C0X)
#include <stm32c0xx_ll_bus.h>
#elif defined(CONFIG_SOC_SERIES_STM32F0X)
Expand Down
2 changes: 0 additions & 2 deletions stm32cube/common_ll/include/stm32_ll_comp.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <autoconf.h>

#if defined(CONFIG_SOC_SERIES_STM32F0X)
#include <stm32f0xx_ll_comp.h>
#elif defined(CONFIG_SOC_SERIES_STM32F3X)
Expand Down
2 changes: 0 additions & 2 deletions stm32cube/common_ll/include/stm32_ll_cordic.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <autoconf.h>

#if defined(CONFIG_SOC_SERIES_STM32G4X)
#include <stm32g4xx_ll_cordic.h>
#elif defined(CONFIG_SOC_SERIES_STM32H5X)
Expand Down
2 changes: 0 additions & 2 deletions stm32cube/common_ll/include/stm32_ll_cortex.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <autoconf.h>

#if defined(CONFIG_SOC_SERIES_STM32C0X)
#include <stm32c0xx_ll_cortex.h>
#elif defined(CONFIG_SOC_SERIES_STM32F0X)
Expand Down
2 changes: 0 additions & 2 deletions stm32cube/common_ll/include/stm32_ll_crc.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <autoconf.h>

#if defined(CONFIG_SOC_SERIES_STM32C0X)
#include <stm32c0xx_ll_crc.h>
#elif defined(CONFIG_SOC_SERIES_STM32F0X)
Expand Down
2 changes: 0 additions & 2 deletions stm32cube/common_ll/include/stm32_ll_crs.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <autoconf.h>

#if defined(CONFIG_SOC_SERIES_STM32F0X)
#include <stm32f0xx_ll_crs.h>
#elif defined(CONFIG_SOC_SERIES_STM32G0X)
Expand Down
2 changes: 0 additions & 2 deletions stm32cube/common_ll/include/stm32_ll_dac.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <autoconf.h>

#if defined(CONFIG_SOC_SERIES_STM32F0X)
#include <stm32f0xx_ll_dac.h>
#elif defined(CONFIG_SOC_SERIES_STM32F1X)
Expand Down
2 changes: 0 additions & 2 deletions stm32cube/common_ll/include/stm32_ll_dcache.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <autoconf.h>

#if defined(CONFIG_SOC_SERIES_STM32H5X)
#include <stm32h5xx_ll_dcache.h>
#elif defined(CONFIG_SOC_SERIES_STM32U5X)
Expand Down
2 changes: 0 additions & 2 deletions stm32cube/common_ll/include/stm32_ll_delayblock.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <autoconf.h>

#if defined(CONFIG_SOC_SERIES_STM32H7X)
#include <stm32h7xx_ll_delayblock.h>
#elif defined(CONFIG_SOC_SERIES_STM32MP1X)
Expand Down
2 changes: 0 additions & 2 deletions stm32cube/common_ll/include/stm32_ll_dlyb.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <autoconf.h>

#if defined(CONFIG_SOC_SERIES_STM32H5X)
#include <stm32h5xx_ll_dlyb.h>
#elif defined(CONFIG_SOC_SERIES_STM32H7RSX)
Expand Down
2 changes: 0 additions & 2 deletions stm32cube/common_ll/include/stm32_ll_dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <autoconf.h>

#if defined(CONFIG_SOC_SERIES_STM32C0X)
#include <stm32c0xx_ll_dma.h>
#elif defined(CONFIG_SOC_SERIES_STM32F0X)
Expand Down
2 changes: 0 additions & 2 deletions stm32cube/common_ll/include/stm32_ll_dma2d.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <autoconf.h>

#if defined(CONFIG_SOC_SERIES_STM32F4X)
#include <stm32f4xx_ll_dma2d.h>
#elif defined(CONFIG_SOC_SERIES_STM32F7X)
Expand Down
2 changes: 0 additions & 2 deletions stm32cube/common_ll/include/stm32_ll_dmamux.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <autoconf.h>

#if defined(CONFIG_SOC_SERIES_STM32C0X)
#include <stm32c0xx_ll_dmamux.h>
#elif defined(CONFIG_SOC_SERIES_STM32G0X)
Expand Down
2 changes: 0 additions & 2 deletions stm32cube/common_ll/include/stm32_ll_exti.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <autoconf.h>

#if defined(CONFIG_SOC_SERIES_STM32C0X)
#include <stm32c0xx_ll_exti.h>
#elif defined(CONFIG_SOC_SERIES_STM32F0X)
Expand Down
2 changes: 0 additions & 2 deletions stm32cube/common_ll/include/stm32_ll_fmac.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <autoconf.h>

#if defined(CONFIG_SOC_SERIES_STM32G4X)
#include <stm32g4xx_ll_fmac.h>
#elif defined(CONFIG_SOC_SERIES_STM32H5X)
Expand Down
2 changes: 0 additions & 2 deletions stm32cube/common_ll/include/stm32_ll_fmc.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <autoconf.h>

#if defined(CONFIG_SOC_SERIES_STM32F3X)
#include <stm32f3xx_ll_fmc.h>
#elif defined(CONFIG_SOC_SERIES_STM32F4X)
Expand Down
2 changes: 0 additions & 2 deletions stm32cube/common_ll/include/stm32_ll_fmpi2c.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <autoconf.h>

#if defined(CONFIG_SOC_SERIES_STM32F4X)
#include <stm32f4xx_ll_fmpi2c.h>
#endif
2 changes: 0 additions & 2 deletions stm32cube/common_ll/include/stm32_ll_fsmc.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <autoconf.h>

#if defined(CONFIG_SOC_SERIES_STM32F1X)
#include <stm32f1xx_ll_fsmc.h>
#elif defined(CONFIG_SOC_SERIES_STM32F2X)
Expand Down
2 changes: 0 additions & 2 deletions stm32cube/common_ll/include/stm32_ll_gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <autoconf.h>

#if defined(CONFIG_SOC_SERIES_STM32C0X)
#include <stm32c0xx_ll_gpio.h>
#elif defined(CONFIG_SOC_SERIES_STM32F0X)
Expand Down
2 changes: 0 additions & 2 deletions stm32cube/common_ll/include/stm32_ll_hrtim.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <autoconf.h>

#if defined(CONFIG_SOC_SERIES_STM32F3X)
#include <stm32f3xx_ll_hrtim.h>
#elif defined(CONFIG_SOC_SERIES_STM32G4X)
Expand Down
2 changes: 0 additions & 2 deletions stm32cube/common_ll/include/stm32_ll_hsem.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <autoconf.h>

#if defined(CONFIG_SOC_SERIES_STM32H7X)
#include <stm32h7xx_ll_hsem.h>
#elif defined(CONFIG_SOC_SERIES_STM32MP1X)
Expand Down
2 changes: 0 additions & 2 deletions stm32cube/common_ll/include/stm32_ll_i2c.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <autoconf.h>

#if defined(CONFIG_SOC_SERIES_STM32C0X)
#include <stm32c0xx_ll_i2c.h>
#elif defined(CONFIG_SOC_SERIES_STM32F0X)
Expand Down
2 changes: 0 additions & 2 deletions stm32cube/common_ll/include/stm32_ll_i3c.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <autoconf.h>

#if defined(CONFIG_SOC_SERIES_STM32H5X)
#include <stm32h5xx_ll_i3c.h>
#elif defined(CONFIG_SOC_SERIES_STM32H7RSX)
Expand Down
2 changes: 0 additions & 2 deletions stm32cube/common_ll/include/stm32_ll_icache.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <autoconf.h>

#if defined(CONFIG_SOC_SERIES_STM32H5X)
#include <stm32h5xx_ll_icache.h>
#elif defined(CONFIG_SOC_SERIES_STM32H7RSX)
Expand Down
2 changes: 0 additions & 2 deletions stm32cube/common_ll/include/stm32_ll_ipcc.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <autoconf.h>

#if defined(CONFIG_SOC_SERIES_STM32MP1X)
#include <stm32mp1xx_ll_ipcc.h>
#elif defined(CONFIG_SOC_SERIES_STM32WBX)
Expand Down
2 changes: 0 additions & 2 deletions stm32cube/common_ll/include/stm32_ll_iwdg.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <autoconf.h>

#if defined(CONFIG_SOC_SERIES_STM32C0X)
#include <stm32c0xx_ll_iwdg.h>
#elif defined(CONFIG_SOC_SERIES_STM32F0X)
Expand Down
2 changes: 0 additions & 2 deletions stm32cube/common_ll/include/stm32_ll_lpgpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <autoconf.h>

#if defined(CONFIG_SOC_SERIES_STM32U5X)
#include <stm32u5xx_ll_lpgpio.h>
#endif
2 changes: 0 additions & 2 deletions stm32cube/common_ll/include/stm32_ll_lptim.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <autoconf.h>

#if defined(CONFIG_SOC_SERIES_STM32F4X)
#include <stm32f4xx_ll_lptim.h>
#elif defined(CONFIG_SOC_SERIES_STM32F7X)
Expand Down
2 changes: 0 additions & 2 deletions stm32cube/common_ll/include/stm32_ll_lpuart.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <autoconf.h>

#if defined(CONFIG_SOC_SERIES_STM32G0X)
#include <stm32g0xx_ll_lpuart.h>
#elif defined(CONFIG_SOC_SERIES_STM32G4X)
Expand Down
2 changes: 0 additions & 2 deletions stm32cube/common_ll/include/stm32_ll_mdma.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <autoconf.h>

#if defined(CONFIG_SOC_SERIES_STM32H7X)
#include <stm32h7xx_ll_mdma.h>
#endif
2 changes: 0 additions & 2 deletions stm32cube/common_ll/include/stm32_ll_opamp.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <autoconf.h>

#if defined(CONFIG_SOC_SERIES_STM32F3X)
#include <stm32f3xx_ll_opamp.h>
#elif defined(CONFIG_SOC_SERIES_STM32G4X)
Expand Down
2 changes: 0 additions & 2 deletions stm32cube/common_ll/include/stm32_ll_pka.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <autoconf.h>

#if defined(CONFIG_SOC_SERIES_STM32H5X)
#include <stm32h5xx_ll_pka.h>
#elif defined(CONFIG_SOC_SERIES_STM32H7RSX)
Expand Down
2 changes: 0 additions & 2 deletions stm32cube/common_ll/include/stm32_ll_pwr.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <autoconf.h>

#if defined(CONFIG_SOC_SERIES_STM32C0X)
#include <stm32c0xx_ll_pwr.h>
#elif defined(CONFIG_SOC_SERIES_STM32F0X)
Expand Down
2 changes: 0 additions & 2 deletions stm32cube/common_ll/include/stm32_ll_rcc.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <autoconf.h>

#if defined(CONFIG_SOC_SERIES_STM32C0X)
#include <stm32c0xx_ll_rcc.h>
#elif defined(CONFIG_SOC_SERIES_STM32F0X)
Expand Down
2 changes: 0 additions & 2 deletions stm32cube/common_ll/include/stm32_ll_rng.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <autoconf.h>

#if defined(CONFIG_SOC_SERIES_STM32F2X)
#include <stm32f2xx_ll_rng.h>
#elif defined(CONFIG_SOC_SERIES_STM32F4X)
Expand Down
2 changes: 0 additions & 2 deletions stm32cube/common_ll/include/stm32_ll_rtc.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <autoconf.h>

#if defined(CONFIG_SOC_SERIES_STM32C0X)
#include <stm32c0xx_ll_rtc.h>
#elif defined(CONFIG_SOC_SERIES_STM32F0X)
Expand Down
2 changes: 0 additions & 2 deletions stm32cube/common_ll/include/stm32_ll_sdmmc.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <autoconf.h>

#if defined(CONFIG_SOC_SERIES_STM32F1X)
#include <stm32f1xx_ll_sdmmc.h>
#elif defined(CONFIG_SOC_SERIES_STM32F2X)
Expand Down
2 changes: 0 additions & 2 deletions stm32cube/common_ll/include/stm32_ll_spi.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <autoconf.h>

#if defined(CONFIG_SOC_SERIES_STM32C0X)
#include <stm32c0xx_ll_spi.h>
#elif defined(CONFIG_SOC_SERIES_STM32F0X)
Expand Down
2 changes: 0 additions & 2 deletions stm32cube/common_ll/include/stm32_ll_swpmi.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <autoconf.h>

#if defined(CONFIG_SOC_SERIES_STM32H7X)
#include <stm32h7xx_ll_swpmi.h>
#elif defined(CONFIG_SOC_SERIES_STM32L4X)
Expand Down
Loading

0 comments on commit 2d9f676

Please sign in to comment.