Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mcu/nordic: Disable features not on nRF52810 & 11 #3113

Merged
merged 1 commit into from
Dec 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hw/mcu/nordic/nrf52xxx/include/nrfx52810_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
#endif

#ifndef NRFX_TIMER3_ENABLED
#define NRFX_TIMER3_ENABLED 1
#define NRFX_TIMER3_ENABLED 0
#endif

#ifndef NRFX_TWIM_ENABLED
Expand Down
2 changes: 1 addition & 1 deletion hw/mcu/nordic/nrf52xxx/include/nrfx52811_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
#endif

#ifndef NRFX_TIMER3_ENABLED
#define NRFX_TIMER3_ENABLED 1
#define NRFX_TIMER3_ENABLED 0
#endif

#ifndef NRFX_TWIM_ENABLED
Expand Down
7 changes: 6 additions & 1 deletion hw/mcu/nordic/nrf52xxx/syscfg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ syscfg.defs:
MCU_ICACHE_ENABLED:
description: >
Enabled Instruction code cache
value: 1
value: 0
restrictions:
- '!(MCU_TARGET == "nRF52810" || MCU_TARGET == "nRF52811")'

MCU_COMMON_STARTUP:
description: >
Expand Down Expand Up @@ -482,6 +484,9 @@ syscfg.vals.MCU_NRF52832:
syscfg.vals.MCU_NRF52840:
MCU_TARGET: nRF52840

syscfg.vals.'(MCU_TARGET == "nRF52832" || MCU_TARGET == "nRF52840")':
MCU_ICACHE_ENABLED: 1

syscfg.vals.XTAL_32768:
MCU_LFCLK_SOURCE: LFXO
syscfg.vals.XTAL_RC:
Expand Down