Skip to content

Commit e690ec0

Browse files
committed
moved event_callback_t for compatibility with many drivers
1 parent fbbda73 commit e690ec0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

hal/api/Callback.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -873,6 +873,8 @@ class Callback<R()> {
873873
R (*_thunk)(void*, void*);
874874
};
875875

876+
typedef Callback<void(int)> event_callback_t;
877+
876878

877879
} // namespace mbed
878880

hal/api/FunctionPointer.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ class FunctionPointerArg1<R, void> : public Callback<R()> {
5656
};
5757

5858
typedef FunctionPointerArg1<void, void> FunctionPointer;
59-
typedef FunctionPointerArg1<void, int> event_callback_t;
6059

6160

6261
} // namespace mbed

0 commit comments

Comments
 (0)