2024-05-16 08:44:08 -04:00
|
|
|
# Copyright (c) 2024 Microchip Technology Inc.
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
# Microchip MEC174x MCU series configuration options
|
|
|
|
|
|
|
|
if SOC_SERIES_MEC174X
|
|
|
|
|
|
|
|
config NUM_IRQS
|
|
|
|
# must be >= the highest interrupt number used
|
|
|
|
# - include the UART interrupts
|
|
|
|
# All NVIC external sources.
|
|
|
|
default 194
|
|
|
|
|
|
|
|
config CORTEX_M_SYSTICK
|
2025-04-04 11:29:26 -04:00
|
|
|
depends on !MCHP_MEC5_KTIMER
|
|
|
|
|
|
|
|
config SYS_CLOCK_HW_CYCLES_PER_SEC
|
|
|
|
default $(dt_node_int_prop_int,/cpus/cpu@0,clock-frequency) if CORTEX_M_SYSTICK
|
|
|
|
default $(dt_node_int_prop_int,/soc/timer@40007400,clock-frequency) if MCHP_MEC5_KTIMER
|
|
|
|
|
|
|
|
if MCHP_MEC5_KTIMER
|
|
|
|
config SYS_CLOCK_TICKS_PER_SEC
|
|
|
|
default $(dt_node_int_prop_int,/soc/timer@40007400,clock-frequency)
|
|
|
|
endif # MCHP_MEC5_KTIMER
|
2024-05-16 08:44:08 -04:00
|
|
|
|
|
|
|
endif # SOC_SERIES_MEC174X
|