From 456edd448c07e54287844fa262e8ab65eb8737fb Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 8 Dec 2012 16:17:37 +0000 Subject: [PATCH] STM32F3xx USB working. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4886 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/STM32F3xx/hal_lld.h | 4 ++-- readme.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/os/hal/platforms/STM32F3xx/hal_lld.h b/os/hal/platforms/STM32F3xx/hal_lld.h index 270664abd..46ca54ea5 100644 --- a/os/hal/platforms/STM32F3xx/hal_lld.h +++ b/os/hal/platforms/STM32F3xx/hal_lld.h @@ -180,8 +180,8 @@ #define STM32_PLLSRC_HSE (1 << 16) /**< PLL clock source is HSE/PREDIV. */ -#define STM32_USBPRE_DIV1 (0 << 22) /**< USB clock is PLLCLK/1. */ -#define STM32_USBPRE_DIV1P5 (1 << 22) /**< USB clock is PLLCLK/1.5. */ +#define STM32_USBPRE_DIV1P5 (0 << 22) /**< USB clock is PLLCLK/1.5. */ +#define STM32_USBPRE_DIV1 (1 << 22) /**< USB clock is PLLCLK/1. */ #define STM32_MCOSEL_NOCLOCK (0 << 24) /**< No clock on MCO pin. */ #define STM32_MCOSEL_LSI (2 << 24) /**< LSI clock on MCO pin. */ diff --git a/readme.txt b/readme.txt index 481e32a80..8da4bbe48 100644 --- a/readme.txt +++ b/readme.txt @@ -146,7 +146,7 @@ - FIX: Fixed STM8L, cosmic compiler: c_lreg not saved (bug 3566342)(backported to 2.2.10 and 2.4.3). - NEW: Initial support for STM32F30x (HAL, PAL, CAN, GPT, ICU, PWM, Serial, - SPI). + SPI, USB). - NEW: AT91SAM7A3 I2C support. - NEW: AT91SAM7A3 basic support. - NEW: Unified the STM32F4xx and STM32F2xx platform code. The STM32F2xx now is