1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 04:52:59 +01:00

boards/esp32-*: drop custom board_init()

This commit is contained in:
Benjamin Valentin 2021-10-18 22:51:51 +02:00
parent 4d7a3c1dba
commit 3977023700
9 changed files with 30 additions and 60 deletions

View File

@ -25,14 +25,6 @@
extern "C" {
#endif
/**
* @brief Initialize the board specific hardware
*/
static inline void board_init(void) {
/* there is nothing special to initialize on this board */
board_init_common();
}
#if !MODULE_ESP_ETH || DOXYGEN
/**
* @name Button pin definitions

View File

@ -101,14 +101,6 @@
extern "C" {
#endif
/**
* @brief Initialize the board specific hardware
*/
static inline void board_init(void) {
/* there is nothing special to initialize on this board */
board_init_common();
}
#ifdef __cplusplus
} /* end extern "C" */
#endif

View File

@ -54,14 +54,6 @@
extern "C" {
#endif
/**
* @brief Initialize the board specific hardware
*/
static inline void board_init(void) {
/* there is nothing special to initialize on this board */
board_init_common();
}
#ifdef __cplusplus
} /* end extern "C" */
#endif

View File

@ -122,14 +122,6 @@
extern "C" {
#endif
/**
* @brief Initialize the board specific hardware
*/
static inline void board_init(void) {
/* there is nothing special to initialize on this board */
board_init_common();
}
#ifdef __cplusplus
} /* end extern "C" */
#endif

View File

@ -76,14 +76,6 @@
extern "C" {
#endif
/**
* @brief Initialize the board specific hardware
*/
static inline void board_init(void) {
/* there is nothing special to initialize on this board */
board_init_common();
}
#ifdef __cplusplus
} /* end extern "C" */
#endif

View File

@ -85,14 +85,6 @@
extern "C" {
#endif
/**
* @brief Initialize the board specific hardware
*/
static inline void board_init(void) {
/* there is nothing special to initialize on this board */
board_init_common();
}
#ifdef __cplusplus
} /* end extern "C" */
#endif

View File

@ -0,0 +1,29 @@
/*
* Copyright (C) 2019 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_esp32_esp-wrover-kit
* @{
*
* @file
* @brief Board specific definitions for esp32-wrover-kit
*
* @author Gunar Schorcht <gunar@schorcht.net>
*/
#include "board.h"
void board_init(void)
{
#if MODULE_ILI9341
gpio_init(LCD_BACKLIGHT, GPIO_OUT);
#endif
/* there is nothing special to initialize on this board */
board_init_common();
}

View File

@ -149,18 +149,6 @@
extern "C" {
#endif
/**
* @brief Initialize the board specific hardware
*/
static inline void board_init(void) {
#if MODULE_ILI9341
gpio_init(LCD_BACKLIGHT, GPIO_OUT);
#endif
/* there is nothing special to initialize on this board */
board_init_common();
}
#ifdef __cplusplus
} /* end extern "C" */
#endif

View File

@ -372,6 +372,7 @@ static NORETURN void IRAM system_init (void)
#endif
/* initialize the board */
extern void board_init(void);
board_init();
/* route a software interrupt source to CPU as trigger for thread yields */