diff options
Diffstat (limited to 'os/hal/templates')
-rw-r--r-- | os/hal/templates/meta/driver_lld.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/os/hal/templates/meta/driver_lld.h b/os/hal/templates/meta/driver_lld.h index d57504373..1392954a5 100644 --- a/os/hal/templates/meta/driver_lld.h +++ b/os/hal/templates/meta/driver_lld.h @@ -46,6 +46,12 @@ /* Driver data structures and types. */
/*===========================================================================*/
+
+/**
+ * @brief Type of a structure representing an XXX driver.
+ */
+typedef struct XXXDriver XXXDriver;
+
/**
* @brief Driver configuration structure.
* @note It could be empty on some architectures.
@@ -57,7 +63,7 @@ typedef struct { /**
* @brief Structure representing an XXX driver.
*/
-typedef struct {
+struct XXXDriver {
/**
* @brief Driver state.
*/
@@ -67,7 +73,7 @@ typedef struct { */
const XXXConfig *xxx_config;
/* End of the mandatory fields.*/
-} XXXDriver;
+};
/*===========================================================================*/
/* Driver macros. */
|