USB: stm32f3: use correct values for USB RAM size and usb_uint

The RAM size was copied from the STM32F0 definition which was
not correct, and the usb_uint computation was only checking for
the STM32F0 family, assuming that all others were the old
uint32_t access size.

Signed-off-by: Anton Staaf <robotboy@chromium.org>

BRANCH=None
BUG=None
TEST=make buildall -j

Change-Id: I28951351601254ea6ebabaec2687d6bfe716b699
Reviewed-on: https://chromium-review.googlesource.com/227210
Tested-by: Anton Staaf <robotboy@chromium.org>
Reviewed-by: Vic Yang <victoryang@chromium.org>
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Commit-Queue: Anton Staaf <robotboy@chromium.org>
This commit is contained in:
Anton Staaf
2014-11-03 13:23:30 -08:00
committed by chrome-internal-fetch
parent 3a4f718f22
commit bde06f7697
2 changed files with 2 additions and 2 deletions

View File

@@ -38,4 +38,4 @@
#define CONFIG_IRQ_COUNT 81
/* STM32F3 has a larger USB RAM */
#define CONFIG_USB_RAM_SIZE 1024
#define CONFIG_USB_RAM_SIZE 512

View File

@@ -226,7 +226,7 @@ struct usb_endpoint_descriptor {
/* Helpers for managing the USB controller dedicated RAM */
/* primitive to access the words in USB RAM */
#ifdef CHIP_FAMILY_STM32F0
#if defined(CHIP_FAMILY_STM32F0) || defined(CHIP_FAMILY_STM32F3)
typedef uint16_t usb_uint;
#else
/* older chips use a weird addressing were 16-bit words are 32-bit appart */