From c976acc33537f99059ce57790e04a5c19f6da56e Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sat, 27 Aug 2016 14:36:31 +0000 Subject: Implemented advanced queues in STM32 USARTv2 driver. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9752 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/include/hal_serial.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'os/hal/include') diff --git a/os/hal/include/hal_serial.h b/os/hal/include/hal_serial.h index 60c7bc4aa..2d9886bf3 100644 --- a/os/hal/include/hal_serial.h +++ b/os/hal/include/hal_serial.h @@ -65,6 +65,8 @@ * buffers depending on the requirements of your application. * @note The default is 16 bytes for both the transmission and receive * buffers. + * @note This is a global setting and it can be overridden by low level + * driver specific settings. */ #if !defined(SERIAL_BUFFERS_SIZE) || defined(__DOXYGEN__) #define SERIAL_BUFFERS_SIZE 16 @@ -268,7 +270,12 @@ struct SerialDriver { extern "C" { #endif void sdInit(void); +#if !defined(SERIAL_ADVANCED_BUFFERING_SUPPORT) || \ + (SERIAL_ADVANCED_BUFFERING_SUPPORT == FALSE) void sdObjectInit(SerialDriver *sdp, qnotify_t inotify, qnotify_t onotify); +#else + void sdObjectInit(SerialDriver *sdp); +#endif void sdStart(SerialDriver *sdp, const SerialConfig *config); void sdStop(SerialDriver *sdp); void sdIncomingDataI(SerialDriver *sdp, uint8_t b); -- cgit v1.2.3