Skip to content

Commit b7c9e9b

Browse files
using std::function to allow passing object functions
1 parent 57d878a commit b7c9e9b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libraries/Ethernet/src/EthernetDriver.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
#include "r_ether_phy.h"
66
#include "r_ether_api.h"
77
#include "r_ether.h"
8+
#include <functional>
89

9-
using EtherCallback_f = void (*)(void);
10+
using EtherCallback_f = std::function<void(void)>;
1011

1112
#define ETHERNET_IRQ_PRIORITY 10
1213

0 commit comments

Comments
 (0)