77 lines
1.7 KiB
C
77 lines
1.7 KiB
C
/**
|
|
* @file boards/subaruej20g/mcuconf.h
|
|
*
|
|
* @brief In this header we can override mcuconf.h.
|
|
*
|
|
* @date Feb 19, 2019
|
|
* @author Andrey Gusakov, 2019
|
|
*/
|
|
|
|
#include "../../stm32f7ems/mcuconf.h"
|
|
|
|
#ifndef _MCUCONF_SUBARUEJ20G_H_
|
|
#define _MCUCONF_SUBARUEJ20G_H_
|
|
|
|
/* clocks adjust for 12 MHz ocs */
|
|
#undef STM32_PLLM_VALUE
|
|
#define STM32_PLLM_VALUE 12
|
|
|
|
//#undef CORTEX_ENABLE_WFI_IDLE
|
|
#define CORTEX_ENABLE_WFI_IDLE FALSE
|
|
|
|
//#undef STM32_LSE_ENABLED
|
|
//#define STM32_LSE_ENABLED FALSE
|
|
|
|
#undef STM32_RTCSEL
|
|
#define STM32_RTCSEL STM32_RTCSEL_HSEDIV // STM32_RTCSEL_LSI
|
|
|
|
/* serials and uarts */
|
|
#undef STM32_SERIAL_USE_USART1
|
|
#undef STM32_UART_USE_USART1
|
|
//#if TS_UART_DMA_MODE
|
|
//#define STM32_SERIAL_USE_UART1 FALSE
|
|
//#else
|
|
#define STM32_SERIAL_USE_USART1 TRUE
|
|
#define STM32_UART_USE_USART1 FALSE
|
|
//#endif
|
|
|
|
#undef STM32_SERIAL_USE_USART2
|
|
#undef STM32_UART_USE_USART2
|
|
#define STM32_SERIAL_USE_USART2 FALSE
|
|
#define STM32_UART_USE_USART2 TRUE
|
|
|
|
#undef STM32_SERIAL_USE_USART3
|
|
#undef STM32_UART_USE_USART3
|
|
#define STM32_SERIAL_USE_USART3 FALSE
|
|
#define STM32_UART_USE_USART3 FALSE
|
|
|
|
#undef STM32_UART_USE_USART3
|
|
#define STM32_UART_USE_USART3 FALSE
|
|
|
|
#undef STM32_UART_USE_UART4
|
|
#define STM32_UART_USE_UART4 FALSE
|
|
|
|
#undef STM32_USB_USE_OTG1
|
|
#define STM32_USB_USE_OTG1 TRUE
|
|
|
|
#undef STM32_USB_USE_USB1
|
|
#define STM32_USB_USE_USB1 TRUE
|
|
|
|
#undef STM32_I2C_USE_I2C1
|
|
#define STM32_I2C_USE_I2C1 FALSE
|
|
|
|
#undef STM32_SPI_USE_SPI2
|
|
#define STM32_SPI_USE_SPI2 FALSE
|
|
|
|
#undef STM32_SPI_USE_SPI4
|
|
#define STM32_SPI_USE_SPI4 TRUE
|
|
|
|
#undef STM32_ICU_USE_TIM3
|
|
#define STM32_ICU_USE_TIM3 TRUE
|
|
|
|
|
|
//#undef STM32_CAN_CAN1_IRQ_PRIORITY
|
|
//#define STM32_CAN_CAN1_IRQ_PRIORITY 4
|
|
|
|
#endif /* _MCUCONF_SUBARUEJ20G_H_ */
|