File tree Expand file tree Collapse file tree 4 files changed +15
-4
lines changed
Expand file tree Collapse file tree 4 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -103,6 +103,10 @@ class AnalogIn {
103103 }
104104#endif
105105
106+ virtual ~AnalogIn () {
107+ // Do nothing
108+ }
109+
106110protected:
107111
108112 virtual void lock () {
Original file line number Diff line number Diff line change @@ -122,6 +122,10 @@ class AnalogOut {
122122 }
123123#endif
124124
125+ virtual ~AnalogOut () {
126+ // Do nothing
127+ }
128+
125129protected:
126130
127131 virtual void lock () {
Original file line number Diff line number Diff line change @@ -145,6 +145,10 @@ class I2C {
145145 */
146146 virtual void unlock (void );
147147
148+ virtual ~I2C () {
149+ // Do nothing
150+ }
151+
148152#if DEVICE_I2C_ASYNCH
149153
150154 /* * Start non-blocking I2C transfer.
Original file line number Diff line number Diff line change @@ -113,14 +113,13 @@ class InterruptManager {
113113 */
114114 bool remove_handler (pFunctionPointer_t handler, IRQn_Type irq);
115115
116- protected:
117- virtual void lock ();
118- virtual void unlock ();
119-
120116private:
121117 InterruptManager ();
122118 ~InterruptManager ();
123119
120+ void lock ();
121+ void unlock ();
122+
124123 // We declare the copy contructor and the assignment operator, but we don't
125124 // implement them. This way, if someone tries to copy/assign our instance,
126125 // he will get an error at compile time.
You can’t perform that action at this time.
0 commit comments