Skip to content

Commit c250781

Browse files
authored
Merge pull request #12518 from rajkan01/intin_remove_deprecated
Remove InterruptIn deprecated APIs
2 parents 2d93a45 + 1002a3a commit c250781

File tree

1 file changed

+0
-38
lines changed

1 file changed

+0
-38
lines changed

drivers/InterruptIn.h

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -104,50 +104,12 @@ class InterruptIn : private NonCopyable<InterruptIn> {
104104
*/
105105
void rise(Callback<void()> func);
106106

107-
/** Attach a member function to call when a rising edge occurs on the input
108-
*
109-
* @param obj pointer to the object to call the member function on
110-
* @param method pointer to the member function to be called
111-
* @deprecated
112-
* The rise function does not support cv-qualifiers. Replaced by
113-
* rise(callback(obj, method)).
114-
*/
115-
template<typename T, typename M>
116-
MBED_DEPRECATED_SINCE("mbed-os-5.1",
117-
"The rise function does not support cv-qualifiers. Replaced by "
118-
"rise(callback(obj, method)).")
119-
void rise(T *obj, M method)
120-
{
121-
core_util_critical_section_enter();
122-
rise(callback(obj, method));
123-
core_util_critical_section_exit();
124-
}
125-
126107
/** Attach a function to call when a falling edge occurs on the input
127108
*
128109
* @param func A pointer to a void function, or 0 to set as none
129110
*/
130111
void fall(Callback<void()> func);
131112

132-
/** Attach a member function to call when a falling edge occurs on the input
133-
*
134-
* @param obj pointer to the object to call the member function on
135-
* @param method pointer to the member function to be called
136-
* @deprecated
137-
* The fall function does not support cv-qualifiers. Replaced by
138-
* fall(callback(obj, method)).
139-
*/
140-
template<typename T, typename M>
141-
MBED_DEPRECATED_SINCE("mbed-os-5.1",
142-
"The fall function does not support cv-qualifiers. Replaced by "
143-
"fall(callback(obj, method)).")
144-
void fall(T *obj, M method)
145-
{
146-
core_util_critical_section_enter();
147-
fall(callback(obj, method));
148-
core_util_critical_section_exit();
149-
}
150-
151113
/** Set the input pin mode
152114
*
153115
* @param pull PullUp, PullDown, PullNone, PullDefault

0 commit comments

Comments
 (0)