Skip to content

Commit 1918904

Browse files
author
deepikabhavnani
committed
QSPI: Remove protected member functions from rendering on docs site, but keep them in the code.
1 parent c43a3f4 commit 1918904

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

drivers/QSPI.h

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ class QSPI : private NonCopyable<QSPI> {
8989
*
9090
*/
9191
QSPI(PinName io0, PinName io1, PinName io2, PinName io3, PinName sclk, PinName ssel = NC, int mode = 0);
92+
virtual ~QSPI()
93+
{
94+
}
9295

9396
/** Configure the data transmission format
9497
*
@@ -179,6 +182,7 @@ class QSPI : private NonCopyable<QSPI> {
179182
*/
180183
qspi_status_t command_transfer(int instruction, int address, const char *tx_buffer, size_t tx_length, const char *rx_buffer, size_t rx_length);
181184

185+
#if !defined(DOXYGEN_ONLY)
182186
protected:
183187
/** Acquire exclusive access to this SPI bus
184188
*/
@@ -188,12 +192,6 @@ class QSPI : private NonCopyable<QSPI> {
188192
*/
189193
virtual void unlock(void);
190194

191-
public:
192-
virtual ~QSPI()
193-
{
194-
}
195-
196-
protected:
197195
qspi_t _qspi;
198196

199197
bool acquire(void);
@@ -223,6 +221,7 @@ class QSPI : private NonCopyable<QSPI> {
223221
* This function builds the qspi command struct to be send to Hal
224222
*/
225223
inline void _build_qspi_command(int instruction, int address, int alt);
224+
#endif
226225
};
227226

228227
} // namespace mbed

0 commit comments

Comments
 (0)