1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-20 12:03:52 +01:00
RIOT/pkg/nimble/patches/0001-port-npl-riot-add-svc_bas-config.patch
Joel Challis 2b2cc60a94 pkg/nimble: Fix compilation of 'USEMODULE += nimble_svc_bas'
`pkg/nimble/Makefile.include` includes logic for the module, however the corresponding Make target is missing.

This produces the following error:
```
make[3]: *** No rule to make target 'nimble_svc_bas', needed by 'all'.  Stop.
```
2025-02-09 09:36:47 +00:00

36 lines
1.1 KiB
Diff

From 3cd2f7dc9f2c17ffb83499ab569a291988cbbc08 Mon Sep 17 00:00:00 2001
From: Marian Buschsieweke <marian.buschsieweke@ml-pa.com>
Date: Sat, 8 Feb 2025 13:54:20 +0100
Subject: [PATCH] port/npl/riot: add svc_bas config
---
porting/npl/riot/include/syscfg/syscfg.h | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/porting/npl/riot/include/syscfg/syscfg.h b/porting/npl/riot/include/syscfg/syscfg.h
index 84bdea5..a0b49c8 100644
--- a/porting/npl/riot/include/syscfg/syscfg.h
+++ b/porting/npl/riot/include/syscfg/syscfg.h
@@ -670,6 +670,19 @@
#define MYNEWT_VAL_BASELIBC_PRESENT (1)
#endif
+/*** @apache-mynewt-nimble/nimble/host/services/bas */
+#ifndef MYNEWT_VAL_BLE_SVC_BAS_BATTERY_LEVEL_NOTIFY_ENABLE
+#define MYNEWT_VAL_BLE_SVC_BAS_BATTERY_LEVEL_NOTIFY_ENABLE (1)
+#endif
+
+#ifndef MYNEWT_VAL_BLE_SVC_BAS_BATTERY_LEVEL_READ_PERM
+#define MYNEWT_VAL_BLE_SVC_BAS_BATTERY_LEVEL_READ_PERM (0)
+#endif
+
+#ifndef MYNEWT_VAL_BLE_SVC_BAS_SYSINIT_STAGE
+#define MYNEWT_VAL_BLE_SVC_BAS_SYSINIT_STAGE (303)
+#endif
+
/*** @apache-mynewt-core/sys/console/stub */
#ifndef MYNEWT_VAL_CONSOLE_UART_BAUD
#define MYNEWT_VAL_CONSOLE_UART_BAUD (115200)
--
2.43.0