diff options
| -rw-r--r-- | os/various/cpp_wrappers/ch.cpp | 5 | ||||
| -rw-r--r-- | os/various/cpp_wrappers/ch.hpp | 12 | 
2 files changed, 17 insertions, 0 deletions
| diff --git a/os/various/cpp_wrappers/ch.cpp b/os/various/cpp_wrappers/ch.cpp index e8db4c013..8437719af 100644 --- a/os/various/cpp_wrappers/ch.cpp +++ b/os/various/cpp_wrappers/ch.cpp @@ -556,6 +556,11 @@ namespace chibios_rt {      return chEvtGetAndClearFlags(&ev_listener);
    }
 +  flagsmask_t EvtListener::getAndClearFlagsI(void) {
 +
 +    return chEvtGetAndClearFlagsI(&ev_listener);
 +  }
 +
    /*------------------------------------------------------------------------*
     * chibios_rt::EvtSource                                                *
     *------------------------------------------------------------------------*/
 diff --git a/os/various/cpp_wrappers/ch.hpp b/os/various/cpp_wrappers/ch.hpp index 05bc1b33d..4cc6704b9 100644 --- a/os/various/cpp_wrappers/ch.hpp +++ b/os/various/cpp_wrappers/ch.hpp @@ -1302,6 +1302,18 @@ namespace chibios_rt {       * @api
       */
      flagsmask_t getAndClearFlags(void);
 +
 +    /**
 +     * @brief   Returns the flags associated to an @p EventListener.
 +     * @details The flags are returned and the @p EventListener flags mask is
 +     *          cleared.
 +     *
 +     * @return              The flags added to the listener by the associated
 +     *                      event source.
 +     *
 +     * @iclass
 +     */
 +    flagsmask_t getAndClearFlagsI(void);
    };
    /*------------------------------------------------------------------------*
 | 
