mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
cpu/esp32: move CLOCK_CORECLOCK to periph_cpu_*.h
This define does not belong to the defines in `sdkconfig_*.h` that are used for the ESP-IDF SDK. It is therefore moved to the corresponding `periph_cpu_*.h` file.
This commit is contained in:
parent
a76f5fd55e
commit
e7bf789dd4
@ -19,10 +19,15 @@
|
||||
#ifndef PERIPH_CPU_ESP32_H
|
||||
#define PERIPH_CPU_ESP32_H
|
||||
|
||||
#include "sdkconfig.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/** Mapping configured ESP32 default clock to CLOCK_CORECLOCK define */
|
||||
#define CLOCK_CORECLOCK (1000000UL * CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ)
|
||||
|
||||
/**
|
||||
* @name Predefined GPIO names
|
||||
* @{
|
||||
|
@ -19,10 +19,15 @@
|
||||
#ifndef PERIPH_CPU_ESP32C3_H
|
||||
#define PERIPH_CPU_ESP32C3_H
|
||||
|
||||
#include "sdkconfig.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/** Mapping configured ESP32-C3 default clock to CLOCK_CORECLOCK define */
|
||||
#define CLOCK_CORECLOCK (1000000UL * CONFIG_ESP32C3_DEFAULT_CPU_FREQ_MHZ)
|
||||
|
||||
/**
|
||||
* @name Predefined GPIO names
|
||||
* @{
|
||||
|
@ -19,6 +19,9 @@
|
||||
#ifndef PERIPH_CPU_ESP32S3_H
|
||||
#define PERIPH_CPU_ESP32S3_H
|
||||
|
||||
/** Mapping configured ESP32-S3 default clock to CLOCK_CORECLOCK define */
|
||||
#define CLOCK_CORECLOCK (1000000UL * CONFIG_ESP32S3_DEFAULT_CPU_FREQ_MHZ)
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
@ -58,11 +58,6 @@ extern "C" {
|
||||
#ifndef CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ
|
||||
#define CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ 80
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Mapping configured ESP32 default clock to CLOCK_CORECLOCK define
|
||||
*/
|
||||
#define CLOCK_CORECLOCK (1000000UL * CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
@ -56,11 +56,6 @@ extern "C" {
|
||||
#ifndef CONFIG_ESP32C3_DEFAULT_CPU_FREQ_MHZ
|
||||
#define CONFIG_ESP32C3_DEFAULT_CPU_FREQ_MHZ 80
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Mapping configured ESP32-C3 default clock to CLOCK_CORECLOCK define
|
||||
*/
|
||||
#define CLOCK_CORECLOCK (1000000UL * CONFIG_ESP32C3_DEFAULT_CPU_FREQ_MHZ)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
@ -58,10 +58,6 @@ extern "C" {
|
||||
#ifndef CONFIG_ESP32S3_DEFAULT_CPU_FREQ_MHZ
|
||||
#define CONFIG_ESP32S3_DEFAULT_CPU_FREQ_MHZ 80
|
||||
#endif
|
||||
/**
|
||||
* @brief Mapping configured ESP32 default clock to CLOCK_CORECLOCK define
|
||||
*/
|
||||
#define CLOCK_CORECLOCK (1000000UL * CONFIG_ESP32S3_DEFAULT_CPU_FREQ_MHZ)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user