Skip to content

Commit 4b774a1

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 44f8889 commit 4b774a1

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
@@ -14,6 +14,11 @@ config USE_INFINEON_ADC
1414
help
1515
Enable Analog-to-Digital Converter (ADC) HAL module driver for Infineon devices
1616

17+
config USE_INFINEON_AUTANALOG_SAR_ADC
18+
bool
19+
help
20+
Enable AutAnalog SAR ADC HAL module driver for Infineon devices
21+
1722
config USE_INFINEON_DMA
1823
bool
1924
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,4 +8,7 @@ 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()

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: 3ef39bda93a67cf2ef735f1679aee5a103f92275
188+
revision: pull/33/head
189189
path: modules/hal/infineon
190190
groups:
191191
- hal

0 commit comments

Comments
 (0)