From 1762c56956bafd6fc0636516b494dfa935ff8aec Mon Sep 17 00:00:00 2001 From: Bernhard Guillon Date: Wed, 25 Dec 2024 00:34:42 +0100 Subject: space_light: first version TODO: pwm initialization is currently best guess could be wrong active low|high TODO: implement pairing TODO: implement timer TODO: use the button for something TODO: implement a better client --- usr/space_light/src/stubs/re_stubs.c | 51 ++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 usr/space_light/src/stubs/re_stubs.c (limited to 'usr/space_light/src/stubs/re_stubs.c') diff --git a/usr/space_light/src/stubs/re_stubs.c b/usr/space_light/src/stubs/re_stubs.c new file mode 100644 index 0000000..ca79e2f --- /dev/null +++ b/usr/space_light/src/stubs/re_stubs.c @@ -0,0 +1,51 @@ +#include "include.h" + +#include "attm.h" +#include "gapm.h" +#include "gattm.h" +#include "l2cm.h" +#include "rwble_hl.h" + +void rwble_hl_init(void) { + bk_printf("BLE stack init: %s\n", __func__); + attm_init(0); + gapm_init(0); + gattm_init(0); + l2cm_init(0); +} + +/* +0003dca0 : + 3dca0: b508 push {r3, lr} + 3dca2: 2000 movs r0, #0 + 3dca4: f7f0 fc86 bl 2e5b4 + 3dca8: 2000 movs r0, #0 + 3dcaa: f7ec fe3d bl 2a928 + 3dcae: 2000 movs r0, #0 + 3dcb0: f7ef fdda bl 2d868 + 3dcb4: 2000 movs r0, #0 + 3dcb6: f006 fa3b bl 44130 + 3dcba: bd08 pop {r3, pc} +*/ + +void rwble_hl_reset(void) { + bk_printf("BLE stack reset: %s\n", __func__); + attm_init(1); + gapm_init(1); + gattm_init(1); + l2cm_init(1); +} + +/* +0003dcc8 : + 3dcc8: b508 push {r3, lr} + 3dcca: 2001 movs r0, #1 + 3dccc: f7f0 fc86 bl 2e5dc + 3dcd0: 2001 movs r0, #1 + 3dcd2: f7ec fe3d bl 2a950 + 3dcd6: 2001 movs r0, #1 + 3dcd8: f7ef fdda bl 2d890 + 3dcdc: 2001 movs r0, #1 + 3dcde: f006 fa2d bl 4413c + 3dce2: bd08 pop {r3, pc} +*/ -- cgit v1.2.3