diff options
| author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-01-01 15:29:17 +0000 | 
|---|---|---|
| committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-01-01 15:29:17 +0000 | 
| commit | 307e9891e40e46b08cd15690da8fff1657172915 (patch) | |
| tree | 0b62c8e7972e24320c1091d957f7a2764de829dc /os/hal/platforms/STM32 | |
| parent | f8c40043e469d81f2a9f380d6723b92c79bd30bc (diff) | |
| download | ChibiOS-307e9891e40e46b08cd15690da8fff1657172915.tar.gz ChibiOS-307e9891e40e46b08cd15690da8fff1657172915.tar.bz2 ChibiOS-307e9891e40e46b08cd15690da8fff1657172915.zip | |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1486 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32')
| -rw-r--r-- | os/hal/platforms/STM32/serial_lld.c | 3 | ||||
| -rw-r--r-- | os/hal/platforms/STM32/serial_lld.h | 6 | 
2 files changed, 3 insertions, 6 deletions
| diff --git a/os/hal/platforms/STM32/serial_lld.c b/os/hal/platforms/STM32/serial_lld.c index 6d28fe71f..6a9f71673 100644 --- a/os/hal/platforms/STM32/serial_lld.c +++ b/os/hal/platforms/STM32/serial_lld.c @@ -264,21 +264,18 @@ void sd_lld_start(SerialDriver *sdp) {      if (&SD1 == sdp) {
        RCC->APB2ENR |= RCC_APB2ENR_USART1EN;
        NVICEnableVector(USART1_IRQn, STM32_USART1_PRIORITY);
 -      return;
      }
  #endif
  #if USE_STM32_USART2
      if (&SD2 == sdp) {
        RCC->APB1ENR |= RCC_APB1ENR_USART2EN;
        NVICEnableVector(USART2_IRQn, STM32_USART2_PRIORITY);
 -      return;
      }
  #endif
  #if USE_STM32_USART3
      if (&SD3 == sdp) {
        RCC->APB1ENR |= RCC_APB1ENR_USART3EN;
        NVICEnableVector(USART3_IRQn, STM32_USART3_PRIORITY);
 -      return;
      }
  #endif
    }
 diff --git a/os/hal/platforms/STM32/serial_lld.h b/os/hal/platforms/STM32/serial_lld.h index 64c74f5f9..97a56a332 100644 --- a/os/hal/platforms/STM32/serial_lld.h +++ b/os/hal/platforms/STM32/serial_lld.h @@ -43,7 +43,7 @@   * @note The default is @p FALSE.
   */
  #if !defined(USE_STM32_USART1) || defined(__DOXYGEN__)
 -#define USE_STM32_USART1            FALSE
 +#define USE_STM32_USART1            TRUE
  #endif
  /**
 @@ -61,7 +61,7 @@   * @note The default is @p FALSE.
   */
  #if !defined(USE_STM32_USART3) || defined(__DOXYGEN__)
 -#define USE_STM32_USART3            FALSE
 +#define USE_STM32_USART3            TRUE
  #endif
  /**
 @@ -97,7 +97,7 @@  /*===========================================================================*/
  /**
 - * Serial Driver condition flags type.
 + * @brief Serial Driver condition flags type.
   */
  typedef uint32_t sdflags_t;
 | 
