arm/stm32h7: Add STM32H7_HSE_FREQUENCY

This commit is contained in:
Sebastian Huber
2021-04-06 09:43:23 +02:00
parent 26307ef115
commit 6bb6b69bb6
3 changed files with 27 additions and 0 deletions

View File

@@ -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

View File

@@ -39,6 +39,8 @@ links:
uid: optenusart3
- role: build-dependency
uid: optenusart6
- role: build-dependency
uid: opthse
- role: build-dependency
uid: optlinkcmds
- role: build-dependency

View File

@@ -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)