Skip to content

Commit

Permalink
mcu/nordic: Disable features not on nRF52810 & 11
Browse files Browse the repository at this point in the history
They don't have timer 3 or instruction cache
  • Loading branch information
Uks2 authored and sjanc committed Dec 1, 2023
1 parent 14f944c commit 5d679e6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
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

0 comments on commit 5d679e6

Please sign in to comment.