diff options
-rw-r--r-- | chip/stm32/config-stm32f07x.h | 3 | ||||
-rw-r--r-- | chip/stm32/config_chip.h | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/chip/stm32/config-stm32f07x.h b/chip/stm32/config-stm32f07x.h index a40f0f1057..843f8886bf 100644 --- a/chip/stm32/config-stm32f07x.h +++ b/chip/stm32/config-stm32f07x.h @@ -40,3 +40,6 @@ /* Reduced history because of limited RAM */ #undef CONFIG_CONSOLE_HISTORY #define CONFIG_CONSOLE_HISTORY 3 + +/* STM32F0 has a larger USB RAM */ +#define CONFIG_USB_RAM_SIZE 1024 diff --git a/chip/stm32/config_chip.h b/chip/stm32/config_chip.h index 366311d09b..d3143d8c86 100644 --- a/chip/stm32/config_chip.h +++ b/chip/stm32/config_chip.h @@ -87,6 +87,8 @@ /* Dedicated SRAM region for USB transfers */ #define CONFIG_USB_RAM_BASE 0x40006000 +#ifndef CONFIG_USB_RAM_SIZE #define CONFIG_USB_RAM_SIZE 512 +#endif #endif /* __CROS_EC_CONFIG_CHIP_H */ |