File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 1919 *
2020 *
2121 ******************************************************************************
22- */
22+ */
2323
2424/* Define to prevent recursive inclusion -------------------------------------*/
2525#ifndef __STM32MP1xx_HAL_CONF_DEFAULT_H
3737 * @brief Include the default list of modules to be used in the HAL driver
3838 * and manage module deactivation
3939 */
40+
41+ #define HAL_RTC_MODULE_DISABLED /* RTC MODULE on Cortex-M side is not supported.
42+ Linux on Cortex-A will handle this. */
43+ #define HAL_ETH_MODULE_DISABLED /* ETH module is also not intended to be used */
44+ #define HAL_MDMA_MODULE_ENABLED /* Some other modules (e.g. USART) require this */
45+
46+ #if defined(ARDUINO_STM32MP157A_DK1 ) || defined(ARDUINO_STM32MP157A_DK2 )
47+ // Cannot use them in this board, or define them in the kernel device tree.
48+ #define HAL_QSPI_MODULE_DISABLED
49+ #define HAL_FDCAN_MODULE_DISABLED
50+ #endif // defined(ARDUINO_STM32MP157A_DK1) && defined(ARDUINO_STM32MP157A_DK2)
51+
4052#include "stm32yyxx_hal_conf.h"
4153#if 0
4254/**
Original file line number Diff line number Diff line change 5858 #define HSI_VALUE ((uint32_t)64000000) /*!< Value of the Internal oscillator in Hz*/
5959#endif /* HSI_VALUE */
6060
61+ #if !defined (CSI_VALUE )
62+ #define CSI_VALUE 4000000U /*!< Value of the Internal oscillator in Hz*/
63+ #endif /* CSI_VALUE */
64+
6165/**
6266 * @}
6367 */
You can’t perform that action at this time.
0 commit comments