summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-04-06 09:43:23 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-04-06 09:43:23 +0200
commit6bb6b69bb6360cff11057ebef2a8b91cc3a91b3d (patch)
tree5fc4dbb7e5b2946eeac7edf67cd74e2e42b9cbff
parentarm/nucleo-h743zi: New BSP variant (diff)
downloadrtems-6bb6b69bb6360cff11057ebef2a8b91cc3a91b3d.tar.bz2
arm/stm32h7: Add STM32H7_HSE_FREQUENCY
-rw-r--r--bsps/arm/stm32h7/include/stm32h7xx_hal_conf.h5
-rw-r--r--spec/build/bsps/arm/stm32h7/grp.yml2
-rw-r--r--spec/build/bsps/arm/stm32h7/opthse.yml20
3 files changed, 27 insertions, 0 deletions
diff --git a/bsps/arm/stm32h7/include/stm32h7xx_hal_conf.h b/bsps/arm/stm32h7/include/stm32h7xx_hal_conf.h
index d423e4f782..3ad4e1e9a3 100644
--- a/bsps/arm/stm32h7/include/stm32h7xx_hal_conf.h
+++ b/bsps/arm/stm32h7/include/stm32h7xx_hal_conf.h
@@ -21,6 +21,11 @@
#ifndef __STM32H7xx_HAL_CONF_H
#define __STM32H7xx_HAL_CONF_H
+#ifdef __rtems__
+#include <bspopts.h>
+
+#define HSE_VALUE ((uint32_t)STM32H7_HSE_FREQUENCY)
+#endif /* __rtems__ */
#ifdef __cplusplus
extern "C" {
#endif
diff --git a/spec/build/bsps/arm/stm32h7/grp.yml b/spec/build/bsps/arm/stm32h7/grp.yml
index 2ee79d2760..1158fd9cb2 100644
--- a/spec/build/bsps/arm/stm32h7/grp.yml
+++ b/spec/build/bsps/arm/stm32h7/grp.yml
@@ -40,6 +40,8 @@ links:
- role: build-dependency
uid: optenusart6
- role: build-dependency
+ uid: opthse
+- role: build-dependency
uid: optlinkcmds
- role: build-dependency
uid: optmemdtcmsz
diff --git a/spec/build/bsps/arm/stm32h7/opthse.yml b/spec/build/bsps/arm/stm32h7/opthse.yml
new file mode 100644
index 0000000000..51366932e1
--- /dev/null
+++ b/spec/build/bsps/arm/stm32h7/opthse.yml
@@ -0,0 +1,20 @@
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+actions:
+- get-integer: null
+- assert-uint32: null
+- format-and-define: null
+build-type: option
+default: 25000000
+default-by-variant:
+- value: 8000000
+ variants:
+ - arm/nucleo-h743zi
+enabled-by: true
+format: '{}'
+links: []
+name: STM32H7_HSE_FREQUENCY
+description: |
+ Frequency of the external high speed oscillator (HSE).
+type: build
+copyrights:
+- Copyright (C) 2021 embedded brains GmbH (http://www.embedded-brains.de)