mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 05:55:46 +08:00
Standardize the width of all comment boxes in C header files
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
/*****************************************************************************
|
/****************************************************************************
|
||||||
* arch/arm/include/efm32s/efm32g_irq.h
|
* arch/arm/include/efm32s/efm32g_irq.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2014 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2014 Gregory Nutt. All rights reserved.
|
||||||
@@ -31,7 +31,7 @@
|
|||||||
* 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 directed but, rather, only indirectly
|
/* This file should never be included directed but, rather, only indirectly
|
||||||
* through nuttx/irq.h
|
* through nuttx/irq.h
|
||||||
@@ -40,13 +40,13 @@
|
|||||||
#ifndef __ARCH_ARM_INCLUDE_EFM32G_IRQ_H
|
#ifndef __ARCH_ARM_INCLUDE_EFM32G_IRQ_H
|
||||||
#define __ARCH_ARM_INCLUDE_EFM32G_IRQ_H
|
#define __ARCH_ARM_INCLUDE_EFM32G_IRQ_H
|
||||||
|
|
||||||
/*****************************************************************************
|
/****************************************************************************
|
||||||
* Included Files
|
* Included Files
|
||||||
*****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/*****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
*****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* IRQ numbers. The IRQ number corresponds vector number and hence map
|
/* IRQ numbers. The IRQ number corresponds vector number and hence map
|
||||||
* directly to bits in the NVIC. This does, however, waste several words of
|
* directly to bits in the NVIC. This does, however, waste several words of
|
||||||
@@ -91,13 +91,13 @@
|
|||||||
|
|
||||||
#define NR_VECTORS (EFM32_IRQ_INTERRUPTS+30)
|
#define NR_VECTORS (EFM32_IRQ_INTERRUPTS+30)
|
||||||
|
|
||||||
/*****************************************************************************
|
/****************************************************************************
|
||||||
* Public Types
|
* Public Types
|
||||||
*****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/*****************************************************************************
|
/****************************************************************************
|
||||||
* Public Data
|
* Public Data
|
||||||
*****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifndef __ASSEMBLY__
|
#ifndef __ASSEMBLY__
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
@@ -108,9 +108,9 @@ extern "C"
|
|||||||
#define EXTERN extern
|
#define EXTERN extern
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*****************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions
|
||||||
*****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#undef EXTERN
|
#undef EXTERN
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
/*****************************************************************************
|
/****************************************************************************
|
||||||
* arch/arm/include/efm32s/efm32gg_irq.h
|
* arch/arm/include/efm32s/efm32gg_irq.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2014 Pierre-noel Bouteville . All rights reserved.
|
* Copyright (C) 2014 Pierre-noel Bouteville . All rights reserved.
|
||||||
@@ -31,7 +31,7 @@
|
|||||||
* 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 directed but, rather, only indirectly
|
/* This file should never be included directed but, rather, only indirectly
|
||||||
* through nuttx/irq.h
|
* through nuttx/irq.h
|
||||||
@@ -40,13 +40,13 @@
|
|||||||
#ifndef __ARCH_ARM_INCLUDE_EFM32GG_IRQ_H
|
#ifndef __ARCH_ARM_INCLUDE_EFM32GG_IRQ_H
|
||||||
#define __ARCH_ARM_INCLUDE_EFM32GG_IRQ_H
|
#define __ARCH_ARM_INCLUDE_EFM32GG_IRQ_H
|
||||||
|
|
||||||
/*****************************************************************************
|
/****************************************************************************
|
||||||
* Included Files
|
* Included Files
|
||||||
*****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/*****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
*****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* IRQ numbers. The IRQ number corresponds vector number and hence map
|
/* IRQ numbers. The IRQ number corresponds vector number and hence map
|
||||||
* directly to bits in the NVIC. This does, however, waste several words of
|
* directly to bits in the NVIC. This does, however, waste several words of
|
||||||
@@ -100,13 +100,13 @@
|
|||||||
|
|
||||||
#define NR_VECTORS (EFM32_IRQ_INTERRUPTS+39)
|
#define NR_VECTORS (EFM32_IRQ_INTERRUPTS+39)
|
||||||
|
|
||||||
/*****************************************************************************
|
/****************************************************************************
|
||||||
* Public Types
|
* Public Types
|
||||||
*****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/*****************************************************************************
|
/****************************************************************************
|
||||||
* Public Data
|
* Public Data
|
||||||
*****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifndef __ASSEMBLY__
|
#ifndef __ASSEMBLY__
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
@@ -117,9 +117,9 @@ extern "C"
|
|||||||
#define EXTERN extern
|
#define EXTERN extern
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*****************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions
|
||||||
*****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#undef EXTERN
|
#undef EXTERN
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
/*****************************************************************************
|
/****************************************************************************
|
||||||
* arch/arm/include/efm32s/efm32tg_irq.h
|
* arch/arm/include/efm32s/efm32tg_irq.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2014 Pierre-noel Bouteville . All rights reserved.
|
* Copyright (C) 2014 Pierre-noel Bouteville . All rights reserved.
|
||||||
@@ -31,7 +31,7 @@
|
|||||||
* 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 directed but, rather, only indirectly
|
/* This file should never be included directed but, rather, only indirectly
|
||||||
* through nuttx/irq.h
|
* through nuttx/irq.h
|
||||||
@@ -40,13 +40,13 @@
|
|||||||
#ifndef __ARCH_ARM_INCLUDE_EFM32TG_IRQ_H
|
#ifndef __ARCH_ARM_INCLUDE_EFM32TG_IRQ_H
|
||||||
#define __ARCH_ARM_INCLUDE_EFM32TG_IRQ_H
|
#define __ARCH_ARM_INCLUDE_EFM32TG_IRQ_H
|
||||||
|
|
||||||
/*****************************************************************************
|
/****************************************************************************
|
||||||
* Included Files
|
* Included Files
|
||||||
*****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/*****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
*****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* IRQ numbers. The IRQ number corresponds vector number and hence map
|
/* IRQ numbers. The IRQ number corresponds vector number and hence map
|
||||||
* directly to bits in the NVIC. This does, however, waste several words of
|
* directly to bits in the NVIC. This does, however, waste several words of
|
||||||
@@ -84,13 +84,13 @@
|
|||||||
|
|
||||||
#define NR_VECTORS (EFM32_IRQ_INTERRUPTS+23)
|
#define NR_VECTORS (EFM32_IRQ_INTERRUPTS+23)
|
||||||
|
|
||||||
/*****************************************************************************
|
/****************************************************************************
|
||||||
* Public Types
|
* Public Types
|
||||||
*****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/*****************************************************************************
|
/****************************************************************************
|
||||||
* Public Data
|
* Public Data
|
||||||
*****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifndef __ASSEMBLY__
|
#ifndef __ASSEMBLY__
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
@@ -101,9 +101,9 @@ extern "C"
|
|||||||
#define EXTERN extern
|
#define EXTERN extern
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*****************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions
|
||||||
*****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#undef EXTERN
|
#undef EXTERN
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
/*******************************************************************************
|
/****************************************************************************
|
||||||
* arch/arm/src/include/stm32/dma2d.h
|
* arch/arm/src/include/stm32/dma2d.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2015 Marco Krahl. All rights reserved.
|
* Copyright (C) 2015 Marco Krahl. All rights reserved.
|
||||||
@@ -31,26 +31,26 @@
|
|||||||
* 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_STM32_DMA2D_H
|
#ifndef __ARCH_ARM_INCLUDE_STM32_DMA2D_H
|
||||||
#define __ARCH_ARM_INCLUDE_STM32_DMA2D_H
|
#define __ARCH_ARM_INCLUDE_STM32_DMA2D_H
|
||||||
|
|
||||||
/*******************************************************************************
|
/****************************************************************************
|
||||||
* Included Files
|
* Included Files
|
||||||
******************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <nuttx/video/fb.h>
|
#include <nuttx/video/fb.h>
|
||||||
|
|
||||||
/*******************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
******************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/*******************************************************************************
|
/****************************************************************************
|
||||||
* Public Types
|
* Public Types
|
||||||
******************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
struct ltdc_area_s; /* see arch/chip/ltdc.h */
|
struct ltdc_area_s; /* see arch/chip/ltdc.h */
|
||||||
|
|
||||||
@@ -322,15 +322,15 @@ struct dma2d_layer_s
|
|||||||
uint32_t color);
|
uint32_t color);
|
||||||
};
|
};
|
||||||
|
|
||||||
/*******************************************************************************
|
/****************************************************************************
|
||||||
* Public Data
|
* Public Data
|
||||||
******************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/*******************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions
|
||||||
******************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/*******************************************************************************
|
/****************************************************************************
|
||||||
* Name: up_dma2dgetlayer
|
* Name: up_dma2dgetlayer
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
@@ -343,11 +343,11 @@ struct dma2d_layer_s
|
|||||||
* Reference to the dma2d layer control structure on success or Null if no
|
* Reference to the dma2d layer control structure on success or Null if no
|
||||||
* related exist.
|
* related exist.
|
||||||
*
|
*
|
||||||
******************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
FAR struct dma2d_layer_s * up_dma2dgetlayer(int lid);
|
FAR struct dma2d_layer_s * up_dma2dgetlayer(int lid);
|
||||||
|
|
||||||
/******************************************************************************
|
/****************************************************************************
|
||||||
* Name: up_dma2dcreatelayer
|
* Name: up_dma2dcreatelayer
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
@@ -365,13 +365,13 @@ FAR struct dma2d_layer_s * up_dma2dgetlayer(int lid);
|
|||||||
* -ENOMEM if no memory available or exceeds
|
* -ENOMEM if no memory available or exceeds
|
||||||
* CONFIG_STM32_DMA2D_NLAYERS
|
* CONFIG_STM32_DMA2D_NLAYERS
|
||||||
*
|
*
|
||||||
******************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
FAR struct dma2d_layer_s *up_dma2dcreatelayer(fb_coord_t width,
|
FAR struct dma2d_layer_s *up_dma2dcreatelayer(fb_coord_t width,
|
||||||
fb_coord_t height,
|
fb_coord_t height,
|
||||||
uint8_t fmt);
|
uint8_t fmt);
|
||||||
|
|
||||||
/******************************************************************************
|
/****************************************************************************
|
||||||
* Name: up_dma2dremovelayer
|
* Name: up_dma2dremovelayer
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
@@ -384,11 +384,11 @@ FAR struct dma2d_layer_s *up_dma2dcreatelayer(fb_coord_t width,
|
|||||||
* On success - OK
|
* On success - OK
|
||||||
* On error - -EINVAL
|
* On error - -EINVAL
|
||||||
*
|
*
|
||||||
*****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
int up_dma2dremovelayer(FAR struct dma2d_layer_s *layer);
|
int up_dma2dremovelayer(FAR struct dma2d_layer_s *layer);
|
||||||
|
|
||||||
/******************************************************************************
|
/****************************************************************************
|
||||||
* Name: up_dma2dinitialize
|
* Name: up_dma2dinitialize
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
@@ -398,17 +398,17 @@ int up_dma2dremovelayer(FAR struct dma2d_layer_s *layer);
|
|||||||
* OK - On success
|
* OK - On success
|
||||||
* An error if initializing failed.
|
* An error if initializing failed.
|
||||||
*
|
*
|
||||||
******************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
int up_dma2dinitialize(void);
|
int up_dma2dinitialize(void);
|
||||||
|
|
||||||
/******************************************************************************
|
/****************************************************************************
|
||||||
* Name: up_dma2duninitialize
|
* Name: up_dma2duninitialize
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Uninitialize the dma2d controller
|
* Uninitialize the dma2d controller
|
||||||
*
|
*
|
||||||
******************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
void up_dma2duninitialize(void);
|
void up_dma2duninitialize(void);
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
/*******************************************************************************
|
/****************************************************************************
|
||||||
* arch/arm/src/include/stm32/ltdc.h
|
* arch/arm/src/include/stm32/ltdc.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2014-2015 Marco Krahl. All rights reserved.
|
* Copyright (C) 2014-2015 Marco Krahl. All rights reserved.
|
||||||
@@ -31,27 +31,27 @@
|
|||||||
* 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_STM32_LTDC_H
|
#ifndef __ARCH_ARM_INCLUDE_STM32_LTDC_H
|
||||||
#define __ARCH_ARM_INCLUDE_STM32_LTDC_H
|
#define __ARCH_ARM_INCLUDE_STM32_LTDC_H
|
||||||
|
|
||||||
/*******************************************************************************
|
/****************************************************************************
|
||||||
* Included Files
|
* Included Files
|
||||||
******************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <nuttx/video/fb.h>
|
#include <nuttx/video/fb.h>
|
||||||
|
|
||||||
#ifdef CONFIG_STM32_LTDC
|
#ifdef CONFIG_STM32_LTDC
|
||||||
/*******************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
******************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/*******************************************************************************
|
/****************************************************************************
|
||||||
* Public Types
|
* Public Types
|
||||||
******************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
struct dma2d_layer_s; /* see arch/chip/dma2d.h */
|
struct dma2d_layer_s; /* see arch/chip/dma2d.h */
|
||||||
|
|
||||||
@@ -565,15 +565,15 @@ struct ltdc_layer_s
|
|||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
/*******************************************************************************
|
/****************************************************************************
|
||||||
* Public Data
|
* Public Data
|
||||||
******************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/*******************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions
|
||||||
******************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/*******************************************************************************
|
/****************************************************************************
|
||||||
* Name: up_ltdcgetlayer
|
* Name: up_ltdcgetlayer
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
@@ -586,7 +586,7 @@ struct ltdc_layer_s
|
|||||||
* Reference to the layer control structure on success or Null if parameter
|
* Reference to the layer control structure on success or Null if parameter
|
||||||
* invalid.
|
* invalid.
|
||||||
*
|
*
|
||||||
******************************************************************************/
|
****************************************************************************/
|
||||||
FAR struct ltdc_layer_s *up_ltdcgetlayer(int lid);
|
FAR struct ltdc_layer_s *up_ltdcgetlayer(int lid);
|
||||||
#endif /* CONFIG_STM32_LTDC */
|
#endif /* CONFIG_STM32_LTDC */
|
||||||
#endif /* __ARCH_ARM_INCLUDE_STM32_LTDC_H */
|
#endif /* __ARCH_ARM_INCLUDE_STM32_LTDC_H */
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
/*****************************************************************************
|
/****************************************************************************
|
||||||
* arch/arm/src/efm32/chip/efm32ggxxx_vectors.h
|
* arch/arm/src/efm32/chip/efm32ggxxx_vectors.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2014 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2014 Gregory Nutt. All rights reserved.
|
||||||
@@ -31,11 +31,11 @@
|
|||||||
* 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.
|
||||||
*
|
*
|
||||||
*****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/*****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
*****************************************************************************/
|
****************************************************************************/
|
||||||
/* This file is included by efm32_vectors.S. It provides the macro VECTOR
|
/* This file is included by efm32_vectors.S. It provides the macro VECTOR
|
||||||
* that supplies each EFM32G vector in terms of a (lower-case) ISR label and
|
* that supplies each EFM32G vector in terms of a (lower-case) ISR label and
|
||||||
* an (upper-case) IRQ number as defined in arch/arm/include/efm32/efm32g_irq.h.
|
* an (upper-case) IRQ number as defined in arch/arm/include/efm32/efm32g_irq.h.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
/*****************************************************************************
|
/****************************************************************************
|
||||||
* arch/arm/src/efm32/chip/efm32ggxxx_vectors.h
|
* arch/arm/src/efm32/chip/efm32ggxxx_vectors.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2014 Pierre-noel Bouteville . All rights reserved.
|
* Copyright (C) 2014 Pierre-noel Bouteville . All rights reserved.
|
||||||
@@ -31,11 +31,11 @@
|
|||||||
* 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.
|
||||||
*
|
*
|
||||||
*****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/*****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
*****************************************************************************/
|
****************************************************************************/
|
||||||
/* This file is included by efm32_vectors.S. It provides the macro VECTOR
|
/* This file is included by efm32_vectors.S. It provides the macro VECTOR
|
||||||
* that supplies each EFM32GG vector in terms of a (lower-case) ISR label and
|
* that supplies each EFM32GG vector in terms of a (lower-case) ISR label and
|
||||||
* an (upper-case) IRQ number as defined in arch/arm/include/efm32/efm32gg_irq.h.
|
* an (upper-case) IRQ number as defined in arch/arm/include/efm32/efm32gg_irq.h.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
/*****************************************************************************
|
/****************************************************************************
|
||||||
* arch/arm/src/efm32/chip/efm32tg_vectors.h
|
* arch/arm/src/efm32/chip/efm32tg_vectors.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2014 Pierre-noel Bouteville . All rights reserved.
|
* Copyright (C) 2014 Pierre-noel Bouteville . All rights reserved.
|
||||||
@@ -31,11 +31,11 @@
|
|||||||
* 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.
|
||||||
*
|
*
|
||||||
*****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/*****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
*****************************************************************************/
|
****************************************************************************/
|
||||||
/* This file is included by efm32_vectors.S. It provides the macro VECTOR that
|
/* This file is included by efm32_vectors.S. It provides the macro VECTOR that
|
||||||
* supplies ach EFM32TG vector in terms of a (lower-case) ISR label and an
|
* supplies ach EFM32TG vector in terms of a (lower-case) ISR label and an
|
||||||
* (upper-case) IRQ number as defined in arch/arm/include/efm32/efm32tg_irq.h.
|
* (upper-case) IRQ number as defined in arch/arm/include/efm32/efm32tg_irq.h.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
/*****************************************************************************
|
/****************************************************************************
|
||||||
* arch/arm/src/efm32/efm32_bitband.h
|
* arch/arm/src/efm32/efm32_bitband.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2015 Pierre-noel Bouteville . All rights reserved.
|
* Copyright (C) 2015 Pierre-noel Bouteville . All rights reserved.
|
||||||
|
|||||||
@@ -63,45 +63,45 @@
|
|||||||
|
|
||||||
void efm32_lowsetup(void);
|
void efm32_lowsetup(void);
|
||||||
|
|
||||||
/*****************************************************************************
|
/****************************************************************************
|
||||||
* Name: efm32_lowputc
|
* Name: efm32_lowputc
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Output one character to the UART using a simple polling method.
|
* Output one character to the UART using a simple polling method.
|
||||||
*
|
*
|
||||||
*****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#if defined(HAVE_UART_CONSOLE) || defined(HAVE_LEUART_CONSOLE)
|
#if defined(HAVE_UART_CONSOLE) || defined(HAVE_LEUART_CONSOLE)
|
||||||
void efm32_lowputc(uint32_t ch);
|
void efm32_lowputc(uint32_t ch);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*****************************************************************************
|
/****************************************************************************
|
||||||
* Name: efm32_uartconfigure
|
* Name: efm32_uartconfigure
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Configure a U[S]ART as a RS-232 UART.
|
* Configure a U[S]ART as a RS-232 UART.
|
||||||
*
|
*
|
||||||
*****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifdef HAVE_UART_DEVICE
|
#ifdef HAVE_UART_DEVICE
|
||||||
void efm32_uartconfigure(uintptr_t base, uint32_t baud, unsigned int parity,
|
void efm32_uartconfigure(uintptr_t base, uint32_t baud, unsigned int parity,
|
||||||
unsigned int nbits, bool stop2);
|
unsigned int nbits, bool stop2);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*****************************************************************************
|
/****************************************************************************
|
||||||
* Name: efm32_leuartconfigure
|
* Name: efm32_leuartconfigure
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Configure a LEUART as a RS-232 UART.
|
* Configure a LEUART as a RS-232 UART.
|
||||||
*
|
*
|
||||||
*****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifdef HAVE_LEUART_DEVICE
|
#ifdef HAVE_LEUART_DEVICE
|
||||||
void efm32_leuartconfigure(uintptr_t base, uint32_t baud, unsigned int parity,
|
void efm32_leuartconfigure(uintptr_t base, uint32_t baud, unsigned int parity,
|
||||||
unsigned int nbits, bool stop2);
|
unsigned int nbits, bool stop2);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*****************************************************************************
|
/****************************************************************************
|
||||||
* Name: efm32_uart_reset
|
* Name: efm32_uart_reset
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
@@ -109,13 +109,13 @@ void efm32_leuartconfigure(uintptr_t base, uint32_t baud, unsigned int parity,
|
|||||||
* to the initial, reset value. Only the ROUTE data set by efm32_lowsetup
|
* to the initial, reset value. Only the ROUTE data set by efm32_lowsetup
|
||||||
* is preserved.
|
* is preserved.
|
||||||
*
|
*
|
||||||
*****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#if defined(HAVE_UART_DEVICE) || defined(HAVE_SPI_DEVICE)
|
#if defined(HAVE_UART_DEVICE) || defined(HAVE_SPI_DEVICE)
|
||||||
void efm32_uart_reset(uintptr_t base);
|
void efm32_uart_reset(uintptr_t base);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*****************************************************************************
|
/****************************************************************************
|
||||||
* Name: efm32_uart_reset
|
* Name: efm32_uart_reset
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
@@ -123,7 +123,7 @@ void efm32_uart_reset(uintptr_t base);
|
|||||||
* to the initial, reset value. Only the ROUTE data set by efm32_lowsetup
|
* to the initial, reset value. Only the ROUTE data set by efm32_lowsetup
|
||||||
* is preserved.
|
* is preserved.
|
||||||
*
|
*
|
||||||
*****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifdef HAVE_LEUART_DEVICE
|
#ifdef HAVE_LEUART_DEVICE
|
||||||
void efm32_leuart_reset(uintptr_t base);
|
void efm32_leuart_reset(uintptr_t base);
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
/******************************************************************************
|
/****************************************************************************
|
||||||
* arch/arm/src/efm32/efm32_pwm.h
|
* arch/arm/src/efm32/efm32_pwm.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2014 Pierre-Noel Bouteville. All rights reserved.
|
* Copyright (C) 2014 Pierre-Noel Bouteville. All rights reserved.
|
||||||
@@ -31,7 +31,7 @@
|
|||||||
* 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_SRC_EFM32_EFM32_PWM_H
|
#ifndef __ARCH_ARM_SRC_EFM32_EFM32_PWM_H
|
||||||
#define __ARCH_ARM_SRC_EFM32_EFM32_PWM_H
|
#define __ARCH_ARM_SRC_EFM32_EFM32_PWM_H
|
||||||
@@ -42,17 +42,17 @@
|
|||||||
* EFM32 timers. That interface is described in include/nuttx/pwm.h.
|
* EFM32 timers. That interface is described in include/nuttx/pwm.h.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/******************************************************************************
|
/****************************************************************************
|
||||||
* Included Files
|
* Included Files
|
||||||
******************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
|
|
||||||
#include "chip.h"
|
#include "chip.h"
|
||||||
|
|
||||||
/******************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
******************************************************************************/
|
****************************************************************************/
|
||||||
/* Configuration **************************************************************/
|
/* Configuration **************************************************************/
|
||||||
/* Timer devices may be used for different purposes. One special purpose is
|
/* Timer devices may be used for different purposes. One special purpose is
|
||||||
* to generate modulated outputs for such things as motor control.
|
* to generate modulated outputs for such things as motor control.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
/*****************************************************************************
|
/****************************************************************************
|
||||||
* arch/arm/src/efm32/efm32_rmu.h
|
* arch/arm/src/efm32/efm32_rmu.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2015 Pierre-noel Bouteville . All rights reserved.
|
* Copyright (C) 2015 Pierre-noel Bouteville . All rights reserved.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
/*****************************************************************************
|
/****************************************************************************
|
||||||
* arch/arm/src/efm32/efm32_rtc.h
|
* arch/arm/src/efm32/efm32_rtc.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2015 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2015 Gregory Nutt. All rights reserved.
|
||||||
|
|||||||
@@ -68,7 +68,7 @@
|
|||||||
struct spi_dev_s;
|
struct spi_dev_s;
|
||||||
struct spi_dev_s *efm32_spi_initialize(int port);
|
struct spi_dev_s *efm32_spi_initialize(int port);
|
||||||
|
|
||||||
/*****************************************************************************
|
/****************************************************************************
|
||||||
* Name: efm32_spi[n]_select, efm32_spi[n]_status, and efm32_spi[n]_cmddata
|
* Name: efm32_spi[n]_select, efm32_spi[n]_status, and efm32_spi[n]_cmddata
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
/*****************************************************************************
|
/****************************************************************************
|
||||||
* arch/arm/src/efm32/efm32_timer.h
|
* arch/arm/src/efm32/efm32_timer.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2014 Pierre-noel Bouteville . All rights reserved.
|
* Copyright (C) 2014 Pierre-noel Bouteville . All rights reserved.
|
||||||
|
|||||||
@@ -149,7 +149,7 @@ extern "C"
|
|||||||
#define EXTERN extern
|
#define EXTERN extern
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*******************************************************************************
|
/****************************************************************************
|
||||||
* Name: efm32_usbhost_initialize
|
* Name: efm32_usbhost_initialize
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
@@ -172,7 +172,7 @@ extern "C"
|
|||||||
* - Class drivers should be initialized prior to calling this function.
|
* - Class drivers should be initialized prior to calling this function.
|
||||||
* Otherwise, there is a race condition if the device is already connected.
|
* Otherwise, there is a race condition if the device is already connected.
|
||||||
*
|
*
|
||||||
*******************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_USBHOST
|
#ifdef CONFIG_USBHOST
|
||||||
struct usbhost_connection_s;
|
struct usbhost_connection_s;
|
||||||
|
|||||||
@@ -386,25 +386,25 @@ void kinetis_clockconfig(void);
|
|||||||
|
|
||||||
void kinetis_lowsetup(void);
|
void kinetis_lowsetup(void);
|
||||||
|
|
||||||
/******************************************************************************
|
/****************************************************************************
|
||||||
* Name: kinetis_uartreset
|
* Name: kinetis_uartreset
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Reset a UART.
|
* Reset a UART.
|
||||||
*
|
*
|
||||||
******************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifdef HAVE_UART_DEVICE
|
#ifdef HAVE_UART_DEVICE
|
||||||
void kinetis_uartreset(uintptr_t uart_base);
|
void kinetis_uartreset(uintptr_t uart_base);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/******************************************************************************
|
/****************************************************************************
|
||||||
* Name: kinetis_uartconfigure
|
* Name: kinetis_uartconfigure
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Configure a UART as a RS-232 UART.
|
* Configure a UART as a RS-232 UART.
|
||||||
*
|
*
|
||||||
******************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifdef HAVE_UART_DEVICE
|
#ifdef HAVE_UART_DEVICE
|
||||||
void kinetis_uartconfigure(uintptr_t uart_base, uint32_t baud, uint32_t clock,
|
void kinetis_uartconfigure(uintptr_t uart_base, uint32_t baud, uint32_t clock,
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ extern "C"
|
|||||||
#define EXTERN extern
|
#define EXTERN extern
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*******************************************************************************
|
/****************************************************************************
|
||||||
* Name: lpc17_usbhost_initialize
|
* Name: lpc17_usbhost_initialize
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
@@ -92,7 +92,7 @@ extern "C"
|
|||||||
* - Class drivers should be initialized prior to calling this function.
|
* - Class drivers should be initialized prior to calling this function.
|
||||||
* Otherwise, there is a race condition if the device is already connected.
|
* Otherwise, there is a race condition if the device is already connected.
|
||||||
*
|
*
|
||||||
*******************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_USBHOST
|
#ifdef CONFIG_USBHOST
|
||||||
struct usbhost_connection_s;
|
struct usbhost_connection_s;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
/*******************************************************************************
|
/****************************************************************************
|
||||||
* arch/arm/src/lpc214x/lpc214x_usbdev.h
|
* arch/arm/src/lpc214x/lpc214x_usbdev.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2008-2009 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2008-2009 Gregory Nutt. 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_SRC_LPC214X_LPC214X_USBDEV_H
|
#ifndef __ARCH_ARM_SRC_LPC214X_LPC214X_USBDEV_H
|
||||||
#define __ARCH_ARM_SRC_LPC214X_LPC214X_USBDEV_H
|
#define __ARCH_ARM_SRC_LPC214X_LPC214X_USBDEV_H
|
||||||
|
|
||||||
/*******************************************************************************
|
/****************************************************************************
|
||||||
* Included Files
|
* Included Files
|
||||||
*******************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
|
|
||||||
/*******************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
*******************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* PINSEL1 bit definitions for UART0/1:
|
/* PINSEL1 bit definitions for UART0/1:
|
||||||
*
|
*
|
||||||
@@ -331,16 +331,16 @@
|
|||||||
#define USB_DMAPKTSIZE_FRAMENOSHIFT (17) /* Bit 17-31: Frame number */
|
#define USB_DMAPKTSIZE_FRAMENOSHIFT (17) /* Bit 17-31: Frame number */
|
||||||
|
|
||||||
|
|
||||||
/*******************************************************************************
|
/****************************************************************************
|
||||||
* Private Types
|
* Private Types
|
||||||
*******************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/*******************************************************************************
|
/****************************************************************************
|
||||||
* Public Data
|
* Public Data
|
||||||
*******************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/*******************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions
|
||||||
*******************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#endif /* __ARCH_ARM_SRC_LPC214X_LPC214X_USBDEV_H */
|
#endif /* __ARCH_ARM_SRC_LPC214X_LPC214X_USBDEV_H */
|
||||||
|
|||||||
@@ -240,7 +240,7 @@ struct usbdev_s;
|
|||||||
void lpc31_usbsuspend(FAR struct usbdev_s *dev, bool resume);
|
void lpc31_usbsuspend(FAR struct usbdev_s *dev, bool resume);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*******************************************************************************
|
/****************************************************************************
|
||||||
* Name: lpc31_ehci_initialize
|
* Name: lpc31_ehci_initialize
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
@@ -263,7 +263,7 @@ void lpc31_usbsuspend(FAR struct usbdev_s *dev, bool resume);
|
|||||||
* - Class drivers should be initialized prior to calling this function.
|
* - Class drivers should be initialized prior to calling this function.
|
||||||
* Otherwise, there is a race condition if the device is already connected.
|
* Otherwise, there is a race condition if the device is already connected.
|
||||||
*
|
*
|
||||||
*******************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#if defined(CONFIG_LPC31_USBOTG) && defined(CONFIG_USBHOST)
|
#if defined(CONFIG_LPC31_USBOTG) && defined(CONFIG_USBHOST)
|
||||||
struct usbhost_connection_s;
|
struct usbhost_connection_s;
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ extern "C"
|
|||||||
* Public Function Prototypes
|
* Public Function Prototypes
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
/*******************************************************************************
|
/****************************************************************************
|
||||||
* Name: lpc31_ehci_initialize
|
* Name: lpc31_ehci_initialize
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
@@ -93,7 +93,7 @@ extern "C"
|
|||||||
* - Class drivers should be initialized prior to calling this function.
|
* - Class drivers should be initialized prior to calling this function.
|
||||||
* Otherwise, there is a race condition if the device is already connected.
|
* Otherwise, there is a race condition if the device is already connected.
|
||||||
*
|
*
|
||||||
*******************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#if defined(CONFIG_LPC43_USBOTG) && defined(CONFIG_USBHOST)
|
#if defined(CONFIG_LPC43_USBOTG) && defined(CONFIG_USBHOST)
|
||||||
struct usbhost_connection_s;
|
struct usbhost_connection_s;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
/*****************************************************************************
|
/****************************************************************************
|
||||||
* arch/arm/src/lpc43xx/lpc43_rit.h
|
* arch/arm/src/lpc43xx/lpc43_rit.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2012 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2012 Gregory Nutt. All rights reserved.
|
||||||
@@ -31,32 +31,32 @@
|
|||||||
* 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_SRC_LPC43XX_LPC43_RIT_H
|
#ifndef __ARCH_ARM_SRC_LPC43XX_LPC43_RIT_H
|
||||||
#define __ARCH_ARM_SRC_LPC43XX_LPC43_RIT_H
|
#define __ARCH_ARM_SRC_LPC43XX_LPC43_RIT_H
|
||||||
|
|
||||||
/*****************************************************************************
|
/****************************************************************************
|
||||||
* Included Files
|
* Included Files
|
||||||
*****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
|
|
||||||
/*****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
*****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/*****************************************************************************
|
/****************************************************************************
|
||||||
* Public Types
|
* Public Types
|
||||||
*****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/*****************************************************************************
|
/****************************************************************************
|
||||||
* Public Data
|
* Public Data
|
||||||
*****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Public Functions
|
* Public Functions
|
||||||
*****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
void up_timer_initialize(void);
|
void up_timer_initialize(void);
|
||||||
int up_timer_gettime(FAR struct timespec *ts);
|
int up_timer_gettime(FAR struct timespec *ts);
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ void nuc_lowsetup(void);
|
|||||||
* Here we assume that the default clock source for the UART modules is
|
* Here we assume that the default clock source for the UART modules is
|
||||||
* the external high speed crystal.
|
* the external high speed crystal.
|
||||||
*
|
*
|
||||||
*****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifdef HAVE_UART
|
#ifdef HAVE_UART
|
||||||
void nuc_setbaud(uintptr_t base, uint32_t baud);
|
void nuc_setbaud(uintptr_t base, uint32_t baud);
|
||||||
@@ -107,7 +107,7 @@ void nuc_setbaud(uintptr_t base, uint32_t baud);
|
|||||||
* Description:
|
* Description:
|
||||||
* Output one character to the UART using a simple polling method.
|
* Output one character to the UART using a simple polling method.
|
||||||
*
|
*
|
||||||
*****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifdef HAVE_SERIAL_CONSOLE
|
#ifdef HAVE_SERIAL_CONSOLE
|
||||||
void nuc_lowputc(uint32_t ch);
|
void nuc_lowputc(uint32_t ch);
|
||||||
|
|||||||
@@ -230,7 +230,7 @@ extern "C"
|
|||||||
* Public Functions
|
* Public Functions
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
/*******************************************************************************
|
/****************************************************************************
|
||||||
* Name: sam_ohci_initialize
|
* Name: sam_ohci_initialize
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
@@ -253,14 +253,14 @@ extern "C"
|
|||||||
* - Class drivers should be initialized prior to calling this function.
|
* - Class drivers should be initialized prior to calling this function.
|
||||||
* Otherwise, there is a race condition if the device is already connected.
|
* Otherwise, there is a race condition if the device is already connected.
|
||||||
*
|
*
|
||||||
*******************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_SAMA5_OHCI
|
#ifdef CONFIG_SAMA5_OHCI
|
||||||
struct usbhost_connection_s;
|
struct usbhost_connection_s;
|
||||||
FAR struct usbhost_connection_s *sam_ohci_initialize(int controller);
|
FAR struct usbhost_connection_s *sam_ohci_initialize(int controller);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*******************************************************************************
|
/****************************************************************************
|
||||||
* Name: sam_ohci_tophalf
|
* Name: sam_ohci_tophalf
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
@@ -268,13 +268,13 @@ FAR struct usbhost_connection_s *sam_ohci_initialize(int controller);
|
|||||||
* EHCI will manage the common UHPHS interrupt and will forward the interrupt
|
* EHCI will manage the common UHPHS interrupt and will forward the interrupt
|
||||||
* event to this function.
|
* event to this function.
|
||||||
*
|
*
|
||||||
*******************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_SAMA5_OHCI
|
#ifdef CONFIG_SAMA5_OHCI
|
||||||
int sam_ohci_tophalf(int irq, FAR void *context);
|
int sam_ohci_tophalf(int irq, FAR void *context);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*******************************************************************************
|
/****************************************************************************
|
||||||
* Name: sam_ehci_initialize
|
* Name: sam_ehci_initialize
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
@@ -297,7 +297,7 @@ int sam_ohci_tophalf(int irq, FAR void *context);
|
|||||||
* - Class drivers should be initialized prior to calling this function.
|
* - Class drivers should be initialized prior to calling this function.
|
||||||
* Otherwise, there is a race condition if the device is already connected.
|
* Otherwise, there is a race condition if the device is already connected.
|
||||||
*
|
*
|
||||||
*******************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_SAMA5_EHCI
|
#ifdef CONFIG_SAMA5_EHCI
|
||||||
struct usbhost_connection_s;
|
struct usbhost_connection_s;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
/******************************************************************************
|
/****************************************************************************
|
||||||
* arch/arm/src/stm32/chip/stm32_dma2d.h
|
* arch/arm/src/stm32/chip/stm32_dma2d.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2014-2015 Marco Krahl. All rights reserved.
|
* Copyright (C) 2014-2015 Marco Krahl. All rights reserved.
|
||||||
@@ -31,21 +31,21 @@
|
|||||||
* 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_SRC_STM32_CHIP_STM32_DMA2D_H
|
#ifndef __ARCH_ARM_SRC_STM32_CHIP_STM32_DMA2D_H
|
||||||
#define __ARCH_ARM_SRC_STM32_CHIP_STM32_DMA2D_H
|
#define __ARCH_ARM_SRC_STM32_CHIP_STM32_DMA2D_H
|
||||||
|
|
||||||
/*****************************************************************************
|
/****************************************************************************
|
||||||
* Included Files
|
* Included Files
|
||||||
*****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
#include "chip/stm32_memorymap.h"
|
#include "chip/stm32_memorymap.h"
|
||||||
|
|
||||||
/*****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
*****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#define STM32_DMA2D_NCLUT 256 /* Number of entries in the CLUT */
|
#define STM32_DMA2D_NCLUT 256 /* Number of entries in the CLUT */
|
||||||
|
|
||||||
@@ -223,8 +223,8 @@
|
|||||||
#define DMA2D_AMTCR_DT_MASK (0xFF << DMA2D_AMTCR_DT_SHIFT)
|
#define DMA2D_AMTCR_DT_MASK (0xFF << DMA2D_AMTCR_DT_SHIFT)
|
||||||
#define DMA2D_AMTCR_DT(n) ((uint32_t)(n) << DMA2D_AMTCR_DT_SHIFT)
|
#define DMA2D_AMTCR_DT(n) ((uint32_t)(n) << DMA2D_AMTCR_DT_SHIFT)
|
||||||
|
|
||||||
/*****************************************************************************
|
/****************************************************************************
|
||||||
* Public Types
|
* Public Types
|
||||||
*****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#endif /* __ARCH_ARM_SRC_STM32_CHIP_STM32_DMA2D_H */
|
#endif /* __ARCH_ARM_SRC_STM32_CHIP_STM32_DMA2D_H */
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
/******************************************************************************
|
/****************************************************************************
|
||||||
* arch/arm/src/stm32/stm32_dma2d.h
|
* arch/arm/src/stm32/stm32_dma2d.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2014-2015 Marco Krahl. All rights reserved.
|
* Copyright (C) 2014-2015 Marco Krahl. All rights reserved.
|
||||||
@@ -31,38 +31,38 @@
|
|||||||
* 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_SRC_STM32_STM32_DMA2D_H
|
#ifndef __ARCH_ARM_SRC_STM32_STM32_DMA2D_H
|
||||||
#define __ARCH_ARM_SRC_STM32_STM32_DMA2D_H
|
#define __ARCH_ARM_SRC_STM32_STM32_DMA2D_H
|
||||||
|
|
||||||
/******************************************************************************
|
/****************************************************************************
|
||||||
* Included Files
|
* Included Files
|
||||||
******************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
#include <nuttx/video/fb.h>
|
#include <nuttx/video/fb.h>
|
||||||
#include <arch/chip/ltdc.h>
|
#include <arch/chip/ltdc.h>
|
||||||
|
|
||||||
#ifdef CONFIG_STM32_DMA2D
|
#ifdef CONFIG_STM32_DMA2D
|
||||||
/******************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
******************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/******************************************************************************
|
/****************************************************************************
|
||||||
* Public Types
|
* Public Types
|
||||||
******************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/******************************************************************************
|
/****************************************************************************
|
||||||
* Public Data
|
* Public Data
|
||||||
******************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/******************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions
|
||||||
******************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
# ifdef CONFIG_STM32_LTDC_INTERFACE
|
# ifdef CONFIG_STM32_LTDC_INTERFACE
|
||||||
/******************************************************************************
|
/****************************************************************************
|
||||||
* Name: stm32_dma2dinitltdc
|
* Name: stm32_dma2dinitltdc
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
@@ -81,7 +81,7 @@
|
|||||||
* On error - NULL and errno is set to
|
* On error - NULL and errno is set to
|
||||||
* -EINVAL if one of the parameter is invalid
|
* -EINVAL if one of the parameter is invalid
|
||||||
*
|
*
|
||||||
******************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
FAR struct dma2d_layer_s * stm32_dma2dinitltdc(FAR struct stm32_ltdc_s *layer);
|
FAR struct dma2d_layer_s * stm32_dma2dinitltdc(FAR struct stm32_ltdc_s *layer);
|
||||||
# endif /* CONFIG_STM32_LTDC_INTERFACE */
|
# endif /* CONFIG_STM32_LTDC_INTERFACE */
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ extern "C"
|
|||||||
#define EXTERN extern
|
#define EXTERN extern
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*******************************************************************************
|
/****************************************************************************
|
||||||
* Name: stm32_otgfshost_initialize
|
* Name: stm32_otgfshost_initialize
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
@@ -101,7 +101,7 @@ extern "C"
|
|||||||
* - Class drivers should be initialized prior to calling this function.
|
* - Class drivers should be initialized prior to calling this function.
|
||||||
* Otherwise, there is a race condition if the device is already connected.
|
* Otherwise, there is a race condition if the device is already connected.
|
||||||
*
|
*
|
||||||
*******************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_USBHOST
|
#ifdef CONFIG_USBHOST
|
||||||
struct usbhost_connection_s;
|
struct usbhost_connection_s;
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ extern "C"
|
|||||||
#define EXTERN extern
|
#define EXTERN extern
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*******************************************************************************
|
/****************************************************************************
|
||||||
* Name: stm32_otgfshost_initialize
|
* Name: stm32_otgfshost_initialize
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
@@ -96,7 +96,7 @@ extern "C"
|
|||||||
* - Class drivers should be initialized prior to calling this function.
|
* - Class drivers should be initialized prior to calling this function.
|
||||||
* Otherwise, there is a race condition if the device is already connected.
|
* Otherwise, there is a race condition if the device is already connected.
|
||||||
*
|
*
|
||||||
*******************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_USBHOST
|
#ifdef CONFIG_USBHOST
|
||||||
struct usbhost_connection_s;
|
struct usbhost_connection_s;
|
||||||
|
|||||||
@@ -317,7 +317,7 @@ int gpio_irqattach(int irq, xcpt_t newisr, xcpt_t *oldisr);
|
|||||||
void gpio_irqenable(int irq);
|
void gpio_irqenable(int irq);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*****************************************************************************
|
/****************************************************************************
|
||||||
* Name: gpio_irqdisable
|
* Name: gpio_irqdisable
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
|
|||||||
@@ -186,7 +186,7 @@ int gpio_irqattach(int irq, xcpt_t newisr, xcpt_t *oldisr);
|
|||||||
void gpio_irqenable(int irq);
|
void gpio_irqenable(int irq);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*****************************************************************************
|
/****************************************************************************
|
||||||
* Name: gpio_irqdisable
|
* Name: gpio_irqdisable
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
|
|||||||
@@ -188,7 +188,7 @@ int gpio_irqattach(int irq, xcpt_t newisr, xcpt_t *oldisr);
|
|||||||
void gpio_irqenable(int irq);
|
void gpio_irqenable(int irq);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*****************************************************************************
|
/****************************************************************************
|
||||||
* Name: gpio_irqdisable
|
* Name: gpio_irqdisable
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
|
|||||||
@@ -204,25 +204,25 @@ void pic32mx_consoleinit(void);
|
|||||||
# define pic32mx_consoleinit()
|
# define pic32mx_consoleinit()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/******************************************************************************
|
/****************************************************************************
|
||||||
* Name: pic32mx_uartreset
|
* Name: pic32mx_uartreset
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Reset a UART.
|
* Reset a UART.
|
||||||
*
|
*
|
||||||
******************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifdef HAVE_UART_DEVICE
|
#ifdef HAVE_UART_DEVICE
|
||||||
void pic32mx_uartreset(uintptr_t uart_base);
|
void pic32mx_uartreset(uintptr_t uart_base);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/******************************************************************************
|
/****************************************************************************
|
||||||
* Name: pic32mx_uartconfigure
|
* Name: pic32mx_uartconfigure
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Configure a UART as a RS-232 UART.
|
* Configure a UART as a RS-232 UART.
|
||||||
*
|
*
|
||||||
******************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifdef HAVE_UART_DEVICE
|
#ifdef HAVE_UART_DEVICE
|
||||||
void pic32mx_uartconfigure(uintptr_t uart_base, uint32_t baudrate,
|
void pic32mx_uartconfigure(uintptr_t uart_base, uint32_t baudrate,
|
||||||
|
|||||||
@@ -89,25 +89,25 @@ void pic32mz_consoleinit(void);
|
|||||||
# define pic32mz_consoleinit()
|
# define pic32mz_consoleinit()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/******************************************************************************
|
/****************************************************************************
|
||||||
* Name: pic32mz_uartreset
|
* Name: pic32mz_uartreset
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Reset a UART.
|
* Reset a UART.
|
||||||
*
|
*
|
||||||
******************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifdef HAVE_UART_DEVICE
|
#ifdef HAVE_UART_DEVICE
|
||||||
void pic32mz_uartreset(uintptr_t uart_base);
|
void pic32mz_uartreset(uintptr_t uart_base);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/******************************************************************************
|
/****************************************************************************
|
||||||
* Name: pic32mz_uartconfigure
|
* Name: pic32mz_uartconfigure
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Configure a UART as a RS-232 UART.
|
* Configure a UART as a RS-232 UART.
|
||||||
*
|
*
|
||||||
******************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifdef HAVE_UART_DEVICE
|
#ifdef HAVE_UART_DEVICE
|
||||||
void pic32mz_uartconfigure(uintptr_t uart_base, uint32_t baudrate,
|
void pic32mz_uartconfigure(uintptr_t uart_base, uint32_t baudrate,
|
||||||
|
|||||||
Reference in New Issue
Block a user