1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 15:38:11 +00:00

trezorhal: enable USB on T1

This commit is contained in:
Pavol Rusnak 2018-10-02 16:29:34 +02:00
parent 0d8cc86a60
commit 411c2a2b2a
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -46,9 +46,14 @@
/* Exported types ------------------------------------------------------------*/
/* Exported constants --------------------------------------------------------*/
// #define USE_USB_FS
#ifdef STM32F427xx
#define USE_USB_HS
#define USE_USB_HS_IN_FS
#elif STM32F405xx
#define USE_USB_FS
#else
#error Unsupported MCU
#endif
/* ########################## Module Selection ############################## */
/**
@ -56,10 +61,10 @@
*/
#define HAL_MODULE_ENABLED
#define HAL_ADC_MODULE_ENABLED
#define HAL_CAN_MODULE_ENABLED
/* #define HAL_CAN_MODULE_ENABLED */
/* #define HAL_CRC_MODULE_ENABLED */
/* #define HAL_CRYP_MODULE_ENABLED */
#define HAL_DAC_MODULE_ENABLED
/* #define HAL_DAC_MODULE_ENABLED */
/* #define HAL_DCMI_MODULE_ENABLED */
#define HAL_DMA_MODULE_ENABLED
/* #define HAL_DMA2D_MODULE_ENABLED */