/** * @brief Deactivates the EXT peripheral. * * @param[in] extp pointer to the @p EXTDriver object * * @api */ void extStop(EXTDriver *extp) { chDbgCheck(extp != NULL, "extStop"); chSysLock(); chDbgAssert((extp->state == EXT_STOP) || (extp->state == EXT_ACTIVE), "extStop(), #1", "invalid state"); ext_lld_stop(extp); extp->state = EXT_STOP; chSysUnlock(); }
/** * @brief Deactivates the EXT peripheral. * * @param[in] extp pointer to the @p EXTDriver object * * @api */ void extStop(EXTDriver *extp) { osalDbgCheck(extp != NULL); osalSysLock(); osalDbgAssert((extp->state == EXT_STOP) || (extp->state == EXT_ACTIVE), "invalid state"); ext_lld_stop(extp); extp->state = EXT_STOP; osalSysUnlock(); }