mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
53 lines
1.3 KiB
C
53 lines
1.3 KiB
C
/*
|
|
* Copyright (C) 2018 Gunar Schorcht
|
|
*
|
|
* This file is subject to the terms and conditions of the GNU Lesser
|
|
* General Public License v2.1. See the file LICENSE in the top level
|
|
* directory for more details.
|
|
*/
|
|
|
|
/**
|
|
* @ingroup boards_common_esp32
|
|
* @brief Board definitions that are common for all ESP32 boards.
|
|
*
|
|
* This file contains board configurations that are valid for all ESP32.
|
|
*
|
|
* For detailed information about the configuration of ESP32 boards, see
|
|
* section \ref esp32_peripherals "Common Peripherals".
|
|
*
|
|
* @author Gunar Schorcht <gunar@schorcht.net>
|
|
* @file
|
|
* @{
|
|
*/
|
|
|
|
#ifndef BOARD_COMMON_ESP32_H
|
|
#define BOARD_COMMON_ESP32_H
|
|
|
|
#include "board_common.h"
|
|
|
|
/**
|
|
* @brief External clock crystal frequency (MHz)
|
|
*
|
|
* Most boards use a 40MHz crystal, including all those based on Espressif's
|
|
* WROOM-32 and WROVER-32 modules. Those that don't, like the SparkFun ESP32
|
|
* Thing (26MHz), must define ESP32_XTAL_FREQ appropriately in their board
|
|
* configuration.
|
|
*
|
|
* An obvious side effect of a mismatch is that the UART won't sync and the
|
|
* development terminal will show garbage instead of log output.
|
|
*/
|
|
#ifndef ESP32_XTAL_FREQ
|
|
#define ESP32_XTAL_FREQ (40)
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
} /* end extern "C" */
|
|
#endif
|
|
|
|
#endif /* BOARD_COMMON_ESP32_H */
|
|
/** @} */
|