diff options
Diffstat (limited to 'os/hal/templates/hal_trng_lld.h')
-rw-r--r-- | os/hal/templates/hal_trng_lld.h | 38 |
1 files changed, 10 insertions, 28 deletions
diff --git a/os/hal/templates/hal_trng_lld.h b/os/hal/templates/hal_trng_lld.h index c1ca6bed2..1c7cfc7e7 100644 --- a/os/hal/templates/hal_trng_lld.h +++ b/os/hal/templates/hal_trng_lld.h @@ -57,39 +57,21 @@ /* Driver data structures and types. */
/*===========================================================================*/
+/*===========================================================================*/
+/* Driver macros. */
+/*===========================================================================*/
+
/**
- * @brief Driver configuration structure.
- * @note It could be empty on some architectures.
+ * @brief Low level fields of the TRNG configuration structure.
*/
-typedef struct {
- /* End of the mandatory fields.*/
- /**
- * @brief Dummy configuration, it is not needed..
- */
- uint32_t dummy;
-} TRNGConfig;
+#define trng_lld_config_fields \
+ /* Dummy configuration, it is not needed.*/ \
+ uint32_t dummy
/**
- * @brief Structure representing a TRNG driver.
+ * @brief Low level fields of the TRNG driver structure.
*/
-struct TRNGDriver {
- /**
- * @brief Driver state.
- */
- trngstate_t state;
- /**
- * @brief Current configuration data.
- */
- const TRNGConfig *config;
-#if defined(TRNG_DRIVER_EXT_FIELDS)
- TRNG_DRIVER_EXT_FIELDS
-#endif
- /* End of the mandatory fields.*/
-};
-
-/*===========================================================================*/
-/* Driver macros. */
-/*===========================================================================*/
+#define trng_lld_driver_fields
/*===========================================================================*/
/* External declarations. */
|