From 16178e1c45a76544d34ce63db37932838353637c Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 28 Nov 2009 12:25:35 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1333 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/LPC214x/serial_lld.h | 174 ++++++++++++++++++++++++++++++++++ 1 file changed, 174 insertions(+) create mode 100644 os/hal/platforms/LPC214x/serial_lld.h (limited to 'os/hal/platforms/LPC214x/serial_lld.h') diff --git a/os/hal/platforms/LPC214x/serial_lld.h b/os/hal/platforms/LPC214x/serial_lld.h new file mode 100644 index 000000000..b6ac8e379 --- /dev/null +++ b/os/hal/platforms/LPC214x/serial_lld.h @@ -0,0 +1,174 @@ +/* + ChibiOS/RT - Copyright (C) 2006-2007 Giovanni Di Sirio. + + This file is part of ChibiOS/RT. + + ChibiOS/RT is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + ChibiOS/RT is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . +*/ + +/** + * @file LPC214x/serial_lld.h + * @brief LPC214x low level serial driver header + * @addtogroup LPC214x_SERIAL + * @{ + */ + +#ifndef _SERIAL_LLD_H_ +#define _SERIAL_LLD_H_ + +/*===========================================================================*/ +/* Driver pre-compile time settings. */ +/*===========================================================================*/ + +/** + * @brief Serial buffers size. + * @details Configuration parameter, you can change the depth of the queue + * buffers depending on the requirements of your application. + * @note The default is 128 bytes for both the transmission and receive buffers. + */ +#if !defined(SERIAL_BUFFERS_SIZE) || defined(__DOXYGEN__) +#define SERIAL_BUFFERS_SIZE 128 +#endif + +/** + * @brief FIFO preload parameter. + * @details Configuration parameter, this values defines how many bytes are + * preloaded in the HW transmit FIFO for each interrupt, the maximum value is + * 16 the minimum is 2, the value 0 disables the feature. + * @note An high value reduces the number of interrupts generated but can + * also increase the worst case interrupt response time because the + * preload loops. + * @note The value zero disables the feature and reverts to a simpler code + * that will generate an interrupt for each output byte but is much + * smaller and simpler. + */ +#if !defined(UART_FIFO_PRELOAD) || defined(__DOXYGEN__) +#define UART_FIFO_PRELOAD 16 +#endif + +/** + * @brief UART0 driver enable switch. + * @details If set to @p TRUE the support for USART1 is included. + * @note The default is @p TRUE . + */ +#if !defined(USE_LPC214x_UART0) || defined(__DOXYGEN__) +#define USE_LPC214x_UART0 TRUE +#endif + +/** + * @brief UART1 driver enable switch. + * @details If set to @p TRUE the support for USART2 is included. + * @note The default is @p TRUE. + */ +#if !defined(USE_LPC214x_UART1) || defined(__DOXYGEN__) +#define USE_LPC214x_UART1 TRUE +#endif + +/** + * @brief UART1 interrupt priority level setting. + */ +#if !defined(LPC214x_UART1_PRIORITY) || defined(__DOXYGEN__) +#define LPC214x_UART1_PRIORITY 1 +#endif + +/** + * @brief UART2 interrupt priority level setting. + */ +#if !defined(LPC214x_UART2_PRIORITY) || defined(__DOXYGEN__) +#define LPC214x_UART2_PRIORITY 2 +#endif + +/*===========================================================================*/ +/* Unsupported event flags and custom events. */ +/*===========================================================================*/ + +/*===========================================================================*/ +/* Driver data structures and types. */ +/*===========================================================================*/ + +/** + * Serial Driver condition flags type. + */ +typedef uint32_t sdflags_t; + +/** + * @brief @p SerialDriver specific data. + */ +struct _serial_driver_data { + /** + * Input queue, incoming data can be read from this input queue by + * using the queues APIs. + */ + InputQueue iqueue; + /** + * Output queue, outgoing data can be written to this output queue by + * using the queues APIs. + */ + OutputQueue oqueue; + /** + * Status Change @p EventSource. This event is generated when one or more + * condition flags change. + */ + EventSource sevent; + /** + * I/O driver status flags. + */ + sdflags_t flags; + /** + * Input circular buffer. + */ + uint8_t ib[SERIAL_BUFFERS_SIZE]; + /** + * Output circular buffer. + */ + uint8_t ob[SERIAL_BUFFERS_SIZE]; +}; + +/** + * @brief LPC214x 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. + */ +typedef struct { + uint32_t speed; + uint32_t lcr; + uint32_t fcr; +} SerialDriverConfig; + +/*===========================================================================*/ +/* External declarations. */ +/*===========================================================================*/ + +/** @cond never*/ +#if USE_LPC214x_UART0 +extern SerialDriver SD1; +#endif +#if USE_LPC214x_UART1 +extern SerialDriver SD2; +#endif + +#ifdef __cplusplus +extern "C" { +#endif + void sd_lld_init(void); + void sd_lld_start(SerialDriver *sdp, const SerialDriverConfig *config); + void sd_lld_stop(SerialDriver *sdp); +#ifdef __cplusplus +} +#endif +/** @endcond*/ + +#endif /* _SERIAL_LLD_H_ */ + +/** @} */ -- cgit v1.2.3 From 0d0e4d619185ad86270ca5c0212c314f7f4529d5 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sun, 29 Nov 2009 08:25:31 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1342 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/LPC214x/serial_lld.h | 174 ---------------------------------- 1 file changed, 174 deletions(-) delete mode 100644 os/hal/platforms/LPC214x/serial_lld.h (limited to 'os/hal/platforms/LPC214x/serial_lld.h') diff --git a/os/hal/platforms/LPC214x/serial_lld.h b/os/hal/platforms/LPC214x/serial_lld.h deleted file mode 100644 index b6ac8e379..000000000 --- a/os/hal/platforms/LPC214x/serial_lld.h +++ /dev/null @@ -1,174 +0,0 @@ -/* - ChibiOS/RT - Copyright (C) 2006-2007 Giovanni Di Sirio. - - This file is part of ChibiOS/RT. - - ChibiOS/RT is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - ChibiOS/RT is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . -*/ - -/** - * @file LPC214x/serial_lld.h - * @brief LPC214x low level serial driver header - * @addtogroup LPC214x_SERIAL - * @{ - */ - -#ifndef _SERIAL_LLD_H_ -#define _SERIAL_LLD_H_ - -/*===========================================================================*/ -/* Driver pre-compile time settings. */ -/*===========================================================================*/ - -/** - * @brief Serial buffers size. - * @details Configuration parameter, you can change the depth of the queue - * buffers depending on the requirements of your application. - * @note The default is 128 bytes for both the transmission and receive buffers. - */ -#if !defined(SERIAL_BUFFERS_SIZE) || defined(__DOXYGEN__) -#define SERIAL_BUFFERS_SIZE 128 -#endif - -/** - * @brief FIFO preload parameter. - * @details Configuration parameter, this values defines how many bytes are - * preloaded in the HW transmit FIFO for each interrupt, the maximum value is - * 16 the minimum is 2, the value 0 disables the feature. - * @note An high value reduces the number of interrupts generated but can - * also increase the worst case interrupt response time because the - * preload loops. - * @note The value zero disables the feature and reverts to a simpler code - * that will generate an interrupt for each output byte but is much - * smaller and simpler. - */ -#if !defined(UART_FIFO_PRELOAD) || defined(__DOXYGEN__) -#define UART_FIFO_PRELOAD 16 -#endif - -/** - * @brief UART0 driver enable switch. - * @details If set to @p TRUE the support for USART1 is included. - * @note The default is @p TRUE . - */ -#if !defined(USE_LPC214x_UART0) || defined(__DOXYGEN__) -#define USE_LPC214x_UART0 TRUE -#endif - -/** - * @brief UART1 driver enable switch. - * @details If set to @p TRUE the support for USART2 is included. - * @note The default is @p TRUE. - */ -#if !defined(USE_LPC214x_UART1) || defined(__DOXYGEN__) -#define USE_LPC214x_UART1 TRUE -#endif - -/** - * @brief UART1 interrupt priority level setting. - */ -#if !defined(LPC214x_UART1_PRIORITY) || defined(__DOXYGEN__) -#define LPC214x_UART1_PRIORITY 1 -#endif - -/** - * @brief UART2 interrupt priority level setting. - */ -#if !defined(LPC214x_UART2_PRIORITY) || defined(__DOXYGEN__) -#define LPC214x_UART2_PRIORITY 2 -#endif - -/*===========================================================================*/ -/* Unsupported event flags and custom events. */ -/*===========================================================================*/ - -/*===========================================================================*/ -/* Driver data structures and types. */ -/*===========================================================================*/ - -/** - * Serial Driver condition flags type. - */ -typedef uint32_t sdflags_t; - -/** - * @brief @p SerialDriver specific data. - */ -struct _serial_driver_data { - /** - * Input queue, incoming data can be read from this input queue by - * using the queues APIs. - */ - InputQueue iqueue; - /** - * Output queue, outgoing data can be written to this output queue by - * using the queues APIs. - */ - OutputQueue oqueue; - /** - * Status Change @p EventSource. This event is generated when one or more - * condition flags change. - */ - EventSource sevent; - /** - * I/O driver status flags. - */ - sdflags_t flags; - /** - * Input circular buffer. - */ - uint8_t ib[SERIAL_BUFFERS_SIZE]; - /** - * Output circular buffer. - */ - uint8_t ob[SERIAL_BUFFERS_SIZE]; -}; - -/** - * @brief LPC214x 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. - */ -typedef struct { - uint32_t speed; - uint32_t lcr; - uint32_t fcr; -} SerialDriverConfig; - -/*===========================================================================*/ -/* External declarations. */ -/*===========================================================================*/ - -/** @cond never*/ -#if USE_LPC214x_UART0 -extern SerialDriver SD1; -#endif -#if USE_LPC214x_UART1 -extern SerialDriver SD2; -#endif - -#ifdef __cplusplus -extern "C" { -#endif - void sd_lld_init(void); - void sd_lld_start(SerialDriver *sdp, const SerialDriverConfig *config); - void sd_lld_stop(SerialDriver *sdp); -#ifdef __cplusplus -} -#endif -/** @endcond*/ - -#endif /* _SERIAL_LLD_H_ */ - -/** @} */ -- cgit v1.2.3 From d4c616e6eeb0587ca450c75b1086efa77ac690e5 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sun, 29 Nov 2009 08:50:13 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1351 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/LPC214x/serial_lld.h | 174 ++++++++++++++++++++++++++++++++++ 1 file changed, 174 insertions(+) create mode 100644 os/hal/platforms/LPC214x/serial_lld.h (limited to 'os/hal/platforms/LPC214x/serial_lld.h') diff --git a/os/hal/platforms/LPC214x/serial_lld.h b/os/hal/platforms/LPC214x/serial_lld.h new file mode 100644 index 000000000..b6ac8e379 --- /dev/null +++ b/os/hal/platforms/LPC214x/serial_lld.h @@ -0,0 +1,174 @@ +/* + ChibiOS/RT - Copyright (C) 2006-2007 Giovanni Di Sirio. + + This file is part of ChibiOS/RT. + + ChibiOS/RT is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + ChibiOS/RT is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . +*/ + +/** + * @file LPC214x/serial_lld.h + * @brief LPC214x low level serial driver header + * @addtogroup LPC214x_SERIAL + * @{ + */ + +#ifndef _SERIAL_LLD_H_ +#define _SERIAL_LLD_H_ + +/*===========================================================================*/ +/* Driver pre-compile time settings. */ +/*===========================================================================*/ + +/** + * @brief Serial buffers size. + * @details Configuration parameter, you can change the depth of the queue + * buffers depending on the requirements of your application. + * @note The default is 128 bytes for both the transmission and receive buffers. + */ +#if !defined(SERIAL_BUFFERS_SIZE) || defined(__DOXYGEN__) +#define SERIAL_BUFFERS_SIZE 128 +#endif + +/** + * @brief FIFO preload parameter. + * @details Configuration parameter, this values defines how many bytes are + * preloaded in the HW transmit FIFO for each interrupt, the maximum value is + * 16 the minimum is 2, the value 0 disables the feature. + * @note An high value reduces the number of interrupts generated but can + * also increase the worst case interrupt response time because the + * preload loops. + * @note The value zero disables the feature and reverts to a simpler code + * that will generate an interrupt for each output byte but is much + * smaller and simpler. + */ +#if !defined(UART_FIFO_PRELOAD) || defined(__DOXYGEN__) +#define UART_FIFO_PRELOAD 16 +#endif + +/** + * @brief UART0 driver enable switch. + * @details If set to @p TRUE the support for USART1 is included. + * @note The default is @p TRUE . + */ +#if !defined(USE_LPC214x_UART0) || defined(__DOXYGEN__) +#define USE_LPC214x_UART0 TRUE +#endif + +/** + * @brief UART1 driver enable switch. + * @details If set to @p TRUE the support for USART2 is included. + * @note The default is @p TRUE. + */ +#if !defined(USE_LPC214x_UART1) || defined(__DOXYGEN__) +#define USE_LPC214x_UART1 TRUE +#endif + +/** + * @brief UART1 interrupt priority level setting. + */ +#if !defined(LPC214x_UART1_PRIORITY) || defined(__DOXYGEN__) +#define LPC214x_UART1_PRIORITY 1 +#endif + +/** + * @brief UART2 interrupt priority level setting. + */ +#if !defined(LPC214x_UART2_PRIORITY) || defined(__DOXYGEN__) +#define LPC214x_UART2_PRIORITY 2 +#endif + +/*===========================================================================*/ +/* Unsupported event flags and custom events. */ +/*===========================================================================*/ + +/*===========================================================================*/ +/* Driver data structures and types. */ +/*===========================================================================*/ + +/** + * Serial Driver condition flags type. + */ +typedef uint32_t sdflags_t; + +/** + * @brief @p SerialDriver specific data. + */ +struct _serial_driver_data { + /** + * Input queue, incoming data can be read from this input queue by + * using the queues APIs. + */ + InputQueue iqueue; + /** + * Output queue, outgoing data can be written to this output queue by + * using the queues APIs. + */ + OutputQueue oqueue; + /** + * Status Change @p EventSource. This event is generated when one or more + * condition flags change. + */ + EventSource sevent; + /** + * I/O driver status flags. + */ + sdflags_t flags; + /** + * Input circular buffer. + */ + uint8_t ib[SERIAL_BUFFERS_SIZE]; + /** + * Output circular buffer. + */ + uint8_t ob[SERIAL_BUFFERS_SIZE]; +}; + +/** + * @brief LPC214x 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. + */ +typedef struct { + uint32_t speed; + uint32_t lcr; + uint32_t fcr; +} SerialDriverConfig; + +/*===========================================================================*/ +/* External declarations. */ +/*===========================================================================*/ + +/** @cond never*/ +#if USE_LPC214x_UART0 +extern SerialDriver SD1; +#endif +#if USE_LPC214x_UART1 +extern SerialDriver SD2; +#endif + +#ifdef __cplusplus +extern "C" { +#endif + void sd_lld_init(void); + void sd_lld_start(SerialDriver *sdp, const SerialDriverConfig *config); + void sd_lld_stop(SerialDriver *sdp); +#ifdef __cplusplus +} +#endif +/** @endcond*/ + +#endif /* _SERIAL_LLD_H_ */ + +/** @} */ -- cgit v1.2.3 From 93fc8b57778f698cbe7e0e202e33b5d56ce09039 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Tue, 8 Dec 2009 10:36:29 +0000 Subject: HAL implemented for LPC214x. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1392 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/LPC214x/serial_lld.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'os/hal/platforms/LPC214x/serial_lld.h') diff --git a/os/hal/platforms/LPC214x/serial_lld.h b/os/hal/platforms/LPC214x/serial_lld.h index b6ac8e379..4bfc97bc5 100644 --- a/os/hal/platforms/LPC214x/serial_lld.h +++ b/os/hal/platforms/LPC214x/serial_lld.h @@ -27,6 +27,8 @@ #ifndef _SERIAL_LLD_H_ #define _SERIAL_LLD_H_ +#if CH_HAL_USE_SERIAL || defined(__DOXYGEN__) + /*===========================================================================*/ /* Driver pre-compile time settings. */ /*===========================================================================*/ @@ -169,6 +171,8 @@ extern "C" { #endif /** @endcond*/ +#endif /* CH_HAL_USE_SERIAL */ + #endif /* _SERIAL_LLD_H_ */ /** @} */ -- cgit v1.2.3 From bdb7f4ab20bd3daf261ab93dfe733e0ff11dca0f Mon Sep 17 00:00:00 2001 From: gdisirio Date: Tue, 8 Dec 2009 17:37:49 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1397 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/LPC214x/serial_lld.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'os/hal/platforms/LPC214x/serial_lld.h') diff --git a/os/hal/platforms/LPC214x/serial_lld.h b/os/hal/platforms/LPC214x/serial_lld.h index 4bfc97bc5..376107ec7 100644 --- a/os/hal/platforms/LPC214x/serial_lld.h +++ b/os/hal/platforms/LPC214x/serial_lld.h @@ -19,7 +19,7 @@ /** * @file LPC214x/serial_lld.h - * @brief LPC214x low level serial driver header + * @brief LPC214x low level serial driver header. * @addtogroup LPC214x_SERIAL * @{ */ -- cgit v1.2.3 From 86e45e167e4db866268e968b174b1cbb88420338 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Tue, 29 Dec 2009 12:05:35 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1475 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/LPC214x/serial_lld.h | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'os/hal/platforms/LPC214x/serial_lld.h') diff --git a/os/hal/platforms/LPC214x/serial_lld.h b/os/hal/platforms/LPC214x/serial_lld.h index 376107ec7..cea587935 100644 --- a/os/hal/platforms/LPC214x/serial_lld.h +++ b/os/hal/platforms/LPC214x/serial_lld.h @@ -29,6 +29,10 @@ #if CH_HAL_USE_SERIAL || defined(__DOXYGEN__) +/*===========================================================================*/ +/* Driver constants. */ +/*===========================================================================*/ + /*===========================================================================*/ /* Driver pre-compile time settings. */ /*===========================================================================*/ @@ -56,7 +60,7 @@ * smaller and simpler. */ #if !defined(UART_FIFO_PRELOAD) || defined(__DOXYGEN__) -#define UART_FIFO_PRELOAD 16 +#define UART_FIFO_PRELOAD 16 #endif /** @@ -65,7 +69,7 @@ * @note The default is @p TRUE . */ #if !defined(USE_LPC214x_UART0) || defined(__DOXYGEN__) -#define USE_LPC214x_UART0 TRUE +#define USE_LPC214x_UART0 TRUE #endif /** @@ -74,7 +78,7 @@ * @note The default is @p TRUE. */ #if !defined(USE_LPC214x_UART1) || defined(__DOXYGEN__) -#define USE_LPC214x_UART1 TRUE +#define USE_LPC214x_UART1 TRUE #endif /** @@ -92,7 +96,7 @@ #endif /*===========================================================================*/ -/* Unsupported event flags and custom events. */ +/* Derived constants and error checks. */ /*===========================================================================*/ /*===========================================================================*/ @@ -148,6 +152,10 @@ typedef struct { uint32_t fcr; } SerialDriverConfig; +/*===========================================================================*/ +/* Driver macros. */ +/*===========================================================================*/ + /*===========================================================================*/ /* External declarations. */ /*===========================================================================*/ -- cgit v1.2.3 From 307e9891e40e46b08cd15690da8fff1657172915 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Fri, 1 Jan 2010 15:29:17 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1486 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/LPC214x/serial_lld.h | 88 ++++++++++++++++++++--------------- 1 file changed, 50 insertions(+), 38 deletions(-) (limited to 'os/hal/platforms/LPC214x/serial_lld.h') diff --git a/os/hal/platforms/LPC214x/serial_lld.h b/os/hal/platforms/LPC214x/serial_lld.h index cea587935..e8371104a 100644 --- a/os/hal/platforms/LPC214x/serial_lld.h +++ b/os/hal/platforms/LPC214x/serial_lld.h @@ -37,16 +37,6 @@ /* Driver pre-compile time settings. */ /*===========================================================================*/ -/** - * @brief Serial buffers size. - * @details Configuration parameter, you can change the depth of the queue - * buffers depending on the requirements of your application. - * @note The default is 128 bytes for both the transmission and receive buffers. - */ -#if !defined(SERIAL_BUFFERS_SIZE) || defined(__DOXYGEN__) -#define SERIAL_BUFFERS_SIZE 128 -#endif - /** * @brief FIFO preload parameter. * @details Configuration parameter, this values defines how many bytes are @@ -104,54 +94,76 @@ /*===========================================================================*/ /** - * Serial Driver condition flags type. + * @brief Serial Driver condition flags type. */ typedef uint32_t sdflags_t; +/** + * @brief LPC214x 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. + */ +typedef struct { + /** + * @brief Bit rate. + */ + uint32_t sc_speed; + /** + * @brief Initialization value for the LCR register. + */ + uint32_t sc_lcr; + /** + * @brief Initialization value for the FCR register. + */ + uint32_t sc_fcr; +} SerialConfig; + /** * @brief @p SerialDriver specific data. */ struct _serial_driver_data { /** - * Input queue, incoming data can be read from this input queue by - * using the queues APIs. + * @brief Driver state. + */ + sdstate_t state; + /** + * @brief Current configuration data. + */ + const SerialConfig *config; + /** + * @brief Input queue, incoming data can be read from this input queue by + * using the queues APIs. + */ + InputQueue iqueue; + /** + * @brief Output queue, outgoing data can be written to this output queue by + * using the queues APIs. */ - InputQueue iqueue; + OutputQueue oqueue; /** - * Output queue, outgoing data can be written to this output queue by - * using the queues APIs. + * @brief Status Change @p EventSource. This event is generated when one or + * more condition flags change. */ - OutputQueue oqueue; + EventSource sevent; /** - * Status Change @p EventSource. This event is generated when one or more - * condition flags change. + * @brief I/O driver status flags. */ - EventSource sevent; + sdflags_t flags; /** - * I/O driver status flags. + * @brief Input circular buffer. */ - sdflags_t flags; + uint8_t ib[SERIAL_BUFFERS_SIZE]; /** - * Input circular buffer. + * @brief Output circular buffer. */ - uint8_t ib[SERIAL_BUFFERS_SIZE]; + uint8_t ob[SERIAL_BUFFERS_SIZE]; + /* End of the mandatory fields.*/ /** - * Output circular buffer. + * @brief Pointer to the USART registers block. */ - uint8_t ob[SERIAL_BUFFERS_SIZE]; + UART *uart; }; -/** - * @brief LPC214x 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. - */ -typedef struct { - uint32_t speed; - uint32_t lcr; - uint32_t fcr; -} SerialDriverConfig; - /*===========================================================================*/ /* Driver macros. */ /*===========================================================================*/ @@ -172,7 +184,7 @@ extern SerialDriver SD2; extern "C" { #endif void sd_lld_init(void); - void sd_lld_start(SerialDriver *sdp, const SerialDriverConfig *config); + void sd_lld_start(SerialDriver *sdp); void sd_lld_stop(SerialDriver *sdp); #ifdef __cplusplus } -- cgit v1.2.3 From 61038954f731debcf474b097a1f7283e4cf198fc Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 2 Jan 2010 12:41:56 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1493 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/LPC214x/serial_lld.h | 40 +++++++++++++++++------------------ 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'os/hal/platforms/LPC214x/serial_lld.h') diff --git a/os/hal/platforms/LPC214x/serial_lld.h b/os/hal/platforms/LPC214x/serial_lld.h index e8371104a..034a707fb 100644 --- a/os/hal/platforms/LPC214x/serial_lld.h +++ b/os/hal/platforms/LPC214x/serial_lld.h @@ -37,29 +37,13 @@ /* Driver pre-compile time settings. */ /*===========================================================================*/ -/** - * @brief FIFO preload parameter. - * @details Configuration parameter, this values defines how many bytes are - * preloaded in the HW transmit FIFO for each interrupt, the maximum value is - * 16 the minimum is 2, the value 0 disables the feature. - * @note An high value reduces the number of interrupts generated but can - * also increase the worst case interrupt response time because the - * preload loops. - * @note The value zero disables the feature and reverts to a simpler code - * that will generate an interrupt for each output byte but is much - * smaller and simpler. - */ -#if !defined(UART_FIFO_PRELOAD) || defined(__DOXYGEN__) -#define UART_FIFO_PRELOAD 16 -#endif - /** * @brief UART0 driver enable switch. * @details If set to @p TRUE the support for USART1 is included. * @note The default is @p TRUE . */ #if !defined(USE_LPC214x_UART0) || defined(__DOXYGEN__) -#define USE_LPC214x_UART0 TRUE +#define USE_LPC214x_UART0 TRUE #endif /** @@ -68,21 +52,37 @@ * @note The default is @p TRUE. */ #if !defined(USE_LPC214x_UART1) || defined(__DOXYGEN__) -#define USE_LPC214x_UART1 TRUE +#define USE_LPC214x_UART1 TRUE +#endif + +/** + * @brief FIFO preload parameter. + * @details Configuration parameter, this values defines how many bytes are + * preloaded in the HW transmit FIFO for each interrupt, the maximum value is + * 16 the minimum is 2, the value 0 disables the feature. + * @note An high value reduces the number of interrupts generated but can + * also increase the worst case interrupt response time because the + * preload loops. + * @note The value zero disables the feature and reverts to a simpler code + * that will generate an interrupt for each output byte but is much + * smaller and simpler. + */ +#if !defined(UART_FIFO_PRELOAD) || defined(__DOXYGEN__) +#define LPC214x_UART_FIFO_PRELOAD 16 #endif /** * @brief UART1 interrupt priority level setting. */ #if !defined(LPC214x_UART1_PRIORITY) || defined(__DOXYGEN__) -#define LPC214x_UART1_PRIORITY 1 +#define LPC214x_UART1_PRIORITY 1 #endif /** * @brief UART2 interrupt priority level setting. */ #if !defined(LPC214x_UART2_PRIORITY) || defined(__DOXYGEN__) -#define LPC214x_UART2_PRIORITY 2 +#define LPC214x_UART2_PRIORITY 2 #endif /*===========================================================================*/ -- cgit v1.2.3 From 7e4202ae46606be697611dd6f5f867c4915dc046 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Wed, 6 Jan 2010 12:55:12 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1506 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/LPC214x/serial_lld.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'os/hal/platforms/LPC214x/serial_lld.h') diff --git a/os/hal/platforms/LPC214x/serial_lld.h b/os/hal/platforms/LPC214x/serial_lld.h index 034a707fb..67e7e27d0 100644 --- a/os/hal/platforms/LPC214x/serial_lld.h +++ b/os/hal/platforms/LPC214x/serial_lld.h @@ -59,13 +59,10 @@ * @brief FIFO preload parameter. * @details Configuration parameter, this values defines how many bytes are * preloaded in the HW transmit FIFO for each interrupt, the maximum value is - * 16 the minimum is 2, the value 0 disables the feature. + * 16 the minimum is 1. * @note An high value reduces the number of interrupts generated but can * also increase the worst case interrupt response time because the * preload loops. - * @note The value zero disables the feature and reverts to a simpler code - * that will generate an interrupt for each output byte but is much - * smaller and simpler. */ #if !defined(UART_FIFO_PRELOAD) || defined(__DOXYGEN__) #define LPC214x_UART_FIFO_PRELOAD 16 @@ -89,6 +86,10 @@ /* Derived constants and error checks. */ /*===========================================================================*/ +#if (LPC214x_UART_FIFO_PRELOAD < 1) || (LPC214x_UART_FIFO_PRELOAD > 16) +#error "invalid LPC214x_UART_FIFO_PRELOAD setting" +#endif + /*===========================================================================*/ /* Driver data structures and types. */ /*===========================================================================*/ -- cgit v1.2.3 From 11215c3bcb0b0cbe5794cfc92d0c20de6c8696d9 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Fri, 22 Jan 2010 14:51:54 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1539 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/LPC214x/serial_lld.h | 63 ++++++++++++----------------------- 1 file changed, 21 insertions(+), 42 deletions(-) (limited to 'os/hal/platforms/LPC214x/serial_lld.h') diff --git a/os/hal/platforms/LPC214x/serial_lld.h b/os/hal/platforms/LPC214x/serial_lld.h index 67e7e27d0..974a9849a 100644 --- a/os/hal/platforms/LPC214x/serial_lld.h +++ b/os/hal/platforms/LPC214x/serial_lld.h @@ -122,48 +122,27 @@ typedef struct { /** * @brief @p SerialDriver specific data. */ -struct _serial_driver_data { - /** - * @brief Driver state. - */ - sdstate_t state; - /** - * @brief Current configuration data. - */ - const SerialConfig *config; - /** - * @brief Input queue, incoming data can be read from this input queue by - * using the queues APIs. - */ - InputQueue iqueue; - /** - * @brief Output queue, outgoing data can be written to this output queue by - * using the queues APIs. - */ - OutputQueue oqueue; - /** - * @brief Status Change @p EventSource. This event is generated when one or - * more condition flags change. - */ - EventSource sevent; - /** - * @brief I/O driver status flags. - */ - sdflags_t flags; - /** - * @brief Input circular buffer. - */ - uint8_t ib[SERIAL_BUFFERS_SIZE]; - /** - * @brief Output circular buffer. - */ - uint8_t ob[SERIAL_BUFFERS_SIZE]; - /* End of the mandatory fields.*/ - /** - * @brief Pointer to the USART registers block. - */ - UART *uart; -}; +#define _serial_driver_data \ + _base_asynchronous_channel_data; \ + /* Driver state.*/ \ + sdstate_t state; \ + /* Current configuration data.*/ \ + const SerialConfig *config; \ + /* Input queue.*/ \ + InputQueue iqueue; \ + /* Output queue.*/ \ + OutputQueue oqueue; \ + /* Status Change @p EventSource.*/ \ + EventSource sevent; \ + /* I/O driver status flags.*/ \ + sdflags_t flags; \ + /* Input circular buffer.*/ \ + uint8_t ib[SERIAL_BUFFERS_SIZE]; \ + /* Output circular buffer.*/ \ + uint8_t ob[SERIAL_BUFFERS_SIZE]; \ + /* End of the mandatory fields.*/ \ + /* Pointer to the USART registers block.*/ \ + UART *uart /*===========================================================================*/ /* Driver macros. */ -- cgit v1.2.3 From a66602c99d316ecfb03e47dcf9b3fe4167edc580 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Mon, 25 Jan 2010 18:50:35 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1545 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/LPC214x/serial_lld.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'os/hal/platforms/LPC214x/serial_lld.h') diff --git a/os/hal/platforms/LPC214x/serial_lld.h b/os/hal/platforms/LPC214x/serial_lld.h index 974a9849a..6501db299 100644 --- a/os/hal/platforms/LPC214x/serial_lld.h +++ b/os/hal/platforms/LPC214x/serial_lld.h @@ -142,7 +142,7 @@ typedef struct { uint8_t ob[SERIAL_BUFFERS_SIZE]; \ /* End of the mandatory fields.*/ \ /* Pointer to the USART registers block.*/ \ - UART *uart + UART *uart; /*===========================================================================*/ /* Driver macros. */ -- cgit v1.2.3 From c73b66a3cc8d7808b9c06e031c782345d358b3e9 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 30 Jan 2010 11:59:30 +0000 Subject: White space fixes. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1555 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/LPC214x/serial_lld.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'os/hal/platforms/LPC214x/serial_lld.h') diff --git a/os/hal/platforms/LPC214x/serial_lld.h b/os/hal/platforms/LPC214x/serial_lld.h index 6501db299..3e0e4200f 100644 --- a/os/hal/platforms/LPC214x/serial_lld.h +++ b/os/hal/platforms/LPC214x/serial_lld.h @@ -123,7 +123,7 @@ typedef struct { * @brief @p SerialDriver specific data. */ #define _serial_driver_data \ - _base_asynchronous_channel_data; \ + _base_asynchronous_channel_data \ /* Driver state.*/ \ sdstate_t state; \ /* Current configuration data.*/ \ -- cgit v1.2.3 From ca6cbafae34a25b1f63e1547ed69e3239f63d475 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Wed, 17 Feb 2010 18:30:29 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1625 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/LPC214x/serial_lld.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'os/hal/platforms/LPC214x/serial_lld.h') diff --git a/os/hal/platforms/LPC214x/serial_lld.h b/os/hal/platforms/LPC214x/serial_lld.h index 3e0e4200f..fe2746dea 100644 --- a/os/hal/platforms/LPC214x/serial_lld.h +++ b/os/hal/platforms/LPC214x/serial_lld.h @@ -39,7 +39,7 @@ /** * @brief UART0 driver enable switch. - * @details If set to @p TRUE the support for USART1 is included. + * @details If set to @p TRUE the support for UART0 is included. * @note The default is @p TRUE . */ #if !defined(USE_LPC214x_UART0) || defined(__DOXYGEN__) @@ -48,7 +48,7 @@ /** * @brief UART1 driver enable switch. - * @details If set to @p TRUE the support for USART2 is included. + * @details If set to @p TRUE the support for UART1 is included. * @note The default is @p TRUE. */ #if !defined(USE_LPC214x_UART1) || defined(__DOXYGEN__) @@ -69,17 +69,17 @@ #endif /** - * @brief UART1 interrupt priority level setting. + * @brief UART0 interrupt priority level setting. */ -#if !defined(LPC214x_UART1_PRIORITY) || defined(__DOXYGEN__) -#define LPC214x_UART1_PRIORITY 1 +#if !defined(LPC214x_UART0_PRIORITY) || defined(__DOXYGEN__) +#define LPC214x_UART0_PRIORITY 1 #endif /** - * @brief UART2 interrupt priority level setting. + * @brief UART1 interrupt priority level setting. */ -#if !defined(LPC214x_UART2_PRIORITY) || defined(__DOXYGEN__) -#define LPC214x_UART2_PRIORITY 2 +#if !defined(LPC214x_UART1_PRIORITY) || defined(__DOXYGEN__) +#define LPC214x_UART1_PRIORITY 2 #endif /*===========================================================================*/ -- cgit v1.2.3 From 157b6f9695e7f72f2d54b231c19cb4045710ed01 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sun, 21 Feb 2010 07:24:53 +0000 Subject: Updated license dates. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1646 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/LPC214x/serial_lld.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'os/hal/platforms/LPC214x/serial_lld.h') diff --git a/os/hal/platforms/LPC214x/serial_lld.h b/os/hal/platforms/LPC214x/serial_lld.h index fe2746dea..ad93fc953 100644 --- a/os/hal/platforms/LPC214x/serial_lld.h +++ b/os/hal/platforms/LPC214x/serial_lld.h @@ -1,5 +1,5 @@ /* - ChibiOS/RT - Copyright (C) 2006-2007 Giovanni Di Sirio. + ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010 Giovanni Di Sirio. This file is part of ChibiOS/RT. -- cgit v1.2.3 From dea859c252d1ba02aaead3022b004702679712a6 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Thu, 25 Mar 2010 15:28:15 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1777 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/LPC214x/serial_lld.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'os/hal/platforms/LPC214x/serial_lld.h') diff --git a/os/hal/platforms/LPC214x/serial_lld.h b/os/hal/platforms/LPC214x/serial_lld.h index ad93fc953..34da8c8d4 100644 --- a/os/hal/platforms/LPC214x/serial_lld.h +++ b/os/hal/platforms/LPC214x/serial_lld.h @@ -152,11 +152,10 @@ typedef struct { /* External declarations. */ /*===========================================================================*/ -/** @cond never*/ -#if USE_LPC214x_UART0 +#if USE_LPC214x_UART0 && !defined(__DOXYGEN__) extern SerialDriver SD1; #endif -#if USE_LPC214x_UART1 +#if USE_LPC214x_UART1 && !defined(__DOXYGEN__) extern SerialDriver SD2; #endif @@ -169,7 +168,6 @@ extern "C" { #ifdef __cplusplus } #endif -/** @endcond*/ #endif /* CH_HAL_USE_SERIAL */ -- cgit v1.2.3 From 39021902482ee2309e9234bb6f5c642500629b2b Mon Sep 17 00:00:00 2001 From: gdisirio Date: Fri, 2 Apr 2010 14:38:08 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1834 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/LPC214x/serial_lld.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'os/hal/platforms/LPC214x/serial_lld.h') diff --git a/os/hal/platforms/LPC214x/serial_lld.h b/os/hal/platforms/LPC214x/serial_lld.h index 34da8c8d4..6d47f9d95 100644 --- a/os/hal/platforms/LPC214x/serial_lld.h +++ b/os/hal/platforms/LPC214x/serial_lld.h @@ -64,7 +64,7 @@ * also increase the worst case interrupt response time because the * preload loops. */ -#if !defined(UART_FIFO_PRELOAD) || defined(__DOXYGEN__) +#if !defined(LPC214x_UART_FIFO_PRELOAD) || defined(__DOXYGEN__) #define LPC214x_UART_FIFO_PRELOAD 16 #endif -- cgit v1.2.3 From f843a37153bf8a35a4d45f43bd79a4540d595b65 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Wed, 21 Apr 2010 17:42:35 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1883 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/LPC214x/serial_lld.h | 37 +++++++++++++++++------------------ 1 file changed, 18 insertions(+), 19 deletions(-) (limited to 'os/hal/platforms/LPC214x/serial_lld.h') diff --git a/os/hal/platforms/LPC214x/serial_lld.h b/os/hal/platforms/LPC214x/serial_lld.h index 6d47f9d95..a5cea7538 100644 --- a/os/hal/platforms/LPC214x/serial_lld.h +++ b/os/hal/platforms/LPC214x/serial_lld.h @@ -18,8 +18,9 @@ */ /** - * @file LPC214x/serial_lld.h - * @brief LPC214x low level serial driver header. + * @file LPC214x/serial_lld.h + * @brief LPC214x low level serial driver header. + * * @addtogroup LPC214x_SERIAL * @{ */ @@ -38,45 +39,45 @@ /*===========================================================================*/ /** - * @brief UART0 driver enable switch. + * @brief UART0 driver enable switch. * @details If set to @p TRUE the support for UART0 is included. - * @note The default is @p TRUE . + * @note The default is @p TRUE . */ #if !defined(USE_LPC214x_UART0) || defined(__DOXYGEN__) #define USE_LPC214x_UART0 TRUE #endif /** - * @brief UART1 driver enable switch. + * @brief UART1 driver enable switch. * @details If set to @p TRUE the support for UART1 is included. - * @note The default is @p TRUE. + * @note The default is @p TRUE. */ #if !defined(USE_LPC214x_UART1) || defined(__DOXYGEN__) #define USE_LPC214x_UART1 TRUE #endif /** - * @brief FIFO preload parameter. + * @brief FIFO preload parameter. * @details Configuration parameter, this values defines how many bytes are - * preloaded in the HW transmit FIFO for each interrupt, the maximum value is - * 16 the minimum is 1. - * @note An high value reduces the number of interrupts generated but can - * also increase the worst case interrupt response time because the - * preload loops. + * preloaded in the HW transmit FIFO for each interrupt, the maximum + * value is 16 the minimum is 1. + * @note An high value reduces the number of interrupts generated but can + * also increase the worst case interrupt response time because the + * preload loops. */ #if !defined(LPC214x_UART_FIFO_PRELOAD) || defined(__DOXYGEN__) #define LPC214x_UART_FIFO_PRELOAD 16 #endif /** - * @brief UART0 interrupt priority level setting. + * @brief UART0 interrupt priority level setting. */ #if !defined(LPC214x_UART0_PRIORITY) || defined(__DOXYGEN__) #define LPC214x_UART0_PRIORITY 1 #endif /** - * @brief UART1 interrupt priority level setting. + * @brief UART1 interrupt priority level setting. */ #if !defined(LPC214x_UART1_PRIORITY) || defined(__DOXYGEN__) #define LPC214x_UART1_PRIORITY 2 @@ -95,12 +96,12 @@ /*===========================================================================*/ /** - * @brief Serial Driver condition flags type. + * @brief Serial Driver condition flags type. */ typedef uint32_t sdflags_t; /** - * @brief LPC214x Serial Driver configuration structure. + * @brief LPC214x 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. */ @@ -126,8 +127,6 @@ typedef struct { _base_asynchronous_channel_data \ /* Driver state.*/ \ sdstate_t state; \ - /* Current configuration data.*/ \ - const SerialConfig *config; \ /* Input queue.*/ \ InputQueue iqueue; \ /* Output queue.*/ \ @@ -163,7 +162,7 @@ extern SerialDriver SD2; extern "C" { #endif void sd_lld_init(void); - void sd_lld_start(SerialDriver *sdp); + void sd_lld_start(SerialDriver *sdp, const SerialConfig *config); void sd_lld_stop(SerialDriver *sdp); #ifdef __cplusplus } -- cgit v1.2.3 From 2891f7d645c4be187ac96ee4011207531d25c34a Mon Sep 17 00:00:00 2001 From: gdisirio Date: Mon, 4 Oct 2010 17:16:18 +0000 Subject: Documentation improvements, fixed a small error in the STM32 serial driver. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2234 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/LPC214x/serial_lld.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'os/hal/platforms/LPC214x/serial_lld.h') diff --git a/os/hal/platforms/LPC214x/serial_lld.h b/os/hal/platforms/LPC214x/serial_lld.h index a5cea7538..7b11cad38 100644 --- a/os/hal/platforms/LPC214x/serial_lld.h +++ b/os/hal/platforms/LPC214x/serial_lld.h @@ -121,7 +121,7 @@ typedef struct { } SerialConfig; /** - * @brief @p SerialDriver specific data. + * @brief @p SerialDriver specific data. */ #define _serial_driver_data \ _base_asynchronous_channel_data \ -- cgit v1.2.3 From 487a81e29725d598cf0ccdd8c9cd59c5c03634d9 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Tue, 26 Oct 2010 17:39:29 +0000 Subject: Documentation related changes. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2293 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/LPC214x/serial_lld.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'os/hal/platforms/LPC214x/serial_lld.h') diff --git a/os/hal/platforms/LPC214x/serial_lld.h b/os/hal/platforms/LPC214x/serial_lld.h index 7b11cad38..b41845624 100644 --- a/os/hal/platforms/LPC214x/serial_lld.h +++ b/os/hal/platforms/LPC214x/serial_lld.h @@ -21,7 +21,7 @@ * @file LPC214x/serial_lld.h * @brief LPC214x low level serial driver header. * - * @addtogroup LPC214x_SERIAL + * @addtogroup SERIAL * @{ */ -- cgit v1.2.3 From d8be44136c1e6d02ee105ac0791f9e6732551fec Mon Sep 17 00:00:00 2001 From: gdisirio Date: Mon, 1 Nov 2010 17:29:56 +0000 Subject: Fixed bug 3100946, renamed HAL switches removing the CH_ part. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2326 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/LPC214x/serial_lld.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'os/hal/platforms/LPC214x/serial_lld.h') diff --git a/os/hal/platforms/LPC214x/serial_lld.h b/os/hal/platforms/LPC214x/serial_lld.h index b41845624..6398e9483 100644 --- a/os/hal/platforms/LPC214x/serial_lld.h +++ b/os/hal/platforms/LPC214x/serial_lld.h @@ -28,7 +28,7 @@ #ifndef _SERIAL_LLD_H_ #define _SERIAL_LLD_H_ -#if CH_HAL_USE_SERIAL || defined(__DOXYGEN__) +#if HAL_USE_SERIAL || defined(__DOXYGEN__) /*===========================================================================*/ /* Driver constants. */ @@ -168,7 +168,7 @@ extern "C" { } #endif -#endif /* CH_HAL_USE_SERIAL */ +#endif /* HAL_USE_SERIAL */ #endif /* _SERIAL_LLD_H_ */ -- cgit v1.2.3 From ff333430f1317247299863b592293faa7799e0a4 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sun, 9 Jan 2011 10:10:39 +0000 Subject: Serial driver changes, bug 3153550 fixed. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2625 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/LPC214x/serial_lld.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'os/hal/platforms/LPC214x/serial_lld.h') diff --git a/os/hal/platforms/LPC214x/serial_lld.h b/os/hal/platforms/LPC214x/serial_lld.h index 6398e9483..f14b9524b 100644 --- a/os/hal/platforms/LPC214x/serial_lld.h +++ b/os/hal/platforms/LPC214x/serial_lld.h @@ -131,10 +131,6 @@ typedef struct { InputQueue iqueue; \ /* Output queue.*/ \ OutputQueue oqueue; \ - /* Status Change @p EventSource.*/ \ - EventSource sevent; \ - /* I/O driver status flags.*/ \ - sdflags_t flags; \ /* Input circular buffer.*/ \ uint8_t ib[SERIAL_BUFFERS_SIZE]; \ /* Output circular buffer.*/ \ -- cgit v1.2.3 From b4319d0aab553542c83bafad69f4224065cc6142 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sun, 9 Jan 2011 10:39:16 +0000 Subject: Removed some instances of sdflags_t. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2627 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/LPC214x/serial_lld.h | 5 ----- 1 file changed, 5 deletions(-) (limited to 'os/hal/platforms/LPC214x/serial_lld.h') diff --git a/os/hal/platforms/LPC214x/serial_lld.h b/os/hal/platforms/LPC214x/serial_lld.h index f14b9524b..4dac88f20 100644 --- a/os/hal/platforms/LPC214x/serial_lld.h +++ b/os/hal/platforms/LPC214x/serial_lld.h @@ -95,11 +95,6 @@ /* Driver data structures and types. */ /*===========================================================================*/ -/** - * @brief Serial Driver condition flags type. - */ -typedef uint32_t sdflags_t; - /** * @brief LPC214x Serial Driver configuration structure. * @details An instance of this structure must be passed to @p sdStart() -- cgit v1.2.3 From e7e79a6ccb4f3e320b2b8b7bad1b14d65218641d Mon Sep 17 00:00:00 2001 From: gdisirio Date: Fri, 18 Mar 2011 18:38:08 +0000 Subject: License updated. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2827 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/LPC214x/serial_lld.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'os/hal/platforms/LPC214x/serial_lld.h') diff --git a/os/hal/platforms/LPC214x/serial_lld.h b/os/hal/platforms/LPC214x/serial_lld.h index 4dac88f20..b51fb395d 100644 --- a/os/hal/platforms/LPC214x/serial_lld.h +++ b/os/hal/platforms/LPC214x/serial_lld.h @@ -1,5 +1,6 @@ /* - ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010 Giovanni Di Sirio. + ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010, + 2011 Giovanni Di Sirio. This file is part of ChibiOS/RT. -- cgit v1.2.3 From de5dcbba856524599a8f06d3a9bdbf1b01db44c2 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 21 Jan 2012 14:29:42 +0000 Subject: License text updated with new year. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3846 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/LPC214x/serial_lld.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'os/hal/platforms/LPC214x/serial_lld.h') diff --git a/os/hal/platforms/LPC214x/serial_lld.h b/os/hal/platforms/LPC214x/serial_lld.h index b51fb395d..56abf7325 100644 --- a/os/hal/platforms/LPC214x/serial_lld.h +++ b/os/hal/platforms/LPC214x/serial_lld.h @@ -1,6 +1,6 @@ /* ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010, - 2011 Giovanni Di Sirio. + 2011,2012 Giovanni Di Sirio. This file is part of ChibiOS/RT. -- cgit v1.2.3 From 184a71345c6a36a9a8664eda8fbcc3ea728267a8 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 2 Feb 2013 10:58:09 +0000 Subject: Updated license years. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5102 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/LPC214x/serial_lld.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'os/hal/platforms/LPC214x/serial_lld.h') diff --git a/os/hal/platforms/LPC214x/serial_lld.h b/os/hal/platforms/LPC214x/serial_lld.h index 56abf7325..379aecb5d 100644 --- a/os/hal/platforms/LPC214x/serial_lld.h +++ b/os/hal/platforms/LPC214x/serial_lld.h @@ -1,6 +1,6 @@ /* ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010, - 2011,2012 Giovanni Di Sirio. + 2011,2012,2013 Giovanni Di Sirio. This file is part of ChibiOS/RT. -- cgit v1.2.3 From 853216256ad4cdacf5f94edb7d6b738c6be165a1 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 30 Mar 2013 10:32:37 +0000 Subject: Relicensing parts of the tree under the Apache 2.0 license. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5521 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/LPC214x/serial_lld.h | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) (limited to 'os/hal/platforms/LPC214x/serial_lld.h') diff --git a/os/hal/platforms/LPC214x/serial_lld.h b/os/hal/platforms/LPC214x/serial_lld.h index 379aecb5d..b57957580 100644 --- a/os/hal/platforms/LPC214x/serial_lld.h +++ b/os/hal/platforms/LPC214x/serial_lld.h @@ -1,21 +1,17 @@ /* - ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010, - 2011,2012,2013 Giovanni Di Sirio. + ChibiOS/RT - Copyright (C) 2006-2013 Giovanni Di Sirio - This file is part of ChibiOS/RT. + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at - ChibiOS/RT is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. + http://www.apache.org/licenses/LICENSE-2.0 - ChibiOS/RT is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. */ /** -- cgit v1.2.3