You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by je...@apache.org on 2023/03/01 08:21:31 UTC
[nuttx] 06/09: boards: spresense: Remove duplicate definitions
This is an automated email from the ASF dual-hosted git repository.
jerpelea pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 171f8a731c51a015ff550f7e0e8ba3b72690416c
Author: SPRESENSE <41...@users.noreply.github.com>
AuthorDate: Wed Mar 1 14:29:46 2023 +0900
boards: spresense: Remove duplicate definitions
Remove duplicate definitions are defined in board.h.
---
boards/arm/cxd56xx/spresense/include/cxd56_power.h | 18 ++++--------------
1 file changed, 4 insertions(+), 14 deletions(-)
diff --git a/boards/arm/cxd56xx/spresense/include/cxd56_power.h b/boards/arm/cxd56xx/spresense/include/cxd56_power.h
index f34ca80dbb..ca3e49193f 100644
--- a/boards/arm/cxd56xx/spresense/include/cxd56_power.h
+++ b/boards/arm/cxd56xx/spresense/include/cxd56_power.h
@@ -29,20 +29,6 @@
#include <stdbool.h>
-/****************************************************************************
- * Pre-processor Definitions
- ****************************************************************************/
-
-#define PMIC_NONE (0)
-#define PMIC_TYPE_LSW (1u << 8)
-#define PMIC_TYPE_GPO (1u << 9)
-#define PMIC_TYPE_DDCLDO (1u << 10)
-#define PMIC_GET_TYPE(v) ((v) & 0xff00)
-#define PMIC_GET_CH(v) ((v) & 0x00ff)
-#define PMIC_LSW(n) (PMIC_TYPE_LSW | (1u << (n)))
-#define PMIC_GPO(n) (PMIC_TYPE_GPO | (1u << (n)))
-#define PMIC_DDCLDO(n) (PMIC_TYPE_DDCLDO | (1u << (n)))
-
/****************************************************************************
* Public Types
****************************************************************************/
@@ -62,6 +48,10 @@ extern "C"
#define EXTERN extern
#endif
+/****************************************************************************
+ * Public Function Prototypes
+ ****************************************************************************/
+
/****************************************************************************
* Name: board_pmic_read
*