Skip to content

Commit aa08b78

Browse files
kbumsikfpistm
authored andcommitted
[MP1] Update HAL and system configurations
1 parent 5deccb7 commit aa08b78

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

system/STM32MP1xx/stm32mp1xx_hal_conf_default.h

+13-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*
2020
*
2121
******************************************************************************
22-
*/
22+
*/
2323

2424
/* Define to prevent recursive inclusion -------------------------------------*/
2525
#ifndef __STM32MP1xx_HAL_CONF_DEFAULT_H
@@ -37,6 +37,18 @@
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_STM32MP157C_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_STM32MP157C_DK2)
51+
4052
#include "stm32yyxx_hal_conf.h"
4153
#if 0
4254
/**

system/STM32MP1xx/system_stm32mp1xx.c

+4
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@
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
*/

0 commit comments

Comments
 (0)