Skip to content

Commit ea4d3aa

Browse files
committed
modules: hal_nordic: nrfs: Disabling subscription in the temp service
Code optimization for platforms which don't use subscription feature in the temperature service. Signed-off-by: Rafal Dyla <[email protected]>
1 parent f52d71c commit ea4d3aa

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

modules/hal_nordic/nrfs/Kconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,5 +148,9 @@ if NRFS_DVFS_LOCAL_DOMAIN
148148
rsource "dvfs/Kconfig"
149149
endif # NRFS_DVFS_LOCAL_DOMAIN
150150

151+
config NRFS_TEMP_SERVICE_HAS_SUBSCRIPTION_SERVICE
152+
bool
153+
depends on NRFS_HAS_TEMP_SERVICE
154+
151155
endif # NRFS
152156
endmenu

modules/hal_nordic/nrfs/nrfs_config.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
#define NRFS_TEMP_SERVICE_ENABLED
1313
#endif
1414

15+
#ifdef CONFIG_NRFS_TEMP_SERVICE_HAS_SUBSCRIPTION_SERVICE
16+
#define NRFS_TEMP_SERVICE_HAS_SUBSCRIPTION_SERVICE
17+
#endif
18+
1519
#ifdef CONFIG_NRFS_MRAM_SERVICE_ENABLED
1620
#define NRFS_MRAM_SERVICE_ENABLED
1721
#endif

soc/nordic/nrf92/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ config SOC_NRF9230_ENGB_CPUAPP
2828
select NRFS_HAS_PMIC_SERVICE
2929
select NRFS_HAS_TEMP_SERVICE
3030
select NRFS_HAS_VBUS_DETECTOR_SERVICE
31+
select NRFS_TEMP_SERVICE_HAS_SUBSCRIPTION_SERVICE
3132

3233
config SOC_NRF9230_ENGB_CPURAD
3334
select ARM
@@ -46,6 +47,7 @@ config SOC_NRF9230_ENGB_CPURAD
4647
select NRFS_HAS_MRAM_SERVICE
4748
select NRFS_HAS_PMIC_SERVICE
4849
select NRFS_HAS_TEMP_SERVICE
50+
select NRFS_TEMP_SERVICE_HAS_SUBSCRIPTION_SERVICE
4951

5052
config SOC_NRF9230_ENGB_CPUPPR
5153
select RISCV_CORE_NORDIC_VPR

west.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ manifest:
200200
groups:
201201
- hal
202202
- name: hal_nordic
203-
revision: 9587b1dcb83d24ab74e89837843a5f7d573f7059
203+
revision: pull/307/head
204204
path: modules/hal/nordic
205205
groups:
206206
- hal

0 commit comments

Comments
 (0)