/** * @brief Deactivates the DAC peripheral. * @note Deactivating the peripheral also enforces a release of the slave * select line. * * @param[in] dacp pointer to the @p DACDriver object * * @api */ void dacStop(DACDriver *dacp) { chDbgCheck(dacp != NULL, "dacStop"); chSysLock(); chDbgAssert((dacp->state == DAC_STOP) || (dacp->state == DAC_READY), "dacStop(), #1", "invalid state"); dac_lld_stop(dacp); dacp->state = DAC_STOP; chSysUnlock(); }
/** * @brief Deactivates the DAC peripheral. * @note Deactivating the peripheral also enforces a release of the slave * select line. * * @param[in] dacp pointer to the @p DACDriver object * * @api */ void dacStop(DACDriver *dacp) { osalDbgCheck(dacp != NULL); osalSysLock(); osalDbgAssert((dacp->state == DAC_STOP) || (dacp->state == DAC_READY), "invalid state"); dac_lld_stop(dacp); dacp->state = DAC_STOP; osalSysUnlock(); }