@@ -60,10 +60,14 @@ class InterruptManager : private NonCopyable<InterruptManager> {
60
60
*
61
61
* @return the only instance of this class
62
62
*/
63
+ MBED_DEPRECATED_SINCE (" mbed-os-5.6" , " This class is not part of the "
64
+ " public API of mbed-os and is being removed in the future." )
63
65
static InterruptManager* get ();
64
66
65
67
/* * Destroy the current instance of the interrupt manager
66
68
*/
69
+ MBED_DEPRECATED_SINCE (" mbed-os-5.6" , " This class is not part of the "
70
+ " public API of mbed-os and is being removed in the future." )
67
71
static void destroy ();
68
72
69
73
/* * Add a handler for an interrupt at the end of the handler list
@@ -74,6 +78,8 @@ class InterruptManager : private NonCopyable<InterruptManager> {
74
78
* @returns
75
79
* The function object created for 'function'
76
80
*/
81
+ MBED_DEPRECATED_SINCE (" mbed-os-5.6" , " This class is not part of the "
82
+ " public API of mbed-os and is being removed in the future." )
77
83
pFunctionPointer_t add_handler (void (*function)(void ), IRQn_Type irq) {
78
84
// Underlying call is thread safe
79
85
return add_common (function, irq);
@@ -87,6 +93,8 @@ class InterruptManager : private NonCopyable<InterruptManager> {
87
93
* @returns
88
94
* The function object created for 'function'
89
95
*/
96
+ MBED_DEPRECATED_SINCE (" mbed-os-5.6" , " This class is not part of the "
97
+ " public API of mbed-os and is being removed in the future." )
90
98
pFunctionPointer_t add_handler_front (void (*function)(void ), IRQn_Type irq) {
91
99
// Underlying call is thread safe
92
100
return add_common (function, irq, true );
@@ -102,6 +110,8 @@ class InterruptManager : private NonCopyable<InterruptManager> {
102
110
* The function object created for 'tptr' and 'mptr'
103
111
*/
104
112
template <typename T>
113
+ MBED_DEPRECATED_SINCE (" mbed-os-5.6" , " This class is not part of the "
114
+ " public API of mbed-os and is being removed in the future." )
105
115
pFunctionPointer_t add_handler (T* tptr, void (T::*mptr)(void ), IRQn_Type irq) {
106
116
// Underlying call is thread safe
107
117
return add_common (tptr, mptr, irq);
@@ -117,6 +127,8 @@ class InterruptManager : private NonCopyable<InterruptManager> {
117
127
* The function object created for 'tptr' and 'mptr'
118
128
*/
119
129
template <typename T>
130
+ MBED_DEPRECATED_SINCE (" mbed-os-5.6" , " This class is not part of the "
131
+ " public API of mbed-os and is being removed in the future." )
120
132
pFunctionPointer_t add_handler_front (T* tptr, void (T::*mptr)(void ), IRQn_Type irq) {
121
133
// Underlying call is thread safe
122
134
return add_common (tptr, mptr, irq, true );
@@ -130,6 +142,8 @@ class InterruptManager : private NonCopyable<InterruptManager> {
130
142
* @returns
131
143
* true if the handler was found and removed, false otherwise
132
144
*/
145
+ MBED_DEPRECATED_SINCE (" mbed-os-5.6" , " This class is not part of the "
146
+ " public API of mbed-os and is being removed in the future." )
133
147
bool remove_handler (pFunctionPointer_t handler, IRQn_Type irq);
134
148
135
149
private:
0 commit comments