arch: arm: include: nxstyle fixes

nxstyle fixes to pass CI

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
This commit is contained in:
Alin Jerpelea
2021-03-21 11:37:01 +01:00
committed by Xiang Xiao
parent 4daa276903
commit c39339a7a8
182 changed files with 2444 additions and 2013 deletions
+17 -17
View File
@@ -1,4 +1,4 @@
/**************************************************************************************** /****************************************************************************
* arch/arm/include/a1x/a10_irq.h * arch/arm/include/a1x/a10_irq.h
* *
* Licensed to the Apache Software Foundation (ASF) under one or more * Licensed to the Apache Software Foundation (ASF) under one or more
@@ -16,22 +16,22 @@
* License for the specific language governing permissions and limitations * License for the specific language governing permissions and limitations
* under the License. * under the License.
* *
****************************************************************************************/ ****************************************************************************/
/* This file should never be included directly but, rather, only indirectly through /* This file should never be included directly but, rather,
* nuttx/irq.h * only indirectly through nuttx/irq.h
*/ */
#ifndef __ARCH_ARM_INCLUDE_A1X_A10_IRQ_H #ifndef __ARCH_ARM_INCLUDE_A1X_A10_IRQ_H
#define __ARCH_ARM_INCLUDE_A1X_A10_IRQ_H #define __ARCH_ARM_INCLUDE_A1X_A10_IRQ_H
/**************************************************************************************** /****************************************************************************
* Included Files * Included Files
****************************************************************************************/ ****************************************************************************/
/**************************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Prototypes
****************************************************************************************/ ****************************************************************************/
/* External interrupts numbers */ /* External interrupts numbers */
@@ -173,21 +173,21 @@
#define NR_IRQS (A1X_IRQ_NINT + A1X_PIO_NINT) #define NR_IRQS (A1X_IRQ_NINT + A1X_PIO_NINT)
/**************************************************************************************** /****************************************************************************
* Public Types * Public Types
****************************************************************************************/ ****************************************************************************/
/**************************************************************************************** /****************************************************************************
* Inline functions * Inline functions
****************************************************************************************/ ****************************************************************************/
/**************************************************************************************** /****************************************************************************
* Public Data * Public Data
****************************************************************************************/ ****************************************************************************/
/**************************************************************************************** /****************************************************************************
* Public Function Prototypes * Public Function Prototypes
****************************************************************************************/ ****************************************************************************/
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
#ifdef __cplusplus #ifdef __cplusplus
+13 -13
View File
@@ -1,4 +1,4 @@
/************************************************************************************ /****************************************************************************
* arch/arm/include/a1x/chip.h * arch/arm/include/a1x/chip.h
* *
* Licensed to the Apache Software Foundation (ASF) under one or more * Licensed to the Apache Software Foundation (ASF) under one or more
@@ -16,20 +16,20 @@
* License for the specific language governing permissions and limitations * License for the specific language governing permissions and limitations
* under the License. * under the License.
* *
************************************************************************************/ ****************************************************************************/
#ifndef __ARCH_ARM_INCLUDE_A1X_CHIP_H #ifndef __ARCH_ARM_INCLUDE_A1X_CHIP_H
#define __ARCH_ARM_INCLUDE_A1X_CHIP_H #define __ARCH_ARM_INCLUDE_A1X_CHIP_H
/************************************************************************************ /****************************************************************************
* Included Files * Included Files
************************************************************************************/ ****************************************************************************/
#include <nuttx/config.h> #include <nuttx/config.h>
/************************************************************************************ /****************************************************************************
* Pre-processor Definitions * Pre-processor Prototypes
************************************************************************************/ ****************************************************************************/
/* A1X Family */ /* A1X Family */
@@ -39,16 +39,16 @@
# error Unrecognized A1X chip # error Unrecognized A1X chip
#endif #endif
/************************************************************************************ /****************************************************************************
* Public Types * Public Types
************************************************************************************/ ****************************************************************************/
/************************************************************************************ /****************************************************************************
* Public Data * Public Data
************************************************************************************/ ****************************************************************************/
/************************************************************************************ /****************************************************************************
* Public Functions Prototypes * Public Functions Prototypes
************************************************************************************/ ****************************************************************************/
#endif /* __ARCH_ARM_INCLUDE_A1X_CHIP_H */ #endif /* __ARCH_ARM_INCLUDE_A1X_CHIP_H */
+15 -15
View File
@@ -1,4 +1,4 @@
/**************************************************************************************** /****************************************************************************
* arch/arm/include/a1x/irq.h * arch/arm/include/a1x/irq.h
* *
* Licensed to the Apache Software Foundation (ASF) under one or more * Licensed to the Apache Software Foundation (ASF) under one or more
@@ -16,18 +16,18 @@
* License for the specific language governing permissions and limitations * License for the specific language governing permissions and limitations
* under the License. * under the License.
* *
****************************************************************************************/ ****************************************************************************/
/* This file should never be included directly but, rather, only indirectly through /* This file should never be included directly but, rather,
* nuttx/irq.h * only indirectly through nuttx/irq.h
*/ */
#ifndef __ARCH_ARM_INCLUDE_A1X_IRQ_H #ifndef __ARCH_ARM_INCLUDE_A1X_IRQ_H
#define __ARCH_ARM_INCLUDE_A1X_IRQ_H #define __ARCH_ARM_INCLUDE_A1X_IRQ_H
/**************************************************************************************** /****************************************************************************
* Included Files * Included Files
****************************************************************************************/ ****************************************************************************/
#include <nuttx/config.h> #include <nuttx/config.h>
#include <arch/a1x/chip.h> #include <arch/a1x/chip.h>
@@ -40,19 +40,19 @@
# error Unrecognized A1X chip # error Unrecognized A1X chip
#endif #endif
/**************************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Prototypes
****************************************************************************************/ ****************************************************************************/
/**************************************************************************************** /****************************************************************************
* Public Types * Public Types
****************************************************************************************/ ****************************************************************************/
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
/**************************************************************************************** /****************************************************************************
* Public Data * Public Data
****************************************************************************************/ ****************************************************************************/
#ifdef __cplusplus #ifdef __cplusplus
#define EXTERN extern "C" #define EXTERN extern "C"
@@ -62,9 +62,9 @@ extern "C"
#define EXTERN extern #define EXTERN extern
#endif #endif
/**************************************************************************************** /****************************************************************************
* Public Function Prototypes * Public Function Prototypes
****************************************************************************************/ ****************************************************************************/
#undef EXTERN #undef EXTERN
#ifdef __cplusplus #ifdef __cplusplus
+18 -17
View File
@@ -1,4 +1,4 @@
/**************************************************************************************** /****************************************************************************
* arch/arm/include/am335x/am335x_irq.h * arch/arm/include/am335x/am335x_irq.h
* *
* Copyright (C) 2019 Petro Karashchenko. All rights reserved. * Copyright (C) 2019 Petro Karashchenko. All rights reserved.
@@ -31,24 +31,25 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE. * POSSIBILITY OF SUCH DAMAGE.
* *
****************************************************************************************/ ****************************************************************************/
/* This file should never be included directly but, rather, only indirectly through /* This file should never be included directly but, rather,
* nuttx/irq.h * only indirectly through nuttx/irq.h
*/ */
#ifndef __ARCH_ARM_INCLUDE_AM335X_AM335X_IRQ_H #ifndef __ARCH_ARM_INCLUDE_AM335X_AM335X_IRQ_H
#define __ARCH_ARM_INCLUDE_AM335X_AM335X_IRQ_H #define __ARCH_ARM_INCLUDE_AM335X_AM335X_IRQ_H
/**************************************************************************************** /****************************************************************************
* Included Files * Included Files
****************************************************************************************/ ****************************************************************************/
/**************************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Prototypes
****************************************************************************************/ ****************************************************************************/
/* External interrupts numbers */ /* External interrupts numbers */
/* Interrupt number list */ /* Interrupt number list */
#define AM335X_IRQ_EMU (0) /* Emulation interrupt */ #define AM335X_IRQ_EMU (0) /* Emulation interrupt */
@@ -320,21 +321,21 @@
AM335X_NGPIO0IRQS + AM335X_NGPIO1IRQS + \ AM335X_NGPIO0IRQS + AM335X_NGPIO1IRQS + \
AM335X_NGPIO2IRQS + AM335X_NGPIO3IRQS ) AM335X_NGPIO2IRQS + AM335X_NGPIO3IRQS )
/**************************************************************************************** /****************************************************************************
* Public Types * Public Types
****************************************************************************************/ ****************************************************************************/
/**************************************************************************************** /****************************************************************************
* Inline functions * Inline functions
****************************************************************************************/ ****************************************************************************/
/**************************************************************************************** /****************************************************************************
* Public Data * Public Data
****************************************************************************************/ ****************************************************************************/
/**************************************************************************************** /****************************************************************************
* Public Function Prototypes * Public Function Prototypes
****************************************************************************************/ ****************************************************************************/
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
#ifdef __cplusplus #ifdef __cplusplus
+14 -14
View File
@@ -1,4 +1,4 @@
/************************************************************************************ /****************************************************************************
* arch/arm/include/am335x/chip.h * arch/arm/include/am335x/chip.h
* *
* Copyright (C) 2018 Petro Karashchenko. All rights reserved. * Copyright (C) 2018 Petro Karashchenko. All rights reserved.
@@ -31,20 +31,20 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE. * POSSIBILITY OF SUCH DAMAGE.
* *
************************************************************************************/ ****************************************************************************/
#ifndef __ARCH_ARM_INCLUDE_AM335X_CHIP_H #ifndef __ARCH_ARM_INCLUDE_AM335X_CHIP_H
#define __ARCH_ARM_INCLUDE_AM335X_CHIP_H #define __ARCH_ARM_INCLUDE_AM335X_CHIP_H
/************************************************************************************ /****************************************************************************
* Included Files * Included Files
************************************************************************************/ ****************************************************************************/
#include <nuttx/config.h> #include <nuttx/config.h>
/************************************************************************************ /****************************************************************************
* Pre-processor Definitions * Pre-processor Prototypes
************************************************************************************/ ****************************************************************************/
/* AM335X Family */ /* AM335X Family */
@@ -54,16 +54,16 @@
# error Unrecognized AM335X chip # error Unrecognized AM335X chip
#endif #endif
/************************************************************************************ /****************************************************************************
* Public Types * Public Types
************************************************************************************/ ****************************************************************************/
/************************************************************************************ /****************************************************************************
* Public Data * Public Data
************************************************************************************/ ****************************************************************************/
/************************************************************************************ /****************************************************************************
* Public Functions * Public Functions Prototypes
************************************************************************************/ ****************************************************************************/
#endif /* __ARCH_ARM_INCLUDE_AM335X_CHIP_H */ #endif /* __ARCH_ARM_INCLUDE_AM335X_CHIP_H */
+16 -16
View File
@@ -1,4 +1,4 @@
/**************************************************************************************** /****************************************************************************
* arch/arm/include/am335x/irq.h * arch/arm/include/am335x/irq.h
* *
* Copyright (C) 2019 Petro Karashchenko. All rights reserved. * Copyright (C) 2019 Petro Karashchenko. All rights reserved.
@@ -31,26 +31,22 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE. * POSSIBILITY OF SUCH DAMAGE.
* *
****************************************************************************************/ ****************************************************************************/
/* This file should never be included directly but, rather, only indirectly through /* This file should never be included directly but, rather,
* nuttx/irq.h * only indirectly through nuttx/irq.h
*/ */
#ifndef __ARCH_ARM_INCLUDE_AM335X_IRQ_H #ifndef __ARCH_ARM_INCLUDE_AM335X_IRQ_H
#define __ARCH_ARM_INCLUDE_AM335X_IRQ_H #define __ARCH_ARM_INCLUDE_AM335X_IRQ_H
/**************************************************************************************** /****************************************************************************
* Included Files * Included Files
****************************************************************************************/ ****************************************************************************/
#include <nuttx/config.h> #include <nuttx/config.h>
#include <arch/am335x/chip.h> #include <arch/am335x/chip.h>
/****************************************************************************************
* Pre-processor Definitions
****************************************************************************************/
/* Chip-Specific External interrupts */ /* Chip-Specific External interrupts */
#if defined(CONFIG_ARCH_CHIP_AM335X) #if defined(CONFIG_ARCH_CHIP_AM335X)
@@ -59,15 +55,19 @@
# error Unrecognized AM335X chip # error Unrecognized AM335X chip
#endif #endif
/**************************************************************************************** /****************************************************************************
* Pre-processor Prototypes
****************************************************************************/
/****************************************************************************
* Public Types * Public Types
****************************************************************************************/ ****************************************************************************/
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
/**************************************************************************************** /****************************************************************************
* Public Data * Public Data
****************************************************************************************/ ****************************************************************************/
#ifdef __cplusplus #ifdef __cplusplus
#define EXTERN extern "C" #define EXTERN extern "C"
@@ -77,9 +77,9 @@ extern "C"
#define EXTERN extern #define EXTERN extern
#endif #endif
/**************************************************************************************** /****************************************************************************
* Public Function Prototypes * Public Function Prototypes
****************************************************************************************/ ****************************************************************************/
#undef EXTERN #undef EXTERN
#ifdef __cplusplus #ifdef __cplusplus
+1 -1
View File
@@ -37,7 +37,7 @@
#endif #endif
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Prototypes
****************************************************************************/ ****************************************************************************/
#ifdef CONFIG_PIC #ifdef CONFIG_PIC
+2 -2
View File
@@ -35,7 +35,7 @@
#endif #endif
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Prototypes
****************************************************************************/ ****************************************************************************/
/* IRQ Stack Frame Format: /* IRQ Stack Frame Format:
@@ -172,7 +172,7 @@ struct xcptcontext
* leave_critical section(), are probably what you really want. * leave_critical section(), are probably what you really want.
*/ */
/* Save the current interrupt enable state & disable IRQs. */ /* Save the current interrupt enable state & disable IRQs. */
static inline irqstate_t up_irq_save(void) static inline irqstate_t up_irq_save(void)
{ {
+1 -1
View File
@@ -36,7 +36,7 @@
#endif #endif
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Prototypes
****************************************************************************/ ****************************************************************************/
#define SYS_syscall 0x00 #define SYS_syscall 0x00
+6 -2
View File
@@ -40,10 +40,14 @@
#include <arch/chip/chip.h> #include <arch/chip/chip.h>
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Prototypes
****************************************************************************/ ****************************************************************************/
/* Configuration ************************************************************/ /* Configuration ************************************************************/
/* If this is a kernel build, how many nested system calls should we support? */
/* If this is a kernel build,
* how many nested system calls should we support?
*/
#ifndef CONFIG_SYS_NNEST #ifndef CONFIG_SYS_NNEST
# define CONFIG_SYS_NNEST 2 # define CONFIG_SYS_NNEST 2
+1 -1
View File
@@ -36,7 +36,7 @@
#endif #endif
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Prototypes
****************************************************************************/ ****************************************************************************/
/* This is the value used as the argument to the SVC instruction. It is not /* This is the value used as the argument to the SVC instruction. It is not
+1 -1
View File
@@ -38,7 +38,7 @@
#endif #endif
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Prototypes
****************************************************************************/ ****************************************************************************/
/* IRQ Stack Frame Format: /* IRQ Stack Frame Format:
+1 -1
View File
@@ -36,7 +36,7 @@
#endif #endif
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Prototypes
****************************************************************************/ ****************************************************************************/
#define SYS_syscall 0x00 #define SYS_syscall 0x00
+1 -1
View File
@@ -47,7 +47,7 @@
#endif #endif
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Prototypes
****************************************************************************/ ****************************************************************************/
/* Configuration ************************************************************/ /* Configuration ************************************************************/
+1 -1
View File
@@ -26,7 +26,7 @@
****************************************************************************/ ****************************************************************************/
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Prototypes
****************************************************************************/ ****************************************************************************/
/* IRQ Stack Frame Format: */ /* IRQ Stack Frame Format: */
+1 -1
View File
@@ -26,7 +26,7 @@
****************************************************************************/ ****************************************************************************/
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Prototypes
****************************************************************************/ ****************************************************************************/
/* IRQ Stack Frame Format: */ /* IRQ Stack Frame Format: */
+7 -7
View File
@@ -1,4 +1,4 @@
/************************************************************************************ /****************************************************************************
* arch/arm/include/armv7-m/nvicpri.h * arch/arm/include/armv7-m/nvicpri.h
* *
* Licensed to the Apache Software Foundation (ASF) under one or more * Licensed to the Apache Software Foundation (ASF) under one or more
@@ -16,20 +16,20 @@
* License for the specific language governing permissions and limitations * License for the specific language governing permissions and limitations
* under the License. * under the License.
* *
************************************************************************************/ ****************************************************************************/
#ifndef __ARCH_ARM_INCLUDE_ARM7_M_NVICPRI_H #ifndef __ARCH_ARM_INCLUDE_ARM7_M_NVICPRI_H
#define __ARCH_ARM_INCLUDE_ARM7_M_NVICPRI_H #define __ARCH_ARM_INCLUDE_ARM7_M_NVICPRI_H
/************************************************************************************ /****************************************************************************
* Included Files * Included Files
************************************************************************************/ ****************************************************************************/
#include <arch/chip/chip.h> #include <arch/chip/chip.h>
/************************************************************************************ /****************************************************************************
* Pre-processor Definitions * Pre-processor Prototypes
************************************************************************************/ ****************************************************************************/
/* If CONFIG_ARMV7M_USEBASEPRI is selected, then interrupts will be disabled /* If CONFIG_ARMV7M_USEBASEPRI is selected, then interrupts will be disabled
* by setting the BASEPRI register to NVIC_SYSH_DISABLE_PRIORITY so that most * by setting the BASEPRI register to NVIC_SYSH_DISABLE_PRIORITY so that most
+1 -1
View File
@@ -36,7 +36,7 @@
#endif #endif
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Prototypes
****************************************************************************/ ****************************************************************************/
/* This is the value used as the argument to the SVC instruction. It is not /* This is the value used as the argument to the SVC instruction. It is not
+1 -1
View File
@@ -38,7 +38,7 @@
#endif #endif
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Prototypes
****************************************************************************/ ****************************************************************************/
/* IRQ Stack Frame Format: /* IRQ Stack Frame Format:
+1 -1
View File
@@ -36,7 +36,7 @@
#endif #endif
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Prototypes
****************************************************************************/ ****************************************************************************/
#define SYS_syscall 0x00 #define SYS_syscall 0x00
+1 -1
View File
@@ -47,7 +47,7 @@
#endif #endif
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Prototypes
****************************************************************************/ ****************************************************************************/
/* Configuration ************************************************************/ /* Configuration ************************************************************/
+1 -1
View File
@@ -26,7 +26,7 @@
****************************************************************************/ ****************************************************************************/
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Prototypes
****************************************************************************/ ****************************************************************************/
/* IRQ Stack Frame Format: */ /* IRQ Stack Frame Format: */
+1 -1
View File
@@ -26,7 +26,7 @@
****************************************************************************/ ****************************************************************************/
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Prototypes
****************************************************************************/ ****************************************************************************/
/* IRQ Stack Frame Format: */ /* IRQ Stack Frame Format: */
+7 -7
View File
@@ -1,4 +1,4 @@
/************************************************************************************ /****************************************************************************
* arch/arm/include/armv8-m/nvicpri.h * arch/arm/include/armv8-m/nvicpri.h
* *
* Licensed to the Apache Software Foundation (ASF) under one or more * Licensed to the Apache Software Foundation (ASF) under one or more
@@ -16,20 +16,20 @@
* License for the specific language governing permissions and limitations * License for the specific language governing permissions and limitations
* under the License. * under the License.
* *
************************************************************************************/ ****************************************************************************/
#ifndef __ARCH_ARM_INCLUDE_ARM8_M_NVICPRI_H #ifndef __ARCH_ARM_INCLUDE_ARM8_M_NVICPRI_H
#define __ARCH_ARM_INCLUDE_ARM8_M_NVICPRI_H #define __ARCH_ARM_INCLUDE_ARM8_M_NVICPRI_H
/************************************************************************************ /****************************************************************************
* Included Files * Included Files
************************************************************************************/ ****************************************************************************/
#include <arch/chip/chip.h> #include <arch/chip/chip.h>
/************************************************************************************ /****************************************************************************
* Pre-processor Definitions * Pre-processor Prototypes
************************************************************************************/ ****************************************************************************/
/* If CONFIG_ARMV8M_USEBASEPRI is selected, then interrupts will be disabled /* If CONFIG_ARMV8M_USEBASEPRI is selected, then interrupts will be disabled
* by setting the BASEPRI register to NVIC_SYSH_DISABLE_PRIORITY so that most * by setting the BASEPRI register to NVIC_SYSH_DISABLE_PRIORITY so that most
+1 -1
View File
@@ -36,7 +36,7 @@
#endif #endif
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Prototypes
****************************************************************************/ ****************************************************************************/
/* This is the value used as the argument to the SVC instruction. It is not /* This is the value used as the argument to the SVC instruction. It is not
+1 -1
View File
@@ -30,7 +30,7 @@
****************************************************************************/ ****************************************************************************/
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Prototypes
****************************************************************************/ ****************************************************************************/
/* C5471 Interrupts */ /* C5471 Interrupts */
+1 -1
View File
@@ -45,7 +45,7 @@
#include <nuttx/analog/ioctl.h> #include <nuttx/analog/ioctl.h>
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Prototypes
****************************************************************************/ ****************************************************************************/
#define ANIOC_USER (AN_FIRST + AN_NCMDS) #define ANIOC_USER (AN_FIRST + AN_NCMDS)
+1 -1
View File
@@ -57,7 +57,7 @@
#include <stdbool.h> #include <stdbool.h>
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Prototypes
****************************************************************************/ ****************************************************************************/
/* Mic channel max. */ /* Mic channel max. */
+1 -1
View File
@@ -43,7 +43,7 @@
#include <nuttx/fs/ioctl.h> #include <nuttx/fs/ioctl.h>
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Prototypes
****************************************************************************/ ****************************************************************************/
/* ioctl commands */ /* ioctl commands */
+1 -1
View File
@@ -22,7 +22,7 @@
#define __ARCH_ARM_INCLUDE_CXD56XX_CHIP_H #define __ARCH_ARM_INCLUDE_CXD56XX_CHIP_H
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Prototypes
****************************************************************************/ ****************************************************************************/
#define CXD56M4_SYSH_PRIORITY_MIN 0xe0 /* All bits[7:5] set is minimum priority */ #define CXD56M4_SYSH_PRIORITY_MIN 0xe0 /* All bits[7:5] set is minimum priority */
+1 -1
View File
@@ -47,7 +47,7 @@
#include <nuttx/irq.h> #include <nuttx/irq.h>
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Prototypes
****************************************************************************/ ****************************************************************************/
/* Configuration ************************************************************/ /* Configuration ************************************************************/
+1 -1
View File
@@ -34,7 +34,7 @@
#endif #endif
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Prototypes
****************************************************************************/ ****************************************************************************/
/* IRQ numbers. The IRQ number corresponds vector number and hence map /* IRQ numbers. The IRQ number corresponds vector number and hence map
+2 -2
View File
@@ -28,10 +28,10 @@
#include <nuttx/config.h> #include <nuttx/config.h>
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Prototypes
****************************************************************************/ ****************************************************************************/
/* Pin number Definitions */ /* Pin number Prototypes */
#define PIN_RTC_CLK_IN (0) #define PIN_RTC_CLK_IN (0)
+2 -2
View File
@@ -43,7 +43,7 @@
#include <queue.h> #include <queue.h>
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Prototypes
****************************************************************************/ ****************************************************************************/
/* Boot Cause definitions */ /* Boot Cause definitions */
@@ -138,7 +138,7 @@ struct pm_cpu_wakelock_s
uint32_t info; uint32_t info;
}; };
/* Definitions for pmic notify */ /* Prototypes for pmic notify */
enum pmic_notify_e enum pmic_notify_e
{ {
+1 -1
View File
@@ -45,7 +45,7 @@
#include <nuttx/fs/ioctl.h> #include <nuttx/fs/ioctl.h>
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Prototypes
****************************************************************************/ ****************************************************************************/
#define _SCUIOCBASE (0xa000) #define _SCUIOCBASE (0xa000)
+1 -1
View File
@@ -43,7 +43,7 @@
#include <nuttx/timers/timer.h> #include <nuttx/timers/timer.h>
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Prototypes
****************************************************************************/ ****************************************************************************/
/* Set callback handler /* Set callback handler
+1 -1
View File
@@ -41,7 +41,7 @@
****************************************************************************/ ****************************************************************************/
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Prototypes
****************************************************************************/ ****************************************************************************/
/* BOARDIOC_USBDEV_SETNOTIFYSIG signal value ********************************/ /* BOARDIOC_USBDEV_SETNOTIFYSIG signal value ********************************/
+1 -1
View File
@@ -30,7 +30,7 @@
****************************************************************************/ ****************************************************************************/
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Prototypes
****************************************************************************/ ****************************************************************************/
/* DM320 Interrupts */ /* DM320 Interrupts */
+11 -11
View File
@@ -1,4 +1,4 @@
/************************************************************************************ /****************************************************************************
* arch/arm/include/efm32/chip.h * arch/arm/include/efm32/chip.h
* *
* Licensed to the Apache Software Foundation (ASF) under one or more * Licensed to the Apache Software Foundation (ASF) under one or more
@@ -16,29 +16,29 @@
* License for the specific language governing permissions and limitations * License for the specific language governing permissions and limitations
* under the License. * under the License.
* *
************************************************************************************/ ****************************************************************************/
#ifndef __ARCH_ARM_INCLUDE_EFM32_CHIP_H #ifndef __ARCH_ARM_INCLUDE_EFM32_CHIP_H
#define __ARCH_ARM_INCLUDE_EFM32_CHIP_H #define __ARCH_ARM_INCLUDE_EFM32_CHIP_H
/************************************************************************************ /****************************************************************************
* Included Files * Included Files
************************************************************************************/ ****************************************************************************/
#include <nuttx/config.h> #include <nuttx/config.h>
/************************************************************************************ /****************************************************************************
* Pre-processor Definitions * Pre-processor Prototypes
************************************************************************************/ ****************************************************************************/
/* EFM32 EnergyMicro ****************************************************************/ /* EFM32 EnergyMicro ********************************************************/
/* Tiny Gecko with 32KiB FLASH and 4KiB RAM in a QFN64 package */ /* Tiny Gecko with 32KiB FLASH and 4KiB RAM in a QFN64 package */
#if defined(CONFIG_ARCH_CHIP_EFM32TG840F32) #if defined(CONFIG_ARCH_CHIP_EFM32TG840F32)
/* Gecko with 128KiB FLASH and 16KiB SRAM in LQFP100 (EFM32G880F128) or BGA112 /* Gecko with 128KiB FLASH and 16KiB SRAM in LQFP100 (EFM32G880F128) or
* (EFM32G890F128) package * BGA112 (EFM32G890F128) package
*/ */
#elif defined(CONFIG_ARCH_CHIP_EFM32G880F128) || \ #elif defined(CONFIG_ARCH_CHIP_EFM32G880F128) || \
@@ -55,7 +55,7 @@
# error "Unsupported EFM32 chip" # error "Unsupported EFM32 chip"
#endif #endif
/* NVIC priority levels *************************************************************/ /* NVIC priority levels *****************************************************/
#define NVIC_SYSH_PRIORITY_MIN 0xe0 /* Bits [7:5] set in minimum priority */ #define NVIC_SYSH_PRIORITY_MIN 0xe0 /* Bits [7:5] set in minimum priority */
#define NVIC_SYSH_PRIORITY_DEFAULT 0x80 /* Midpoint is the default */ #define NVIC_SYSH_PRIORITY_DEFAULT 0x80 /* Midpoint is the default */
+4 -3
View File
@@ -30,7 +30,7 @@
****************************************************************************/ ****************************************************************************/
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Prototypes
****************************************************************************/ ****************************************************************************/
/* IRQ numbers. The IRQ number corresponds vector number and hence map /* IRQ numbers. The IRQ number corresponds vector number and hence map
@@ -42,7 +42,8 @@
* *
* External interrupts (vectors >= 16) * External interrupts (vectors >= 16)
*/ */
/* IRQ# Source */
/* IRQ# Source */
#define EFM32_IRQ_DMA (EFM32_IRQ_INTERRUPTS + 0) /* 0 DMA */ #define EFM32_IRQ_DMA (EFM32_IRQ_INTERRUPTS + 0) /* 0 DMA */
#define EFM32_IRQ_GPIO_EVEN (EFM32_IRQ_INTERRUPTS + 1) /* 1 GPIO_EVEN */ #define EFM32_IRQ_GPIO_EVEN (EFM32_IRQ_INTERRUPTS + 1) /* 1 GPIO_EVEN */
#define EFM32_IRQ_TIMER0 (EFM32_IRQ_INTERRUPTS + 2) /* 2 TIMER0 */ #define EFM32_IRQ_TIMER0 (EFM32_IRQ_INTERRUPTS + 2) /* 2 TIMER0 */
@@ -95,7 +96,7 @@ extern "C"
#endif #endif
/**************************************************************************** /****************************************************************************
* Public Functions * Public Functions Prototypes
****************************************************************************/ ****************************************************************************/
#undef EXTERN #undef EXTERN
+2 -2
View File
@@ -45,7 +45,7 @@
****************************************************************************/ ****************************************************************************/
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Prototypes
****************************************************************************/ ****************************************************************************/
/* IRQ numbers. The IRQ number corresponds vector number and hence map /* IRQ numbers. The IRQ number corresponds vector number and hence map
@@ -119,7 +119,7 @@ extern "C"
#endif #endif
/**************************************************************************** /****************************************************************************
* Public Functions * Public Functions Prototypes
****************************************************************************/ ****************************************************************************/
#undef EXTERN #undef EXTERN
+2 -2
View File
@@ -45,7 +45,7 @@
****************************************************************************/ ****************************************************************************/
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Prototypes
****************************************************************************/ ****************************************************************************/
/* IRQ numbers. The IRQ number corresponds vector number and hence map /* IRQ numbers. The IRQ number corresponds vector number and hence map
@@ -103,7 +103,7 @@ extern "C"
#endif #endif
/**************************************************************************** /****************************************************************************
* Public Functions * Public Functions Prototypes
****************************************************************************/ ****************************************************************************/
#undef EXTERN #undef EXTERN
+37 -33
View File
@@ -1,4 +1,4 @@
/************************************************************************************ /****************************************************************************
* arch/arm/include/efm32/irq.h * arch/arm/include/efm32/irq.h
* *
* Licensed to the Apache Software Foundation (ASF) under one or more * Licensed to the Apache Software Foundation (ASF) under one or more
@@ -16,30 +16,41 @@
* License for the specific language governing permissions and limitations * License for the specific language governing permissions and limitations
* under the License. * under the License.
* *
************************************************************************************/ ****************************************************************************/
/* This file should never be included directly but, rather, only indirectly through /* This file should never be included directly but, rather,
* nuttx/irq.h * only indirectly through nuttx/irq.h
*/ */
#ifndef __ARCH_ARM_INCLUDE_EFM32_IRQ_H #ifndef __ARCH_ARM_INCLUDE_EFM32_IRQ_H
#define __ARCH_ARM_INCLUDE_EFM32_IRQ_H #define __ARCH_ARM_INCLUDE_EFM32_IRQ_H
/************************************************************************************ /****************************************************************************
* Included Files * Included Files
************************************************************************************/ ****************************************************************************/
#include <nuttx/config.h> #include <nuttx/config.h>
#include <nuttx/irq.h> #include <nuttx/irq.h>
#include <arch/efm32/chip.h> #include <arch/efm32/chip.h>
/************************************************************************************ #if defined(CONFIG_EFM32_EFM32TG)
* Pre-processor Definitions # include <arch/efm32/efm32tg_irq.h>
************************************************************************************/ #elif defined(CONFIG_EFM32_EFM32G)
# include <arch/efm32/efm32g_irq.h>
#elif defined(CONFIG_EFM32_EFM32GG)
# include <arch/efm32/efm32gg_irq.h>
#else
# error "Unsupported EFM32 chip"
#endif
/* IRQ numbers. The IRQ number corresponds vector number and hence map directly to /****************************************************************************
* bits in the NVIC. This does, however, waste several words of memory in the IRQ * Pre-processor Prototypes
****************************************************************************/
/* IRQ numbers.
* The IRQ number corresponds vector number and hence map directly to bits in
* the NVIC. This does, however, waste several words of memory in the IRQ
* to handle mapping tables. * to handle mapping tables.
*/ */
@@ -59,25 +70,18 @@
#define EFM32_IRQ_PENDSV (14) /* Vector 14: Pendable system service request */ #define EFM32_IRQ_PENDSV (14) /* Vector 14: Pendable system service request */
#define EFM32_IRQ_SYSTICK (15) /* Vector 15: System tick */ #define EFM32_IRQ_SYSTICK (15) /* Vector 15: System tick */
/* External interrupts (vectors >= 16). These definitions are chip-specific */ /* External interrupts (vectors >= 16).
* These definitions are chip-specific
*/
#define EFM32_IRQ_INTERRUPTS (16) /* Vector number of the first external interrupt */ #define EFM32_IRQ_INTERRUPTS (16) /* Vector number of the first external interrupt */
#if defined(CONFIG_EFM32_EFM32TG)
# include <arch/efm32/efm32tg_irq.h>
#elif defined(CONFIG_EFM32_EFM32G)
# include <arch/efm32/efm32g_irq.h>
#elif defined(CONFIG_EFM32_EFM32GG)
# include <arch/efm32/efm32gg_irq.h>
#else
# error "Unsupported EFM32 chip"
#endif
#ifdef CONFIG_EFM32_GPIO_IRQ #ifdef CONFIG_EFM32_GPIO_IRQ
/* If GPIO interrupt support is enabled then up to 16 additional GPIO interrupt /* If GPIO interrupt support is enabled then up to 16 additional GPIO
* sources are available. There are actually only two physical interrupt lines: * interrupt sources are available. There are actually only two physical
* GPIO_EVEN and GPIO_ODD. However, from the software point of view, there are * interrupt lines: GPIO_EVEN and GPIO_ODD. However, from the software point
* 16-additional interrupts generated from a second level of decoding. * of view, there are 16-additional interrupts generated from a second level
* of decoding.
*/ */
# define EFM32_IRQ_EXTI0 (EFM32_IRQ_NVECTORS + 0) /* Port[n], pin0 external interrupt */ # define EFM32_IRQ_EXTI0 (EFM32_IRQ_NVECTORS + 0) /* Port[n], pin0 external interrupt */
@@ -102,13 +106,13 @@
# define NR_IRQS EFM32_IRQ_NVECTORS /* Total number of interrupts */ # define NR_IRQS EFM32_IRQ_NVECTORS /* Total number of interrupts */
#endif #endif
/************************************************************************************ /****************************************************************************
* Public Types * Public Types
************************************************************************************/ ****************************************************************************/
/************************************************************************************ /****************************************************************************
* Public Data * Public Data
************************************************************************************/ ****************************************************************************/
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
#ifdef __cplusplus #ifdef __cplusplus
@@ -119,9 +123,9 @@ extern "C"
#define EXTERN extern #define EXTERN extern
#endif #endif
/************************************************************************************ /****************************************************************************
* Public Functions * Public Functions Prototypes
************************************************************************************/ ****************************************************************************/
#undef EXTERN #undef EXTERN
#ifdef __cplusplus #ifdef __cplusplus
+7 -5
View File
@@ -26,14 +26,15 @@
#define __ARCH_ARM_INCLUDE_ELF_H #define __ARCH_ARM_INCLUDE_ELF_H
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Prototypes
****************************************************************************/ ****************************************************************************/
/* 4.3.1 ELF Identification. Should have: /* 4.3.1 ELF Identification. Should have:
* *
* e_machine = EM_ARM * e_machine = EM_ARM
* e_ident[EI_CLASS] = ELFCLASS32 * e_ident[EI_CLASS] = ELFCLASS32
* e_ident[EI_DATA] = ELFDATA2LSB (little endian) or ELFDATA2MSB (big endian) * e_ident[EI_DATA] = ELFDATA2LSB (little endian) or
* ELFDATA2MSB (big endian)
*/ */
#if 0 /* Defined in include/elf32.h */ #if 0 /* Defined in include/elf32.h */
@@ -65,9 +66,10 @@
* S (when used on its own) is the address of the symbol. * S (when used on its own) is the address of the symbol.
* A is the addend for the relocation. * A is the addend for the relocation.
* P is the address of the place being relocated (derived from r_offset). * P is the address of the place being relocated (derived from r_offset).
* Pa is the adjusted address of the place being relocated, defined as (P & 0xFFFFFFFC). * Pa is the adjusted address of the place being relocated, defined as
* T is 1 if the target symbol S has type STT_FUNC and the symbol addresses a Thumb instruction; * (P & 0xFFFFFFFC).
* it is 0 otherwise. * T is 1 if the target symbol S has type STT_FUNC and the symbol addresses
* a Thumb instruction; it is 0 otherwise.
* B(S) is the addressing origin of the output segment defining the symbol S. * B(S) is the addressing origin of the output segment defining the symbol S.
* GOT_ORG is the addressing origin of the Global Offset Table * GOT_ORG is the addressing origin of the Global Offset Table
* GOT(S) is the address of the GOT entry for the symbol S. * GOT(S) is the address of the GOT entry for the symbol S.
+1 -1
View File
@@ -28,7 +28,7 @@
#include <nuttx/config.h> #include <nuttx/config.h>
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Prototypes
****************************************************************************/ ****************************************************************************/
/* EOS S3 Support 8 Levels of priority. /* EOS S3 Support 8 Levels of priority.
+1 -1
View File
@@ -28,7 +28,7 @@
#include <arch/eoss3/chip.h> #include <arch/eoss3/chip.h>
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Prototypes
****************************************************************************/ ****************************************************************************/
/* Common Processor Exceptions (vectors 0-15) */ /* Common Processor Exceptions (vectors 0-15) */
+1 -1
View File
@@ -30,7 +30,7 @@
****************************************************************************/ ****************************************************************************/
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Prototypes
****************************************************************************/ ****************************************************************************/
/* i.MX1 Interrupts */ /* i.MX1 Interrupts */
+3 -2
View File
@@ -28,8 +28,9 @@
#include <nuttx/config.h> #include <nuttx/config.h>
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Prototypes
****************************************************************************/ ****************************************************************************/
/* The i.MX6 6Quad and 6Dual/DualLite are the only support i.MX6 family /* The i.MX6 6Quad and 6Dual/DualLite are the only support i.MX6 family
* members. Individual differences between members of the families are not * members. Individual differences between members of the families are not
* accounted for. * accounted for.
@@ -108,7 +109,7 @@
****************************************************************************/ ****************************************************************************/
/**************************************************************************** /****************************************************************************
* Public Functions * Public Functions Prototypes
****************************************************************************/ ****************************************************************************/
#endif /* __ARCH_ARM_INCLUDE_IMX6_CHIP_H */ #endif /* __ARCH_ARM_INCLUDE_IMX6_CHIP_H */
+4 -3
View File
@@ -18,8 +18,8 @@
* *
****************************************************************************/ ****************************************************************************/
/* This file should never be included directly but, rather, only indirectly /* This file should never be included directly but, rather,
& through nuttx/irq.h * only indirectly through nuttx/irq.h
*/ */
#ifndef __ARCH_ARM_INCLUDE_IMX6_IRQ_H #ifndef __ARCH_ARM_INCLUDE_IMX6_IRQ_H
@@ -30,7 +30,7 @@
****************************************************************************/ ****************************************************************************/
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Prototypes
****************************************************************************/ ****************************************************************************/
/* The Global Interrupt Controller (GIC) collects up to 128 interrupt /* The Global Interrupt Controller (GIC) collects up to 128 interrupt
@@ -47,6 +47,7 @@
*/ */
/* Private Peripheral Interrupts (PPI) **************************************/ /* Private Peripheral Interrupts (PPI) **************************************/
/* Each Cortex-A9 processor has private interrupts, ID0-ID15, that can only /* Each Cortex-A9 processor has private interrupts, ID0-ID15, that can only
* be triggered by software. These interrupts are aliased so that there is * be triggered by software. These interrupts are aliased so that there is
* no requirement for a requesting Cortex-A9 processor to determine its own * no requirement for a requesting Cortex-A9 processor to determine its own
+16 -15
View File
@@ -1,4 +1,4 @@
/***************************************************************************** /****************************************************************************
* arch/arm/include/imxrt/chip.h * arch/arm/include/imxrt/chip.h
* *
* Licensed to the Apache Software Foundation (ASF) under one or more * Licensed to the Apache Software Foundation (ASF) under one or more
@@ -16,20 +16,20 @@
* License for the specific language governing permissions and limitations * License for the specific language governing permissions and limitations
* under the License. * under the License.
* *
*****************************************************************************/ ****************************************************************************/
#ifndef __ARCH_ARM_INCLUDE_IMXRT_CHIP_H #ifndef __ARCH_ARM_INCLUDE_IMXRT_CHIP_H
#define __ARCH_ARM_INCLUDE_IMXRT_CHIP_H #define __ARCH_ARM_INCLUDE_IMXRT_CHIP_H
/***************************************************************************** /****************************************************************************
* Included Files * Included Files
*****************************************************************************/ ****************************************************************************/
#include <nuttx/config.h> #include <nuttx/config.h>
/***************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Prototypes
*****************************************************************************/ ****************************************************************************/
/* Get customizations for each supported chip */ /* Get customizations for each supported chip */
@@ -77,7 +77,8 @@
# error "Unknown i.MX RT chip type" # error "Unknown i.MX RT chip type"
#endif #endif
/* NVIC priority levels ****************************************************** /* NVIC priority levels *****************************************************/
/* Each priority field holds an 8-bit priority value, 0-15. The lower the /* Each priority field holds an 8-bit priority value, 0-15. The lower the
* value, the greater the priority of the corresponding interrupt. The i.MX * value, the greater the priority of the corresponding interrupt. The i.MX
* RT processor implements only bits[7:4] of each field, bits[3:0] read as * RT processor implements only bits[7:4] of each field, bits[3:0] read as
@@ -89,16 +90,16 @@
#define NVIC_SYSH_PRIORITY_MAX 0x00 /* Zero is maximum priority */ #define NVIC_SYSH_PRIORITY_MAX 0x00 /* Zero is maximum priority */
#define NVIC_SYSH_PRIORITY_STEP 0x40 /* Two bits of interrupt pri used */ #define NVIC_SYSH_PRIORITY_STEP 0x40 /* Two bits of interrupt pri used */
/***************************************************************************** /****************************************************************************
* Public Types * Public Types
*****************************************************************************/ ****************************************************************************/
/***************************************************************************** /****************************************************************************
* Public Data * Public Data
*****************************************************************************/ ****************************************************************************/
/***************************************************************************** /****************************************************************************
* Public Functions * Public Functions Prototypes
*****************************************************************************/ ****************************************************************************/
#endif /* __ARCH_ARM_INCLUDE_IMXRT_CHIP_H */ #endif /* __ARCH_ARM_INCLUDE_IMXRT_CHIP_H */

Some files were not shown because too many files have changed in this diff Show More