Merge pull request #10940 from mjm2017/master

Deinitialize the pin definition
pull/11541/head
Martin Kojtal 2019-09-20 14:18:37 +02:00 committed by GitHub
commit 99c19b5288
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -125,7 +125,9 @@ public:
virtual ~AnalogOut()
{
// Do nothing
/** Deinitialize pin configuration.
*/
analogout_free(&_dac);
}
protected:

View File

@ -48,7 +48,6 @@ void analogout_init(dac_t *obj, PinName pin);
/** Release the analogout object
*
* Note: This is not currently used in the mbed-drivers
* @param obj The analogout object
*/
void analogout_free(dac_t *obj);