From 6f366fa38629e7706fb8b6adc3320c075822d02c Mon Sep 17 00:00:00 2001 From: Th3maz1ng Date: Sun, 11 May 2025 16:29:15 +0200 Subject: [PATCH] Using a typedef to define the ISR function pointer type --- src/app/MBPeripherals.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/MBPeripherals.h b/src/app/MBPeripherals.h index 2e9b335..f5b6dab 100644 --- a/src/app/MBPeripherals.h +++ b/src/app/MBPeripherals.h @@ -14,6 +14,8 @@ void defaultExtIntIsr(void); +typedef void (*ExtIntIsr)(void); + class MBPeripherals { public: @@ -72,7 +74,7 @@ class MBPeripherals void _3V3PowerRail(State state); const BoardConfig &_boardConfig; const RF24 _NRF; - const void (*_extIntIsr)(void); + ExtIntIsr _extIntIsr; };