aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/templates/serial_lld.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/templates/serial_lld.h')
-rw-r--r--os/hal/templates/serial_lld.h23
1 files changed, 22 insertions, 1 deletions
diff --git a/os/hal/templates/serial_lld.h b/os/hal/templates/serial_lld.h
index 532352223..0c28b28be 100644
--- a/os/hal/templates/serial_lld.h
+++ b/os/hal/templates/serial_lld.h
@@ -39,6 +39,19 @@
/* Driver pre-compile time settings. */
/*===========================================================================*/
+/**
+ * @name Configuration options
+ * @{
+ */
+/**
+ * @brief SD1 driver enable switch.
+ * @details If set to @p TRUE the support for SD1 is included.
+ */
+#if !defined(PLATFORM_SERIAL_USE_SD1) || defined(__DOXYGEN__)
+#define PLATFORM_SERIAL_USE_SD1 FALSE
+#endif
+/** @} */
+
/*===========================================================================*/
/* Derived constants and error checks. */
/*===========================================================================*/
@@ -55,7 +68,11 @@
* architecture dependent, fields.
*/
typedef struct {
-
+ /**
+ * @brief Bit rate.
+ */
+ uint32_t sc_speed;
+ /* End of the mandatory fields.*/
} SerialConfig;
/**
@@ -83,6 +100,10 @@ typedef struct {
/* External declarations. */
/*===========================================================================*/
+#if PLATFORM_SERIAL_USE_SD1 && !defined(__DOXYGEN__)
+extern SerialDriver SD1;
+#endif
+
#ifdef __cplusplus
extern "C" {
#endif