Using a typedef to define the ISR function pointer type

This commit is contained in:
Th3maz1ng 2025-05-11 16:29:15 +02:00
parent 88d236bd45
commit 6f366fa386

View File

@ -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;
};