You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/04/01 17:15:44 UTC
[incubator-nuttx] 02/02: boards/xtensa/esp32/*/esP32_bringup.c:
Remove unused comments blocks and garbage at the end of the files.
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit f07b64d1af4ae973f5596ae274f90c96cfdf928d
Author: Abdelatif Guettouche <ab...@espressif.com>
AuthorDate: Wed Mar 31 23:38:17 2021 +0200
boards/xtensa/esp32/*/esP32_bringup.c: Remove unused comments blocks and
garbage at the end of the files.
Signed-off-by: Abdelatif Guettouche <ab...@espressif.com>
---
boards/xtensa/esp32/esp32-devkitc/src/esp32_bringup.c | 9 +++------
boards/xtensa/esp32/esp32-ethernet-kit/src/esp32_bringup.c | 9 +++------
boards/xtensa/esp32/esp32-wrover-kit/src/esp32_bringup.c | 5 +----
3 files changed, 7 insertions(+), 16 deletions(-)
diff --git a/boards/xtensa/esp32/esp32-devkitc/src/esp32_bringup.c b/boards/xtensa/esp32/esp32-devkitc/src/esp32_bringup.c
index a000a8d..e6f0665 100644
--- a/boards/xtensa/esp32/esp32-devkitc/src/esp32_bringup.c
+++ b/boards/xtensa/esp32/esp32-devkitc/src/esp32_bringup.c
@@ -77,10 +77,6 @@
#include "esp32-devkitc.h"
/****************************************************************************
- * Pre-processor Definitions
- ****************************************************************************/
-
-/****************************************************************************
* Public Functions
****************************************************************************/
@@ -195,6 +191,7 @@ int esp32_bringup(void)
/* First, register the timer drivers and let timer 1 for oneshot
* if it is enabled.
*/
+
#ifdef CONFIG_TIMER
#ifdef CONFIG_ESP32_TIMER0
@@ -208,7 +205,7 @@ int esp32_bringup(void)
}
#endif
-#if defined(CONFIG_ESP32_TIMER1) && !defined(CONFIG_ONESHOT)
+#if defined(CONFIG_ESP32_TIMER1) && !defined(CONFIG_ONESHOT)
ret = esp32_timer_initialize("/dev/timer1", TIMER1);
if (ret < 0)
{
@@ -230,7 +227,7 @@ int esp32_bringup(void)
}
#endif
-#ifdef CONFIG_ESP32_TIMER3
+#ifdef CONFIG_ESP32_TIMER3
ret = esp32_timer_initialize("/dev/timer3", TIMER3);
if (ret < 0)
{
diff --git a/boards/xtensa/esp32/esp32-ethernet-kit/src/esp32_bringup.c b/boards/xtensa/esp32/esp32-ethernet-kit/src/esp32_bringup.c
index 048d346..06cd427 100644
--- a/boards/xtensa/esp32/esp32-ethernet-kit/src/esp32_bringup.c
+++ b/boards/xtensa/esp32/esp32-ethernet-kit/src/esp32_bringup.c
@@ -69,10 +69,6 @@
#include "esp32-ethernet-kit.h"
/****************************************************************************
- * Pre-processor Definitions
- ****************************************************************************/
-
-/****************************************************************************
* Public Functions
****************************************************************************/
@@ -170,6 +166,7 @@ int esp32_bringup(void)
/* First, register the timer drivers and let timer 1 for oneshot
* if it is enabled.
*/
+
#ifdef CONFIG_TIMER
#ifdef CONFIG_ESP32_TIMER0
@@ -183,7 +180,7 @@ int esp32_bringup(void)
}
#endif
-#if defined(CONFIG_ESP32_TIMER1) && !defined(CONFIG_ONESHOT)
+#if defined(CONFIG_ESP32_TIMER1) && !defined(CONFIG_ONESHOT)
ret = esp32_timer_initialize("/dev/timer1", TIMER1);
if (ret < 0)
{
@@ -205,7 +202,7 @@ int esp32_bringup(void)
}
#endif
-#ifdef CONFIG_ESP32_TIMER3
+#ifdef CONFIG_ESP32_TIMER3
ret = esp32_timer_initialize("/dev/timer3", TIMER3);
if (ret < 0)
{
diff --git a/boards/xtensa/esp32/esp32-wrover-kit/src/esp32_bringup.c b/boards/xtensa/esp32/esp32-wrover-kit/src/esp32_bringup.c
index 21e6ded..9dcf950 100644
--- a/boards/xtensa/esp32/esp32-wrover-kit/src/esp32_bringup.c
+++ b/boards/xtensa/esp32/esp32-wrover-kit/src/esp32_bringup.c
@@ -78,10 +78,6 @@
#include "esp32-wrover-kit.h"
/****************************************************************************
- * Pre-processor Definitions
- ****************************************************************************/
-
-/****************************************************************************
* Public Functions
****************************************************************************/
@@ -179,6 +175,7 @@ int esp32_bringup(void)
/* First, register the timer drivers and let timer 1 for oneshot
* if it is enabled.
*/
+
#ifdef CONFIG_TIMER
#ifdef CONFIG_ESP32_TIMER0