Skip to content

Remove InterruptIn deprecated APIs #12518

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 27, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 0 additions & 38 deletions drivers/InterruptIn.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,50 +104,12 @@ class InterruptIn : private NonCopyable<InterruptIn> {
*/
void rise(Callback<void()> func);

/** Attach a member function to call when a rising edge occurs on the input
*
* @param obj pointer to the object to call the member function on
* @param method pointer to the member function to be called
* @deprecated
* The rise function does not support cv-qualifiers. Replaced by
* rise(callback(obj, method)).
*/
template<typename T, typename M>
MBED_DEPRECATED_SINCE("mbed-os-5.1",
"The rise function does not support cv-qualifiers. Replaced by "
"rise(callback(obj, method)).")
void rise(T *obj, M method)
{
core_util_critical_section_enter();
rise(callback(obj, method));
core_util_critical_section_exit();
}

/** Attach a function to call when a falling edge occurs on the input
*
* @param func A pointer to a void function, or 0 to set as none
*/
void fall(Callback<void()> func);

/** Attach a member function to call when a falling edge occurs on the input
*
* @param obj pointer to the object to call the member function on
* @param method pointer to the member function to be called
* @deprecated
* The fall function does not support cv-qualifiers. Replaced by
* fall(callback(obj, method)).
*/
template<typename T, typename M>
MBED_DEPRECATED_SINCE("mbed-os-5.1",
"The fall function does not support cv-qualifiers. Replaced by "
"fall(callback(obj, method)).")
void fall(T *obj, M method)
{
core_util_critical_section_enter();
fall(callback(obj, method));
core_util_critical_section_exit();
}

/** Set the input pin mode
*
* @param pull PullUp, PullDown, PullNone, PullDefault
Expand Down