diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-12-29 12:29:57 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-12-29 12:29:57 +0000 |
commit | 58d50c17cd4d54b8323e80f2ee188963aa16010b (patch) | |
tree | 131e207a767f95da2fd38e333461a9dcaf99a2ea /os/hal/platforms/AVR/serial_lld.h | |
parent | 86e45e167e4db866268e968b174b1cbb88420338 (diff) | |
download | ChibiOS-58d50c17cd4d54b8323e80f2ee188963aa16010b.tar.gz ChibiOS-58d50c17cd4d54b8323e80f2ee188963aa16010b.tar.bz2 ChibiOS-58d50c17cd4d54b8323e80f2ee188963aa16010b.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1476 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/AVR/serial_lld.h')
-rw-r--r-- | os/hal/platforms/AVR/serial_lld.h | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/os/hal/platforms/AVR/serial_lld.h b/os/hal/platforms/AVR/serial_lld.h index 266bf2a32..ad0ffdd3a 100644 --- a/os/hal/platforms/AVR/serial_lld.h +++ b/os/hal/platforms/AVR/serial_lld.h @@ -30,6 +30,10 @@ #if CH_HAL_USE_SERIAL || defined(__DOXYGEN__)
/*===========================================================================*/
+/* Driver constants. */
+/*===========================================================================*/
+
+/*===========================================================================*/
/* Driver pre-compile time settings. */
/*===========================================================================*/
@@ -74,7 +78,7 @@ #endif
/*===========================================================================*/
-/* Unsupported event flags and custom events. */
+/* Derived constants and error checks. */
/*===========================================================================*/
/*===========================================================================*/
@@ -120,12 +124,6 @@ struct _serial_driver_data { };
/**
- * @brief Macro for baud rate computation.
- * @note Make sure the final baud rate is within tolerance.
- */
-#define UBRR(b) ((F_CPU / (b << 4)) - 1)
-
-/**
* @brief AVR Serial Driver configuration structure.
* @details An instance of this structure must be passed to @p sdStart()
* in order to configure and start a serial driver operations.
@@ -136,6 +134,16 @@ typedef struct { } SerialDriverConfig;
/*===========================================================================*/
+/* Driver macros. */
+/*===========================================================================*/
+
+/**
+ * @brief Macro for baud rate computation.
+ * @note Make sure the final baud rate is within tolerance.
+ */
+#define UBRR(b) ((F_CPU / (b << 4)) - 1)
+
+/*===========================================================================*/
/* External declarations. */
/*===========================================================================*/
|