USB: Fix definitions for usb_uint

I managed to mess this up previously, the STM32L and STM32F should
use uint32_t and so should the STM32F3 it turns out.  Only the
STM32F0 uses uint16_t right now.

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

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

Change-Id: Ieca4368c4280a0f25c928b6670aeccbaf8eabbef
Reviewed-on: https://chromium-review.googlesource.com/227740
Tested-by: Anton Staaf <robotboy@chromium.org>
Reviewed-by: Vincent Palatin <vpalatin@google.com>
Commit-Queue: Anton Staaf <robotboy@chromium.org>
This commit is contained in:
Anton Staaf
2014-11-05 14:44:15 -08:00
committed by chrome-internal-fetch
parent 085cd334b6
commit e35494e4ac

View File

@@ -226,10 +226,12 @@ struct usb_endpoint_descriptor {
/* Helpers for managing the USB controller dedicated RAM */
/* primitive to access the words in USB RAM */
#if defined(CHIP_FAMILY_STM32F0) || defined(CHIP_FAMILY_STM32F3)
typedef uint16_t usb_uint;
#elif defined(CHIP_FAMILY_STM32F) || defined(CHIP_FAMILY_STM32L)
#if defined(CHIP_FAMILY_STM32F0)
typedef uint16_t usb_uint;
#elif (defined(CHIP_FAMILY_STM32F) || \
defined(CHIP_FAMILY_STM32L) || \
defined(CHIP_FAMILY_STM32F3))
typedef uint32_t usb_uint;
#elif defined(CHIP_HOST)
typedef unsigned int usb_uint;
#else