boards/xtensa/esp32: Rename the common files as esp32_board_* to avoid
any naming collisions. Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
This commit is contained in:
parent
e097890f22
commit
cea53ed2ff
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* boards/xtensa/esp32/common/include/esp32_timer.h
|
||||
* boards/xtensa/esp32/common/include/esp32_board_tim.h
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
@ -18,8 +18,8 @@
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef __BOARDS_XTENSA_ESP32_COMMON_INCLUDE_TIMER_H
|
||||
#define __BOARDS_XTENSA_ESP32_COMMON_INCLUDE_TIMER_H
|
||||
#ifndef __BOARDS_XTENSA_ESP32_COMMON_INCLUDE_BOARD_TIMER_H
|
||||
#define __BOARDS_XTENSA_ESP32_COMMON_INCLUDE_BOARD_TIMER_H
|
||||
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
@ -75,4 +75,4 @@ int board_timer_init(void);
|
||||
#endif
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __BOARDS_XTENSA_ESP32_COMMON_INCLUDE_TIMER_H */
|
||||
#endif /* __BOARDS_XTENSA_ESP32_COMMON_INCLUDE_BOARD_TIMER_H */
|
@ -18,8 +18,8 @@
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef __BOARDS_XTENSA_ESP32_COMMON_INCLUDE_WDT_H
|
||||
#define __BOARDS_XTENSA_ESP32_COMMON_INCLUDE_WDT_H
|
||||
#ifndef __BOARDS_XTENSA_ESP32_COMMON_INCLUDE_BOARD_WDT_H
|
||||
#define __BOARDS_XTENSA_ESP32_COMMON_INCLUDE_BOARD_WDT_H
|
||||
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
@ -75,4 +75,4 @@ int board_wdt_init(void);
|
||||
#endif
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __BOARDS_XTENSA_ESP32_COMMON_INCLUDE_WDT_H */
|
||||
#endif /* __BOARDS_XTENSA_ESP32_COMMON_INCLUDE_BOARD_WDT_H */
|
@ -19,11 +19,11 @@
|
||||
#############################################################################
|
||||
|
||||
ifeq ($(CONFIG_TIMER),y)
|
||||
CSRCS += esp32_timer.c
|
||||
CSRCS += esp32_board_tim.c
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_WDT),y)
|
||||
CSRCS += esp32_wdt.c
|
||||
ifeq ($(CONFIG_WATCHDOG),y)
|
||||
CSRCS += esp32_board_wdt.c
|
||||
endif
|
||||
|
||||
DEPPATH += --dep-path src
|
||||
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* boards/xtensa/esp32/common/src/esp32_timer.c
|
||||
* boards/xtensa/esp32/common/src/esp32_board_tim.c
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
@ -29,6 +29,7 @@
|
||||
#include <nuttx/timers/timer.h>
|
||||
|
||||
#include "esp32_tim_lowerhalf.h"
|
||||
#include "esp32_board_tim.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
@ -28,6 +28,7 @@
|
||||
#include <debug.h>
|
||||
|
||||
#include "esp32_wtd_lowerhalf.h"
|
||||
#include "esp32_board_wdt.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
@ -65,12 +65,12 @@
|
||||
# include <nuttx/leds/userled.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESP32_TIMER
|
||||
# include "esp32_timer.h"
|
||||
#ifdef CONFIG_TIMER
|
||||
# include "esp32_board_tim.h"
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESP32_WDT
|
||||
# include "esp32_wdt.h"
|
||||
#ifdef CONFIG_WATCHDOG
|
||||
# include "esp32_board_wdt.h"
|
||||
#endif
|
||||
|
||||
#include "esp32-core.h"
|
||||
|
@ -50,12 +50,12 @@
|
||||
# include <nuttx/leds/userled.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESP32_TIMER
|
||||
# include "esp32_timer.h"
|
||||
#ifdef CONFIG_TIMER
|
||||
# include "esp32_board_tim.h"
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESP32_WDT
|
||||
# include "esp32_wdt.h"
|
||||
#ifdef CONFIG_WATCHDOG
|
||||
# include "esp32_board_wdt.h"
|
||||
#endif
|
||||
|
||||
#include "esp32-ethernet-kit.h"
|
||||
|
Loading…
x
Reference in New Issue
Block a user