Skip to content

Commit 0df0a1a

Browse files
committed
modules: hal_infineon: Adding AutAnalog files to build
*Adds AutAnalog related files to the cmakeu list and adding KConfig definitions for AutAnalog and AutAnalog SAR ADC. *Updates hal_infineon in west manifest. *Updates infineon_kconfig.h to prevent multiple declarations of defines. Signed-off-by: John Batch <[email protected]>
1 parent e5e2b35 commit 0df0a1a

File tree

5 files changed

+26
-8
lines changed

5 files changed

+26
-8
lines changed

modules/hal_infineon/Kconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ config USE_INFINEON_HPPASS_ANALOG
2424
help
2525
Enable Infineon HPPASS Analog PDL library support
2626

27+
config USE_INFINEON_AUTANALOG_SAR_ADC
28+
bool
29+
help
30+
Enable AutAnalog SAR ADC HAL module driver for Infineon devices
31+
2732
config USE_INFINEON_DMA
2833
bool
2934
help

modules/hal_infineon/infineon_kconfig.h

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,33 @@
1515

1616
#if defined(CONFIG_SOC_PSE846GPS2DBZC4A)
1717

18+
#ifndef PSE846GPS2DBZC4A
1819
#define PSE846GPS2DBZC4A
20+
#endif /* PSE846GPS2DBZC4A */
1921

2022
#if defined(CONFIG_CPU_CORTEX_M33)
2123

2224
#if defined(CONFIG_TRUSTED_EXECUTION_SECURE)
2325
#define COMPONENT_SECURE_DEVICE
24-
#endif /* CONFIG_TRUSTED_EXECUTION_SECURE */
26+
#endif /* CONFIG_TRUSTED_EXECUTION_SECURE* */
2527

28+
#ifndef COMPONENT_CM33
2629
#define COMPONENT_CM33
30+
#endif /* COMPONENT_CM33 */
31+
#ifndef CORE_NAME_CM33_0
2732
#define CORE_NAME_CM33_0
33+
#endif /* CORE_NAME_CM33_0 */
2834

2935
#elif defined(CONFIG_CPU_CORTEX_M55)
3036

37+
#ifndef COMPONENT_CM55
3138
#define COMPONENT_CM55
39+
#endif /* COMPONENT_CM55 */
40+
#ifndef CORE_NAME_CM55_0
3241
#define CORE_NAME_CM55_0
42+
#endif /* CORE_NAME_CM55_0 */
3343

34-
#endif /* CONFIG_CPU_CORTEXT_M33*/
35-
#endif /* CONFIG_SOC_PSE846GPS2DBZC4A*/
44+
#endif /* CONFIG_CPU_CORTEXT_M33* */
45+
#endif /* CONFIG_SOC_PSE846GPS2DBZC4A* */
3646

37-
#endif /* INFINEON_KCONFIG_H__*/
47+
#endif /* INFINEON_KCONFIG_H__ */

modules/hal_infineon/mtb-dsl-pse8xxgp/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ zephyr_library_sources_ifdef(CONFIG_USE_INFINEON_TIMER ${pdl_drv_dir}/source/cy_
3838
zephyr_library_sources_ifdef(CONFIG_USE_INFINEON_UART ${pdl_drv_dir}/source/cy_scb_uart.c)
3939
zephyr_library_sources_ifdef(CONFIG_USE_INFINEON_WDT ${pdl_drv_dir}/source/cy_wdt.c)
4040

41-
zephyr_library_sources_ifdef(CONFIG_USE_INFINEON_ADC ${pdl_drv_dir}/source/cy_systrimm.c)
42-
zephyr_library_sources_ifdef(CONFIG_USE_INFINEON_ADC ${pdl_drv_dir}/source/cy_rram.c)
41+
zephyr_library_sources_ifdef(CONFIG_USE_INFINEON_AUTANALOG_SAR_ADC ${pdl_drv_dir}/source/cy_systrimm.c)
42+
zephyr_library_sources_ifdef(CONFIG_USE_INFINEON_AUTANALOG_SAR_ADC ${pdl_drv_dir}/source/cy_rram.c)
4343

4444
if(CONFIG_USE_INFINEON_TRNG)
4545
zephyr_library_sources(${pdl_drv_dir}/source/cy_crypto.c)
@@ -51,7 +51,7 @@ if(CONFIG_USE_INFINEON_UART OR CONFIG_USE_INFINEON_I2C OR CONFIG_USE_INFINEON_SP
5151
zephyr_library_sources(${pdl_drv_dir}/source/cy_scb_common.c)
5252
endif()
5353

54-
if(CONFIG_USE_INFINEON_DMA OR CONFIG_USE_INFINEON_ADC OR CONFIG_USE_INFINEON_SMIF)
54+
if(CONFIG_USE_INFINEON_DMA OR CONFIG_USE_INFINEON_SMIF)
5555
zephyr_library_sources(${pdl_drv_dir}/source/cy_dma.c)
5656
zephyr_library_sources(${pdl_drv_dir}/source/cy_dmac.c)
5757
endif()

modules/hal_infineon/zephyr-ifx-cycfg/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ if(CONFIG_SOC_FAMILY_INFINEON_EDGE)
88

99
zephyr_include_directories(${zephyr_ifx_cycfg_dir})
1010
zephyr_library_sources(${zephyr_ifx_cycfg_dir}/cycfg_qspi_memslot.c)
11+
zephyr_library_sources(${zephyr_ifx_cycfg_dir}/ifx_cycfg_init.c)
12+
zephyr_library_sources_ifdef(CONFIG_USE_INFINEON_AUTANALOG_SAR_ADC
13+
${zephyr_ifx_cycfg_dir}/ifx_autanalog.c)
1114
endif()
1215

1316
if(CONFIG_SOC_SERIES_PSC3)

west.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ manifest:
185185
groups:
186186
- hal
187187
- name: hal_infineon
188-
revision: 58ce131beba8ad94e58837b7d0f5e31a7894790a
188+
revision: pull/33/head
189189
path: modules/hal/infineon
190190
groups:
191191
- hal

0 commit comments

Comments
 (0)