From 8ce9f72f4a9648ee3ae6ab2a87cebf1f087decdd Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Wed, 27 Nov 2024 12:50:51 +0100 Subject: [PATCH] try to configure alternate toggle pin and toggle forever --- src/main.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main.c b/src/main.c index 8303a8d..9920c54 100644 --- a/src/main.c +++ b/src/main.c @@ -592,6 +592,15 @@ int main(void) gpio_pin_configure_dt(×ync_pin, GPIO_OUTPUT_INACTIVE); #endif +#if DT_NODE_HAS_STATUS(TIMESYNC_GPIO, okay) + gpio_pin_configure_dt(&alternate_toggle_pin, GPIO_OUTPUT_INACTIVE); +#endif + + // try to toggle pin + while (1) { + gpio_pin_toggle_dt( &alternate_toggle_pin ); + } + bt_hci_raw_cmd_ext_register(&cmd_list, 1); #endif