aboutsummaryrefslogtreecommitdiffstats
path: root/os/io/templates
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-08-19 11:59:36 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-08-19 11:59:36 +0000
commit94007010446b75548a41b3979fa0bdc4bf66a08c (patch)
tree0a9bac3e4eaae5c8ece6a5015e1f8ef1fb06b4af /os/io/templates
parentf6b7b4d8448449097e44b13cff386fde5b292692 (diff)
downloadChibiOS-94007010446b75548a41b3979fa0bdc4bf66a08c.tar.gz
ChibiOS-94007010446b75548a41b3979fa0bdc4bf66a08c.tar.bz2
ChibiOS-94007010446b75548a41b3979fa0bdc4bf66a08c.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1080 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/io/templates')
-rw-r--r--os/io/templates/serial_lld.c21
-rw-r--r--os/io/templates/serial_lld.h24
2 files changed, 24 insertions, 21 deletions
diff --git a/os/io/templates/serial_lld.c b/os/io/templates/serial_lld.c
index e99c70385..0fbaa3900 100644
--- a/os/io/templates/serial_lld.c
+++ b/os/io/templates/serial_lld.c
@@ -45,4 +45,25 @@ void sd_lld_init(void) {
}
+/**
+ * @brief Low level serial driver configuration and (re)start.
+ *
+ * @param[in] sdp pointer to a @p SerialDriver object
+ * @param[in] config the architecture-dependent serial driver configuration
+ */
+void sd_lld_start(SerialDriver *sdp, const SerialDriverConfig *config) {
+
+}
+
+/**
+ * @brief Low level serial driver stop.
+ * @details De-initializes the USART, stops the associated clock, resets the
+ * interrupt vector.
+ *
+ * @param[in] sd pointer to a @p SerialDriver object
+ */
+void sd_lld_stop(SerialDriver *sdp) {
+
+}
+
/** @} */
diff --git a/os/io/templates/serial_lld.h b/os/io/templates/serial_lld.h
index edb10fb85..2c133f91c 100644
--- a/os/io/templates/serial_lld.h
+++ b/os/io/templates/serial_lld.h
@@ -77,10 +77,6 @@ struct _serial_driver_data {
uint8_t ob[SERIAL_BUFFERS_SIZE];
};
-/*===========================================================================*/
-/* I/O Ports Types and constants. */
-/*===========================================================================*/
-
/**
* @brief Generic Serial Driver static initializer.
* @details An instance of this structure must be passed to @p sdStart()
@@ -95,28 +91,14 @@ typedef struct {
} SerialDriverConfig;
/*===========================================================================*/
-/* Implementation, some of the following macros could be implemented as */
-/* real functions, if so please put them in the file serial_lld.c. */
+/* External declarations. */
/*===========================================================================*/
-/**
- * @brief Low level serial driver configuration and (re)start.
- *
- * @param[in] sd pointer to a @p SerialDriver object
- * @param[in] config the architecture-dependent serial driver configuration
- */
-#define sd_lld_start(sd, config)
-
-/**
- * @brief Low level serial driver stop.
- *
- * @param[in] sd pointer to a @p SerialDriver object
- */
-#define sd_lld_stop(sd)
-
#ifdef __cplusplus
extern "C" {
void sd_lld_init(void);
+ void sd_lld_start(SerialDriver *sdp, const SerialDriverConfig *config);
+ void sd_lld_stop(SerialDriver *sdp);
#endif
#ifdef __cplusplus
}