Skip to content

Commit 99c19b5

Browse files
authored
Merge pull request #10940 from mjm2017/master
Deinitialize the pin definition
2 parents c225f8f + 5b951d4 commit 99c19b5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

drivers/AnalogOut.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,9 @@ class AnalogOut {
125125

126126
virtual ~AnalogOut()
127127
{
128-
// Do nothing
128+
/** Deinitialize pin configuration.
129+
*/
130+
analogout_free(&_dac);
129131
}
130132

131133
protected:

hal/analogout_api.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ void analogout_init(dac_t *obj, PinName pin);
4848

4949
/** Release the analogout object
5050
*
51-
* Note: This is not currently used in the mbed-drivers
5251
* @param obj The analogout object
5352
*/
5453
void analogout_free(dac_t *obj);

0 commit comments

Comments
 (0)