forked

Revision:
167:e84263d55307
Parent:
149:156823d33999
Child:
168:9672193075cf
--- a/drivers/SPISlave.h	Thu Jun 08 15:02:37 2017 +0100
+++ b/drivers/SPISlave.h	Wed Jun 21 17:46:44 2017 +0100
@@ -18,19 +18,18 @@
 
 #include "platform/platform.h"
 
-#if DEVICE_SPISLAVE
+#if defined (DEVICE_SPISLAVE) || defined(DOXYGEN_ONLY)
 
 #include "hal/spi_api.h"
 
 namespace mbed {
 /** \addtogroup drivers */
-/** @{*/
 
 /** A SPI slave, used for communicating with a SPI Master device
  *
  * The default format is set to 8-bits, mode 0, and a clock frequency of 1MHz
  *
- * @Note Synchronization level: Not protected
+ * @note Synchronization level: Not protected
  *
  * Example:
  * @code
@@ -51,6 +50,7 @@
  *     }
  * }
  * @endcode
+ * @ingroup drivers
  */
 class SPISlave {
 
@@ -124,5 +124,3 @@
 #endif
 
 #endif
-
-/** @}*/