Merged in alinjerpelea/nuttx (pull request #990)

arm: codestyle fixes 1

* arm: a1x: codestyle fixes

    After the board restructuration is time for codestyle cleanup

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* arm: am335x: codestyle fixes

    After the board restructuration is time for codestyle cleanup

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* arm: c5471: codestyle fixes

    After the board restructuration is time for codestyle cleanup

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* arm: cxd56xx: codestyle fixes

    After the board restructuration is time for codestyle cleanup

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* arm: dm320: codestyle fixes

    After the board restructuration is time for codestyle cleanup

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* arm: efm32: codestyle fixes

    After the board restructuration is time for codestyle cleanup

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* arm: imx6: codestyle fixes

    After the board restructuration is time for codestyle cleanup

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* arm: imxrt: codestyle fixes

    After the board restructuration is time for codestyle cleanup

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* arm: kinetis: codestyle fixes

    After the board restructuration is time for codestyle cleanup

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

Approved-by: Gregory Nutt <gnutt@nuttx.org>
This commit is contained in:
Alin Jerpelea
2019-08-12 16:06:40 +00:00
committed by Gregory Nutt
parent eb5a8c7cea
commit f362d161db
213 changed files with 2303 additions and 1999 deletions
+1 -1
View File
@@ -378,7 +378,7 @@ Configurations
STATUS:
This configuration builds and runs, but only if the patch at
nuttx/boards/pcduino-a10/nsh/pcduino-140107.patch is applied. This patchfile
nuttx/boards/arm/a1x/pcduino-a10/nsh/pcduino-140107.patch is applied. This patchfile
contains some fixes that are as-of-yet not well understood and so cannot be checked
in. Below is a summary of the kludges currently in this patch file:
+33 -28
View File
@@ -1,4 +1,4 @@
/************************************************************************************
/****************************************************************************
* boards/arm/a1x/pcduino-a10/include/board.h
*
* Copyright (C) 2013 Gregory Nutt. All rights reserved.
@@ -31,32 +31,34 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
************************************************************************************/
****************************************************************************/
#ifndef __BOARDS_ARM_A1X_PCDUINO_A10_INCLUDE_BOARD_H
#define __BOARDS_ARM_A1X_PCDUINO_A10_INCLUDE_BOARD_H
/************************************************************************************
/****************************************************************************
* Included Files
************************************************************************************/
****************************************************************************/
#include <nuttx/config.h>
#include "hardware/a1x_piocfg.h"
/************************************************************************************
/****************************************************************************
* Pre-processor Definitions
************************************************************************************/
****************************************************************************/
/* Clocking *************************************************************************/
/* Since NuttX is booted from a loader on the A10, clocking should already be setup
* when NuttX starts.
/* Clocking *****************************************************************/
/* Since NuttX is booted from a loader on the A10, clocking should already
* be setup when NuttX starts.
*/
/* LED definitions ******************************************************************/
/* The pcDuino v1 has four green LEDs; three can be controlled from software. Two
* are tied to ground and, hence, illuminated by driving the output pins to a high
* value:
/* LED definitions **********************************************************/
/* The pcDuino v1 has four green LEDs; three can be controlled from software.
* Two are tied to ground and, hence, illuminated by driving the output pins
* to a high value:
*
* 1. LED1 SPI0_CLK SPI0_CLK/UART5_RX/EINT23/PI11
* 2. LED5 IPSOUT From the PMU (not controllable by software)
@@ -87,7 +89,8 @@
*
* SYMBOL Value Meaning LED state
* LED1 LED3 LED4
* ----------------- ----- ----------------------- ---- ---- ------------ */
* ----------------- ----- ----------------------- ---- ---- --------
*/
#define LED_STARTED 0 /* NuttX has been started ON OFF OFF */
#define LED_HEAPALLOCATE 1 /* Heap has been allocated OFF ON OFF */
@@ -100,14 +103,15 @@
/* LED_IDLE --- /* MCU is is sleep mode Not used
*
* After booting, LED1 and 3 are not longer used by the system and can be used for
* other purposes by the application (Of course, all LEDs are available to the
* application if CONFIG_ARCH_LEDS is not defined.
* After booting, LED1 and 3 are not longer used by the system and can be
* used for other purposes by the application (Of course, all LEDs are
* available to the application if CONFIG_ARCH_LEDS is not defined.
*/
/* Button definitions ***************************************************************/
/* There are a total of five switches on-board. All pulled high and, hence, will be
* sensed as low when closed.
/* Button definitions *******************************************************/
/* There are a total of five switches on-board.
* All pulled high and, hence, will be sensed as low when closed.
*
* SW1 Reset (not available to software)
* SW2 UBOOT UBOOT_SEL (?)
@@ -125,10 +129,12 @@
#define BUTTON_KEY_HOME_BIT (1 << BUTTON_KEY_HOME)
#define BUTTON_KEY_MENU_BIT (1 << BUTTON_KEY_MENU)
/* NAND *****************************************************************************/
/* NAND *********************************************************************/
/* GPIO pin disambiguation **************************************************/
/* UARTs ********************************************************************/
/* GPIO pin disambiguation **********************************************************/
/* UARTs ****************************************************************************/
/* Two UART connections are available:
*
* 1. UART0 is available on J5 Debug Port.
@@ -148,13 +154,12 @@
#define PIO_UART2_RX PIO_UART2_RX_1
#define PIO_UART2_TX PIO_UART2_TX_1
/************************************************************************************
/****************************************************************************
* Assembly Language Macros
************************************************************************************/
****************************************************************************/
#ifdef __ASSEMBLY__
.macro config_sdram
.endm
.macro config_sdram
.endm
#endif /* __ASSEMBLY__ */
#endif /* __BOARDS_ARM_A1X_PCDUINO_A10_INCLUDE_BOARD_H */
@@ -1,4 +1,4 @@
/************************************************************************************
/****************************************************************************
* boards/arm/a1x/pcduino-a10/include/board_memorymap.h
*
* Copyright (C) 2013 Gregory Nutt. All rights reserved.
@@ -31,38 +31,39 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
************************************************************************************/
****************************************************************************/
#ifndef __BOARDS_ARM_A1X_PCDUINO_A10_INCLUDE_BOARD_MEMORYMAP_H
#define __BOARDS_ARM_A1X_PCDUINO_A10_INCLUDE_BOARD_MEMORYMAP_H
/************************************************************************************
/****************************************************************************
* Included Files
************************************************************************************/
****************************************************************************/
#include <nuttx/config.h>
/************************************************************************************
/****************************************************************************
* Pre-processor Definitions
************************************************************************************/
****************************************************************************/
/************************************************************************************
/****************************************************************************
* Public Data
************************************************************************************/
****************************************************************************/
#ifndef __ASSEMBLY__
#undef EXTERN
#if defined(__cplusplus)
#define EXTERN extern "C"
extern "C" {
extern "C"
{
#else
#define EXTERN extern
#endif
/************************************************************************************
/****************************************************************************
* Public Function Prototypes
************************************************************************************/
****************************************************************************/
#undef EXTERN
#if defined(__cplusplus)
+1 -1
View File
@@ -1,5 +1,5 @@
############################################################################
# boards/pcduino-a10/scripts/Make.defs
# boards/arm/a1x/pcduino-a10/scripts/Make.defs
#
# Copyright (C) 2013, 2017 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gnutt@nuttx.org>
+1 -1
View File
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/pcduino-a10/scripts/sdram.ld
* boards/arm/a1x/pcduino-a10/scripts/sdram.ld
*
* Copyright (C) 2013, 2016 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
+1 -1
View File
@@ -1,5 +1,5 @@
############################################################################
# boards/pcduino-a10/src/Makefile
# boards/arm/a1x/pcduino-a10/src/Makefile
#
# Copyright (C) 2013 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gnutt@nuttx.org>
+13 -13
View File
@@ -1,5 +1,5 @@
/************************************************************************************
* boards/pcduino-a10/src/a1x_boot.c
/****************************************************************************
* boards/arm/a1x/pcduino-a10/src/a1x_boot.c
*
* Copyright (C) 2013 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
@@ -31,11 +31,11 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
************************************************************************************/
****************************************************************************/
/************************************************************************************
/****************************************************************************
* Included Files
************************************************************************************/
****************************************************************************/
#include <nuttx/config.h>
@@ -45,19 +45,19 @@
#include "pcduino_a10.h"
/************************************************************************************
/****************************************************************************
* Pre-processor Definitions
************************************************************************************/
****************************************************************************/
/************************************************************************************
/****************************************************************************
* Private Functions
************************************************************************************/
****************************************************************************/
/************************************************************************************
/****************************************************************************
* Public Functions
************************************************************************************/
****************************************************************************/
/************************************************************************************
/****************************************************************************
* Name: a1x_boardinitialize
*
* Description:
@@ -65,7 +65,7 @@
* point is called early in the initialization -- after all memory has been
* configured and mapped but before any devices have been initialized.
*
************************************************************************************/
****************************************************************************/
void a1x_boardinitialize(void)
{
+10 -9
View File
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/pcduino-a10/src/a1x_buttons.c
* boards/arm/a1x/pcduino-a10/src/a1x_buttons.c
*
* Copyright (C) 2013-2015, 2017 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
@@ -61,10 +61,10 @@
* Name: board_button_initialize
*
* Description:
* board_button_initialize() must be called to initialize button resources. After
* that, board_buttons() may be called to collect the current state of all
* buttons or board_button_irq() may be called to register button interrupt
* handlers.
* board_button_initialize() must be called to initialize button resources.
* After that, board_buttons() may be called to collect the current state
* of all buttons or board_button_irq() may be called to register button
* interrupt handlers.
*
****************************************************************************/
@@ -77,10 +77,11 @@ void board_button_initialize(void)
* Name: board_buttons
*
* Description:
* After board_button_initialize() has been called, board_buttons() may be called to
* collect the state of all buttons. board_buttons() returns an 32-bit bit set
* with each bit associated with a button. See the BUTTON* definitions
* above for the meaning of each bit in the returned value.
* After board_button_initialize() has been called, board_buttons() may be
* called to collect the state of all buttons. board_buttons() returns an
* 32-bit bit set with each bit associated with a button.
* See the BUTTON* definitions above for the meaning of each bit in the
* returned value.
*
****************************************************************************/
+14 -13
View File
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/pcduino-a10/src/a1x_leds.c
* boards/arm/a1x/pcduino-a10/src/a1x_leds.c
*
* Copyright (C) 2013, 2015 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
@@ -66,8 +66,8 @@
* These LEDs are not used by the board port unless CONFIG_ARCH_LEDS is
* defined. In that case, the usage by the board port is defined in
* include/board.h and src/stm32_leds.c. The LEDs are used to encode OS-related
* events as follows:
* include/board.h and src/stm32_leds.c.
* The LEDs are used to encode OS-related events as follows:
*
* SYMBOL Meaning LED state
* LED1 LED3 LED4
@@ -82,9 +82,9 @@
* LED_PANIC The system has crashed N/C N/C 2Hz Flashing
* LED_IDLE MCU is is sleep mode Not used
*
* After booting, LED1 and 3 are not longer used by the system and can be used for
* other purposes by the application (Of course, all LEDs are available to the
* application if CONFIG_ARCH_LEDS is not defined.
* After booting, LED1 and 3 are not longer used by the system and can be used
* for other purposes by the application (Of course, all LEDs are available to
* the application if CONFIG_ARCH_LEDS is not defined.
*/
/****************************************************************************
@@ -201,20 +201,21 @@ void board_autoled_off(int led)
}
#endif
/************************************************************************************
/****************************************************************************
* Name: board_userled_initialize, board_userled, and board_userled_all
*
* Description:
* These interfaces allow user control of the board LEDs.
*
* If CONFIG_ARCH_LEDS is defined, then NuttX will control both on-board LEDs up
* until the completion of boot. The it will continue to control LED2; LED1 is
* avaiable for application use.
*
* If CONFIG_ARCH_LEDS is not defined, then both LEDs are available for application
* If CONFIG_ARCH_LEDS is defined, then NuttX will control both on-board
* LEDs up until the completion of boot.
* The it will continue to control LED2; LED1 is avaiable for application
* use.
*
************************************************************************************/
* If CONFIG_ARCH_LEDS is not defined, then both LEDs are available for
* application use.
*
****************************************************************************/
void board_userled_initialize(void)
{
+39 -33
View File
@@ -1,5 +1,5 @@
/************************************************************************************
* boards/pcduino-a10/src/pcduino-a10.h
/****************************************************************************
* boards/arm/a1x/pcduino-a10/src/pcduino-a10.h
*
* Copyright (C) 2013 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
@@ -31,14 +31,14 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
************************************************************************************/
****************************************************************************/
#ifndef __BOARDS_ARM_PCDUINO_A10_PCDUINO_A10_H
#define __BOARDS_ARM_PCDUINO_A10_PCDUINO_A10_H
#ifndef __BOARDS_ARM_A1X_PCDUINO_A10_PCDUINO_A10_H
#define __BOARDS_ARM_A1X_PCDUINO_A10_PCDUINO_A10_H
/************************************************************************************
/****************************************************************************
* Included Files
************************************************************************************/
****************************************************************************/
#include <nuttx/config.h>
#include <nuttx/compiler.h>
@@ -50,21 +50,24 @@
#include "a1x_pio.h"
/************************************************************************************
/****************************************************************************
* Pre-processor Definitions
************************************************************************************/
/* Configuration ********************************************************************/
****************************************************************************/
/* LEDs *****************************************************************************/
/* The pcDuino v1 has four green LEDs; three can be controlled from software. Two
* are tied to ground and, hence, illuminated by driving the output pins to a high
* value:
/* Configuration ************************************************************/
/* LEDs *********************************************************************/
/* The pcDuino v1 has four green LEDs; three can be controlled from software.
* Two are tied to ground and, hence, illuminated by driving the output pins
* to a high value:
*
* 1. LED1 SPI0_CLK SPI0_CLK/UART5_RX/EINT23/PI11
* 2. LED5 IPSOUT From the PMU (not controllable by software)
*/
#define PIO_LED1 (PIO_OUTPUT | PIO_PULL_NONE | PIO_DRIVE_MEDLOW | PIO_INT_NONE | \
#define PIO_LED1 (PIO_OUTPUT | PIO_PULL_NONE | \
PIO_DRIVE_MEDLOW | PIO_INT_NONE | \
PIO_OUTPUT_CLEAR | PIO_PORT_PIOI | PIO_PIN11)
/* And two are pull high and, hence, illuminated by grounding the output:
@@ -73,16 +76,18 @@
* 4. LED4 TX_LED LCD1_D15/ATAD11/KP_IN5/SMC_VPPPP/EINT15/CSI1_D15/PH15
*/
#define PIO_LED3 (PIO_OUTPUT | PIO_PULL_NONE | PIO_DRIVE_MEDLOW | PIO_INT_NONE | \
#define PIO_LED3 (PIO_OUTPUT | PIO_PULL_NONE | \
PIO_DRIVE_MEDLOW | PIO_INT_NONE | \
PIO_OUTPUT_SET | PIO_PORT_PIOH | PIO_PIN16)
#define PIO_LED4 (PIO_OUTPUT | PIO_PULL_NONE | PIO_DRIVE_MEDLOW | PIO_INT_NONE | \
#define PIO_LED4 (PIO_OUTPUT | PIO_PULL_NONE | \
PIO_DRIVE_MEDLOW | PIO_INT_NONE | \
PIO_OUTPUT_SET | PIO_PORT_PIOH | PIO_PIN15)
/* These LEDs are not used by the board port unless CONFIG_ARCH_LEDS is
* defined. In that case, the usage by the board port is defined in
* include/board.h and src/stm32_leds.c. The LEDs are used to encode OS-related
* events as follows:
* include/board.h and src/stm32_leds.c.
* The LEDs are used to encode OS-related events as follows:
*
* SYMBOL Meaning LED state
* LED1 LED3 LED4
@@ -97,14 +102,15 @@
* LED_PANIC The system has crashed N/C N/C 2Hz Flashing
* LED_IDLE MCU is is sleep mode Not used
*
* After booting, LED1 and 3 are not longer used by the system and can be used for
* other purposes by the application (Of course, all LEDs are available to the
* application if CONFIG_ARCH_LEDS is not defined.
* After booting, LED1 and 3 are not longer used by the system and can be used
* for other purposes by the application (Of course, all LEDs are available to
* the application if CONFIG_ARCH_LEDS is not defined.
*/
/* Buttons **************************************************************************/
/* There are a total of five switches on-board. All pulled high and, hence, will be
* sensed as low when closed.
/* Buttons ******************************************************************/
/* There are a total of five switches on-board. All pulled high and, hence,
* will be sensed as low when closed.
*
* SW1 Reset (not available to software)
* SW2 UBOOT UBOOT_SEL (?)
@@ -129,21 +135,21 @@
PIO_INT_NONE | IO_PORT_PIOH | PIO_PIN19)
#endif
/* SPI Chip Selects *****************************************************************/
/* SPI Chip Selects *********************************************************/
/************************************************************************************
/****************************************************************************
* Public Types
************************************************************************************/
****************************************************************************/
/************************************************************************************
/****************************************************************************
* Public data
************************************************************************************/
****************************************************************************/
#ifndef __ASSEMBLY__
/************************************************************************************
/****************************************************************************
* Public Functions
************************************************************************************/
****************************************************************************/
/****************************************************************************
* Name: a1x_led_initialize
@@ -156,4 +162,4 @@
void a1x_led_initialize(void);
#endif /* __ASSEMBLY__ */
#endif /* __BOARDS_ARM_PCDUINO_A10_PCDUINO_A10_H */
#endif /* __BOARDS_ARM_A1X_PCDUINO_A10_PCDUINO_A10_H */
@@ -1,4 +1,4 @@
/************************************************************************************
/****************************************************************************
* boards/arm/am335x/beaglebone-black/include/board.h
*
* Copyright (C) 2018 Petro Karashchenko. All rights reserved.
@@ -31,41 +31,44 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
************************************************************************************/
****************************************************************************/
#ifndef __BOARDS_ARM_AM335X_BEAGLEBONE_BLACK_INCLUDE_BOARD_H
#define __BOARDS_ARM_AM335X_BEAGLEBONE_BLACK_INCLUDE_BOARD_H
/************************************************************************************
/****************************************************************************
* Included Files
************************************************************************************/
****************************************************************************/
#include <nuttx/config.h>
#include "hardware/am335x_pinmux.h"
/************************************************************************************
/****************************************************************************
* Pre-processor Definitions
************************************************************************************/
****************************************************************************/
/* Clocking *************************************************************************/
/* Since NuttX is booted from a loader on the AM335X, clocking should already be setup
* when NuttX starts.
/* Clocking *****************************************************************/
/* Since NuttX is booted from a loader on the AM335X, clocking should already
* be setup when NuttX starts.
*/
/* LED definitions ******************************************************************/
/* The beaglebone black has four user LEDs; all four can be controlled from software.
* All are tied to ground and, hence, illuminated by driving the output pins to a high
* value:
/* LED definitions **********************************************************/
/* The beaglebone black has four user LEDs; all four can be controlled from
* software.
* All are tied to ground and, hence, illuminated by driving the output pins
* to a high value:
*
* 1. LED0 GPMC_A5 GPMC_A5/GMII2_TXD0/RGMII2_TD0/RMII2_TXD0/GPMC_A21/PR1_MII1_RXD3/
* eQEP1B_IN/GPIO1_21
* 2. LED1 GPMC_A6 GPMC_A6/GMII2_TXCLK/RGMII2_TCLK/MMC2_DAT4/GPMC_A22/PR1_MII1_RXD2/
* eQEP1_INDEX/GPIO1_22
* 3. LED2 GPMC_A7 GPMC_A7/GMII2_RXCLK/RGMII2_RCLK/MMC2_DAT5/GPMC_A23/PR1_MII1_RXD1/
* eQEP1_STROBE/GPIO1_23
* 4. LED3 GPMC_A8 GPMC_A8/GMII2_RXD3/RGMII2_RD3/MMC2_DAT6/GPMC_A24/PR1_MII1_RXD0/
* MCASP0_ACLKX/GPIO1_24
* 1. LED0 GPMC_A5 GPMC_A5/GMII2_TXD0/RGMII2_TD0/RMII2_TXD0/GPMC_A21/
* PR1_MII1_RXD3/eQEP1B_IN/GPIO1_21
* 2. LED1 GPMC_A6 GPMC_A6/GMII2_TXCLK/RGMII2_TCLK/MMC2_DAT4/GPMC_A22/
* PR1_MII1_RXD2/eQEP1_INDEX/GPIO1_22
* 3. LED2 GPMC_A7 GPMC_A7/GMII2_RXCLK/RGMII2_RCLK/MMC2_DAT5/GPMC_A23/
* PR1_MII1_RXD1/eQEP1_STROBE/GPIO1_23
* 4. LED3 GPMC_A8 GPMC_A8/GMII2_RXD3/RGMII2_RD3/MMC2_DAT6/GPMC_A24/
* PR1_MII1_RXD0/MCASP0_ACLKX/GPIO1_24
*/
/* LED index values for use with board_userled() */
@@ -85,12 +88,13 @@
/* These LEDs are not used by the board port unless CONFIG_ARCH_LEDS is
* defined. In that case, the usage by the board port is defined in
* include/board.h and src/am335x_leds.c. The LEDs are used to encode OS-related
* events as follows:
* include/board.h and src/am335x_leds.c.
* The LEDs are used to encode OS-related events as follows:
*
* SYMBOL Value Meaning LED state
* LED0 LED1 LED2
* ----------------- ----- ----------------------- ---- ---- ------------ */
* ----------------- ----- ----------------------- ---- ---- ---------*
*/
#define LED_STARTED 0 /* NuttX has been started ON OFF OFF */
#define LED_HEAPALLOCATE 1 /* Heap has been allocated OFF ON OFF */
@@ -103,34 +107,35 @@
/* LED_IDLE --- /* MCU is is sleep mode Not used
*
* After booting, LED0 and 1 are not longer used by the system and can be used for
* other purposes by the application (Of course, all LEDs are available to the
* application if CONFIG_ARCH_LEDS is not defined.
* After booting, LED0 and 1 are not longer used by the system and can be
* used for other purposes by the application (Of course, all LEDs are
* available to the application if CONFIG_ARCH_LEDS is not defined.
*/
/* NAND *****************************************************************************/
/* NAND *********************************************************************/
/* GPIO pin disambiguation **************************************************/
/* UARTs ********************************************************************/
/* GPIO pin disambiguation **********************************************************/
/* UARTs ****************************************************************************/
/* One UART connections is available:
*
* 1. UART0 is available on FT2232H USB to Serial Adapter.
*
* FT2232H BDBUS1 Pin UART0-RXD UART0_RXD/SPI1_CS0/DCAN0_TX/I2C2_SDA/
eCAP2_IN_PWM2_OUT/PR1_PRU1_PRU_R30_14/
* PR1_PRU1_PRU_R31_14/GPIO1_10
* FT2232H BDBUS0 Pin UART0-TXD UART0_TXD/SPI1_CS1/DCAN0_RX/I2C2_SCL/
* eCAP1_IN_PWM1_OUT/PR1_PRU1_PRU_R30_15/
* PR1_PRU1_PRU_R31_15/GPIO1_11
* FT2232H BDBUS1 Pin UART0-RXD UART0_RXD/SPI1_CS0/DCAN0_TX/I2C2_SDA/
* eCAP2_IN_PWM2_OUT/PR1_PRU1_PRU_R30_14/
* PR1_PRU1_PRU_R31_14/GPIO1_10
* FT2232H BDBUS0 Pin UART0-TXD UART0_TXD/SPI1_CS1/DCAN0_RX/I2C2_SCL/
* eCAP1_IN_PWM1_OUT/PR1_PRU1_PRU_R30_15/
* PR1_PRU1_PRU_R31_15/GPIO1_11
*/
/************************************************************************************
/****************************************************************************
* Assembly Language Macros
************************************************************************************/
****************************************************************************/
#ifdef __ASSEMBLY__
.macro config_sdram
.endm
.macro config_sdram
.endm
#endif /* __ASSEMBLY__ */
#endif /* __BOARDS_ARM_AM335X_BEAGLEBONE_BLACK_INCLUDE_BOARD_H */
@@ -1,4 +1,4 @@
/************************************************************************************
/****************************************************************************
* boards/arm/am335x/beaglebone-black/include/board_memorymap.h
*
* Copyright (C) 2019 Gregory Nutt. All rights reserved.
@@ -31,24 +31,24 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
************************************************************************************/
****************************************************************************/
#ifndef __BOARDS_ARM_AM335X_BEAGLEBONE_BLACK_INCLUDE_BOARD_MEMORYMAP_H
#define __BOARDS_ARM_AM335X_BEAGLEBONE_BLACK_INCLUDE_BOARD_MEMORYMAP_H
/************************************************************************************
/****************************************************************************
* Included Files
************************************************************************************/
****************************************************************************/
#include <nuttx/config.h>
/************************************************************************************
/****************************************************************************
* Pre-processor Definitions
************************************************************************************/
****************************************************************************/
/************************************************************************************
/****************************************************************************
* Public Data
************************************************************************************/
****************************************************************************/
#ifndef __ASSEMBLY__
@@ -61,9 +61,9 @@ extern "C"
#define EXTERN extern
#endif
/************************************************************************************
/****************************************************************************
* Public Function Prototypes
************************************************************************************/
****************************************************************************/
#undef EXTERN
#if defined(__cplusplus)
@@ -1,5 +1,5 @@
############################################################################
# boards/beaglebone-black/scripts/Make.defs
# boards/arm/am335x/beaglebone-black/scripts/Make.defs
#
# Copyright (C) 2018 Petro Karashchenko. All rights reserved.
# Author: Petro Karashchenko <petro.karashchenko@gmail.com>
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/beaglebone-black/scripts/sdram.ld
* boards/arm/am335x/beaglebone-black/scripts/sdram.ld
*
* Copyright (C) 2018 Petro Karashchenko. All rights reserved.
* Author: Petro Karashchenko <petro.karashchenko@gmail.com>
@@ -1,5 +1,5 @@
/************************************************************************************
* boards/beaglebone-black/src/am335x_boot.c
/****************************************************************************
* boards/arm/am335x/beaglebone-black/src/am335x_boot.c
*
* Copyright (C) 2018 Petro Karashchenko. All rights reserved.
* Author: Petro Karashchenko <petro.karashchenko@gmail.com>
@@ -31,11 +31,11 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
************************************************************************************/
****************************************************************************/
/************************************************************************************
/****************************************************************************
* Included Files
************************************************************************************/
****************************************************************************/
#include <nuttx/config.h>
@@ -45,17 +45,17 @@
#include "beaglebone-black.h"
/************************************************************************************
/****************************************************************************
* Pre-processor Definitions
************************************************************************************/
****************************************************************************/
/************************************************************************************
/****************************************************************************
* Private Functions
************************************************************************************/
****************************************************************************/
/************************************************************************************
/****************************************************************************
* Public Functions
************************************************************************************/
****************************************************************************/
/****************************************************************************
* Name: am335x_memory_initialize
@@ -83,15 +83,16 @@ void am335x_memory_initialize(void)
/* SDRAM was initialized by a bootloader in the supported configurations. */
}
/************************************************************************************
/****************************************************************************
* Name: am335x_board_initialize
*
* Description:
* All AM335x architectures must provide the following entry point. This entry
* point is called early in the initialization -- after all memory has been
* configured and mapped but before any devices have been initialized.
* All AM335x architectures must provide the following entry point.
* This entry point is called early in the initialization -- after all
* memory has been configured and mapped but before any devices have been
* initialized.
*
************************************************************************************/
****************************************************************************/
void am335x_board_initialize(void)
{
@@ -106,7 +107,7 @@ void am335x_board_initialize(void)
* Description:
* If CONFIG_BOARD_LATE_INITIALIZE is selected, then an additional
* initialization call will be performed in the boot-up sequence to a
* function called board_late_initialize(). board_late_initialize() will be
* function called board_late_initialize(). board_late_initialize() will be
* called immediately after up_initialize() is called and just before the
* initial application is started. This additional initialization phase
* may be used, for example, to initialize board-specific device drivers.
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/beaglebone-black/src/am335x_buttons.c
* boards/arm/am335x/beaglebone-black/src/am335x_buttons.c
*
* Copyright (C) 2018 Petro Karashchenko. All rights reserved.
* Author: Petro Karashchenko <petro.karashchenko@gmail.com>
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/beaglebone-black/src/am335x_lcd.c
* boards/arm/am335x/beaglebone-black/src/am335x_lcd.c
*
* Copyright (C) 2019 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
@@ -140,13 +140,14 @@ int up_fbinitialize(int display)
#ifdef HAVE_TDA19988
TDA19988_HANDLE handle;
/* Initialize the TDA19988 GPIO interrupt input */
/* Initialize the TDA19988 lower half state instance */
/* Initialize the TDA19988 HDMI controller driver */
/* Allocate a buffer to hold the EDID data */
/* Read raw EDID data from the connected monitor */
/* Select a compatible video mode from the EDID data */
/* Free the allocated EDID buffer */
/* Initialize the TDA19988 GPIO interrupt input
* Initialize the TDA19988 lower half state instance
* Initialize the TDA19988 HDMI controller driver
* Allocate a buffer to hold the EDID data
* Read raw EDID data from the connected monitor
* Select a compatible video mode from the EDID data
* Free the allocated EDID buffer
*/
#warning Missing logic
#else
@@ -163,7 +164,7 @@ int up_fbinitialize(int display)
#endif
/* Convert the selected video mode to a AM335X LCD panel configuration */
am335x_lcd_videomode(videomode, &panel);
am335x_lcd_videomode(videomode, &panel);
/* Initialize the LCD controller using this panel configuration */
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/beaglebone-black/src/am335x_leds.c
* boards/arm/am335x/beaglebone-black/src/am335x_leds.c
*
* Copyright (C) 2018 Petro Karashchenko. All rights reserved.
* Author: Petro Karashchenko <petro.karashchenko@gmail.com>
@@ -203,20 +203,21 @@ void board_autoled_off(int led)
}
#endif
/************************************************************************************
/****************************************************************************
* Name: board_userled_initialize, board_userled, and board_userled_all
*
* Description:
* These interfaces allow user control of the board LEDs.
*
* If CONFIG_ARCH_LEDS is defined, then NuttX will control both on-board LEDs up
* until the completion of boot. The it will continue to control LED1; LED0 is
* available for application use.
* If CONFIG_ARCH_LEDS is defined, then NuttX will control both on-board
* LEDs up until the completion of boot.
* Then it will continue to control LED1; LED0 is available for
* application use.
*
* If CONFIG_ARCH_LEDS is not defined, then both LEDs are available for application
* use.
* If CONFIG_ARCH_LEDS is not defined, then both LEDs are available for
* application use.
*
************************************************************************************/
****************************************************************************/
void board_userled_initialize(void)
{
@@ -1,5 +1,5 @@
/************************************************************************************
* boards/beaglebone-black/src/beaglebone-black.h
/****************************************************************************
* boards/arm/am335x/beaglebone-black/src/beaglebone-black.h
*
* Copyright (C) 2018 Petro Karashchenko. All rights reserved.
* Author: Petro Karashchenko <petro.karashchenko@gmail.com>
@@ -31,14 +31,14 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
************************************************************************************/
****************************************************************************/
#ifndef __BOARDS_ARM_BEAGLEBONE_BLACK_SRC_BEAGLEBONE_BLACK_H
#define __BOARDS_ARM_BEAGLEBONE_BLACK_SRC_BEAGLEBONE_BLACK_H
/************************************************************************************
/****************************************************************************
* Included Files
************************************************************************************/
****************************************************************************/
#include <nuttx/config.h>
#include <nuttx/compiler.h>
@@ -50,11 +50,11 @@
#include "am335x_gpio.h"
/************************************************************************************
/****************************************************************************
* Pre-processor Definitions
************************************************************************************/
****************************************************************************/
/* LCD ******************************************************************************/
/* LCD **********************************************************************/
#define HAVE_LCD 1
#define HAVE_TDA19988 1
@@ -78,18 +78,19 @@
/* LEDs *****************************************************************************/
/* The beaglebone black has four user LEDs; all four can be controlled from software.
* All are tied to ground and, hence, illuminated by driving the output pins to a
* high value:
/* The beaglebone black has four user LEDs; all four can be controlled from
* software.
* All are tied to ground and, hence, illuminated by driving the output pins
* to a high value:
*
* 1. LED0 GPMC_A5 GPMC_A5/GMII2_TXD0/RGMII2_TD0/RMII2_TXD0/GPMC_A21/PR1_MII1_RXD3/
* eQEP1B_IN/GPIO1_21
* 2. LED1 GPMC_A6 GPMC_A6/GMII2_TXCLK/RGMII2_TCLK/MMC2_DAT4/GPMC_A22/PR1_MII1_RXD2/
* eQEP1_INDEX/GPIO1_22
* 3. LED2 GPMC_A7 GPMC_A7/GMII2_RXCLK/RGMII2_RCLK/MMC2_DAT5/GPMC_A23/PR1_MII1_RXD1/
* eQEP1_STROBE/GPIO1_23
* 4. LED3 GPMC_A8 GPMC_A8/GMII2_RXD3/RGMII2_RD3/MMC2_DAT6/GPMC_A24/PR1_MII1_RXD0/
* MCASP0_ACLKX/GPIO1_24
* 1. LED0 GPMC_A5 GPMC_A5/GMII2_TXD0/RGMII2_TD0/RMII2_TXD0/GPMC_A21/
* PR1_MII1_RXD3/eQEP1B_IN/GPIO1_21
* 2. LED1 GPMC_A6 GPMC_A6/GMII2_TXCLK/RGMII2_TCLK/MMC2_DAT4/GPMC_A22/
* PR1_MII1_RXD2/eQEP1_INDEX/GPIO1_22
* 3. LED2 GPMC_A7 GPMC_A7/GMII2_RXCLK/RGMII2_RCLK/MMC2_DAT5/GPMC_A23/
* PR1_MII1_RXD1/eQEP1_STROBE/GPIO1_23
* 4. LED3 GPMC_A8 GPMC_A8/GMII2_RXD3/RGMII2_RD3/MMC2_DAT6/GPMC_A24/
* PR1_MII1_RXD0/MCASP0_ACLKX/GPIO1_24
*/
#define GPIO_LED0 (GPIO_OUTPUT | GPIO_OUTPUT_ZERO | GPIO_PORT1 | GPIO_PIN21 | \
@@ -103,8 +104,8 @@
/* These LEDs are not used by the board port unless CONFIG_ARCH_LEDS is
* defined. In that case, the usage by the board port is defined in
* include/board.h and src/am335x_leds.c. The LEDs are used to encode OS-related
* events as follows:
* include/board.h and src/am335x_leds.c.
* The LEDs are used to encode OS-related events as follows:
*
* SYMBOL Meaning LED state
* LED1 LED3 LED4
@@ -119,24 +120,24 @@
* LED_PANIC The system has crashed N/C N/C 2Hz Flashing
* LED_IDLE MCU is is sleep mode Not used
*
* After booting, LED1 and 3 are not longer used by the system and can be used for
* other purposes by the application (Of course, all LEDs are available to the
* application if CONFIG_ARCH_LEDS is not defined.
* After booting, LED1 and 3 are not longer used by the system and can be
* used for other purposes by the application (Of course, all LEDs are
* available to the application if CONFIG_ARCH_LEDS is not defined.
*/
/************************************************************************************
/****************************************************************************
* Public Types
************************************************************************************/
****************************************************************************/
/************************************************************************************
/****************************************************************************
* Public data
************************************************************************************/
****************************************************************************/
#ifndef __ASSEMBLY__
/************************************************************************************
/****************************************************************************
* Public Functions
************************************************************************************/
****************************************************************************/
/****************************************************************************
* Name: am355x_led_initialize
+1 -1
View File
@@ -1,5 +1,5 @@
############################################################################
# boards/c5471evm/scripts/Make.defs
# boards/arm/c5471/c5471evm/scripts/Make.defs
#
# Copyright (C) 2007, 2008, 2011, 2014, 2017 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gnutt@nuttx.org>
+1 -1
View File
@@ -1,5 +1,5 @@
/************************************************************
* boards/c5471evm/scripts/ld.script
* boards/arm/c5471/c5471evm/scripts/ld.script
*
* Copyright (C) 2007, 2011-2012, 2014 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
+1 -1
View File
@@ -1,5 +1,5 @@
############################################################################
# boards/c5471/c5471evm/src/Makefile
# boards/arm/c5471/c5471/c5471evm/src/Makefile
#
# Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gnutt@nuttx.org>
+1 -1
View File
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/c5471/c5471evm/src/c5471_leds.c
* boards/arm/c5471/c5471evm/src/c5471_leds.c
*
* Copyright (C) 2007-2009, 2015 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
+4 -4
View File
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/spresense/include/board.h
* boards/arm/cxd56xx/spresense/include/board.h
*
* Copyright 2018 Sony Semiconductor Solutions Corporation
*
@@ -33,8 +33,8 @@
*
****************************************************************************/
#ifndef _CONFIGS_SPRESENSE_INCLUDE_BOARD_H
#define _CONFIGS_SPRESENSE_INCLUDE_BOARD_H
#ifndef __BOARDS_ARM_CXD56XX_SPRESENSE_INCLUDE_BOARD_H
#define __BOARDS_ARM_CXD56XX_SPRESENSE_INCLUDE_BOARD_H
/****************************************************************************
* Included Files
@@ -286,4 +286,4 @@ void cxd56_boardinitialize(void);
#endif
#endif /* __ASSEMBLY__ */
#endif /* _CONFIGS_SPRESENSE_INCLUDE_BOARD_H */
#endif /* __BOARDS_ARM_CXD56XX_SPRESENSE_INCLUDE_BOARD_H */
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/spresense/include/cxd56_bmi160.h
* boards/arm/cxd56xx/spresense/include/cxd56_bmi160.h
*
* Copyright 2018 Sony Semiconductor Solutions Corporation
*
@@ -33,8 +33,8 @@
*
****************************************************************************/
#ifndef __BOARD_COMMON_INCLUDE_CXD56_BMI160_H
#define __BOARD_COMMON_INCLUDE_CXD56_BMI160_H
#ifndef __BOARDS_ARM_CXD56XX_SPRESENSE_INCLUDE_CXD56_BMI160_H
#define __BOARDS_ARM_CXD56XX_SPRESENSE_INCLUDE_CXD56_BMI160_H
/****************************************************************************
* Included Files
@@ -81,4 +81,4 @@ int board_bmi160_initialize(int bus);
#endif
#endif /* __ASSEMBLY__ */
#endif /* __BOARD_COMMON_INCLUDE_CXD56_BMI160_H */
#endif /* __BOARDS_ARM_CXD56XX_SPRESENSE_INCLUDE_CXD56_BMI160_H */
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/spresense/include/cxd56_charger.h
* boards/arm/cxd56xx/spresense/include/cxd56_charger.h
*
* Copyright 2018 Sony Semiconductor Solutions Corporation
*
@@ -33,8 +33,8 @@
*
****************************************************************************/
#ifndef __BOARD_COMMON_INCLUDE_CXD56_CHARGER_H
#define __BOARD_COMMON_INCLUDE_CXD56_CHARGER_H
#ifndef __BOARDS_ARM_CXD56XX_SPRESENSE_INCLUDE_CXD56_CHARGER_H
#define __BOARDS_ARM_CXD56XX_SPRESENSE_INCLUDE_CXD56_CHARGER_H
/****************************************************************************
* Included Files
@@ -91,4 +91,4 @@ int board_charger_uninitialize(FAR const char *devpath);
#endif
#endif /* __ASSEMBLY__ */
#endif /* __BOARD_COMMON_INCLUDE_CXD56_CHARGER_H */
#endif /* __BOARDS_ARM_CXD56XX_SPRESENSE_INCLUDE_CXD56_CHARGER_H */
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/spresense/include/cxd56_clock.h
* boards/arm/cxd56xx/spresense/include/cxd56_clock.h
*
* Copyright 2019 Sony Semiconductor Solutions Corporation
*
@@ -33,8 +33,8 @@
*
****************************************************************************/
#ifndef __BOARD_COMMON_INCLUDE_CXD56_CLOCK_H
#define __BOARD_COMMON_INCLUDE_CXD56_CLOCK_H
#ifndef __BOARDS_ARM_CXD56XX_SPRESENSE_INCLUDE_CXD56_CLOCK_H
#define __BOARDS_ARM_CXD56XX_SPRESENSE_INCLUDE_CXD56_CLOCK_H
/****************************************************************************
* Included Files
@@ -83,4 +83,4 @@ void board_clock_enable(void);
}
#endif
#endif /* __BOARD_COMMON_INCLUDE_CXD56_CLOCK_H */
#endif /* __BOARDS_ARM_CXD56XX_SPRESENSE_INCLUDE_CXD56_CLOCK_H */
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/spresense/include/cxd56_flash.h
* boards/arm/cxd56xx/spresense/include/cxd56_flash.h
*
* Copyright 2018 Sony Semiconductor Solutions Corporation
*
@@ -33,8 +33,8 @@
*
****************************************************************************/
#ifndef __BOARD_COMMON_INCLUDE_CXD56_FLASH_H
#define __BOARD_COMMON_INCLUDE_CXD56_FLASH_H
#ifndef __BOARDS_ARM_CXD56XX_SPRESENSE_INCLUDE_CXD56_FLASH_H
#define __BOARDS_ARM_CXD56XX_SPRESENSE_INCLUDE_CXD56_FLASH_H
/****************************************************************************
* Included Files
@@ -83,4 +83,4 @@ int board_flash_initialize(void);
#endif
#endif /* __ASSEMBLY__ */
#endif /* __BOARD_COMMON_INCLUDE_CXD56_FLASH_H */
#endif /* __BOARDS_ARM_CXD56XX_SPRESENSE_INCLUDE_CXD56_FLASH_H */
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/spresense/include/cxd56_gauge.h
* boards/arm/cxd56xx/spresense/include/cxd56_gauge.h
*
* Copyright 2018 Sony Semiconductor Solutions Corporation
*
@@ -33,8 +33,8 @@
*
****************************************************************************/
#ifndef __BOARD_COMMON_INCLUDE_CXD56_GAUGE_H
#define __BOARD_COMMON_INCLUDE_CXD56_GAUGE_H
#ifndef __BOARDS_ARM_CXD56XX_SPRESENSE_INCLUDE_CXD56_GAUGE_H
#define __BOARDS_ARM_CXD56XX_SPRESENSE_INCLUDE_CXD56_GAUGE_H
/****************************************************************************
* Included Files
@@ -91,4 +91,4 @@ int board_gauge_uninitialize(FAR const char *devpath);
#endif
#endif /* __ASSEMBLY__ */
#endif /* __BOARD_COMMON_INCLUDE_CXD56_GAUGE_H */
#endif /* __BOARDS_ARM_CXD56XX_SPRESENSE_INCLUDE_CXD56_GAUGE_H */
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/spresense/include/cxd56_gpioif.h
* boards/arm/cxd56xx/spresense/include/cxd56_gpioif.h
*
* Copyright 2018 Sony Semiconductor Solutions Corporation
*
@@ -33,8 +33,8 @@
*
****************************************************************************/
#ifndef __BOARD_COMMON_INCLUDE_CXD56_GPIOIF_H
#define __BOARD_COMMON_INCLUDE_CXD56_GPIOIF_H
#ifndef __BOARDS_ARM_CXD56XX_SPRESENSE_INCLUDE_CXD56_GPIOIF_H
#define __BOARDS_ARM_CXD56XX_SPRESENSE_INCLUDE_CXD56_GPIOIF_H
/****************************************************************************
* Included Files
@@ -71,8 +71,7 @@ extern "C"
#define PIN_PULLDOWN (2) /**< Internal Weak Pull Down */
#define PIN_BUSKEEPER (3) /**< Internal Bus-Keeper */
/*
* GPIO Interrupt Setting
/* GPIO Interrupt Setting
* GPIO interrupt level and edge trigger types
*/
@@ -88,8 +87,7 @@ extern "C"
* Public Function Prototypes
****************************************************************************/
/*
* GPIO Configure
/* GPIO Configure
*
* [in] pin: Pin number
* [in] mode: Function mode 0=GPIO
@@ -107,8 +105,7 @@ extern "C"
int board_gpio_config(uint32_t pin, int mode, bool input, bool drive,
int pull);
/*
* GPIO Status
/* GPIO Status
*
* [in] pin: Pin number
* [out] input: Input Enable true=enable, false=disable
@@ -126,8 +123,7 @@ int board_gpio_config(uint32_t pin, int mode, bool input, bool drive,
int board_gpio_status(uint32_t pin, bool *input, bool *output, bool *drive,
int *pull);
/*
* GPIO Write
/* GPIO Write
*
* [in] pin: Pin number
* [in] value: Write Value 0<high, 0=low, 0>hiz
@@ -135,8 +131,7 @@ int board_gpio_status(uint32_t pin, bool *input, bool *output, bool *drive,
void board_gpio_write(uint32_t pin, int value);
/*
* GPIO Read
/* GPIO Read
*
* param: [in] pin: Pin number
*
@@ -145,8 +140,7 @@ void board_gpio_write(uint32_t pin, int value);
int board_gpio_read(uint32_t pin);
/*
* GPIO Interrupt Configure
/* GPIO Interrupt Configure
*
* [in] pin: Pin number
* [in] mode: Interrupt polarity
@@ -163,8 +157,7 @@ int board_gpio_read(uint32_t pin);
int board_gpio_intconfig(uint32_t pin, int mode, bool filter, xcpt_t isr);
/*
* GPIO Interrupt Configure
/* GPIO Interrupt Configure
*
* [in] pin: Pin number
* [out] mode: Interrupt polarity
@@ -182,8 +175,7 @@ int board_gpio_intconfig(uint32_t pin, int mode, bool filter, xcpt_t isr);
int board_gpio_intstatus(uint32_t pin, int *mode,
bool *filter, bool *enabled);
/*
* GPIO Interrupt Enable/Disable
/* GPIO Interrupt Enable/Disable
*
* [in] pin: Pin number
* [in] enable: Interrupt true=enable, false=disable
@@ -199,4 +191,4 @@ int board_gpio_int(uint32_t pin, bool enable);
#endif
#endif /* __ASSEMBLY__ */
#endif /* __BOARD_COMMON_INCLUDE_CXD56_GPIOIF_H */
#endif /* __BOARDS_ARM_CXD56XX_SPRESENSE_INCLUDE_CXD56_GPIOIF_H */
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/spresense/include/cxd56_gs2200m.h
* boards/arm/cxd56xx/spresense/include/cxd56_gs2200m.h
*
* Copyright 2019 Sony Home Entertainment & Sound Products Inc.
* Author: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
@@ -37,7 +37,6 @@
#ifndef __BOARDS_ARM_SPRESENSE_INCLUDE_CXD56_GS2200M_H
#define __BOARDS_ARM_SPRESENSE_INCLUDE_CXD56_GS2200M_H
/****************************************************************************
* Included Files
****************************************************************************/
@@ -77,7 +76,6 @@ extern "C"
int board_gs2200m_initialize(FAR const char *devpath, int bus);
#undef EXTERN
#if defined(__cplusplus)
}
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/spresense/include/cxd56_i2cdev.h
* boards/arm/cxd56xx/spresense/include/cxd56_i2cdev.h
*
* Copyright 2018 Sony Semiconductor Solutions Corporation
*
@@ -33,8 +33,8 @@
*
****************************************************************************/
#ifndef __BOARD_COMMON_INCLUDE_CXD56_I2CDEV_H
#define __BOARD_COMMON_INCLUDE_CXD56_I2CDEV_H
#ifndef __BOARDS_ARM_CXD56XX_SPRESENSE_INCLUDE_CXD56_I2CDEV_H
#define __BOARDS_ARM_CXD56XX_SPRESENSE_INCLUDE_CXD56_I2CDEV_H
/****************************************************************************
* Included Files
@@ -83,4 +83,4 @@ int board_i2cdev_initialize(int bus);
#endif
#endif /* __ASSEMBLY__ */
#endif /* __BOARD_COMMON_INCLUDE_CXD56_I2CDEV_H */
#endif /* __BOARDS_ARM_CXD56XX_SPRESENSE_INCLUDE_CXD56_I2CDEV_H */
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/spresense/include/cxd56_power.h
* boards/arm/cxd56xx/spresense/include/cxd56_power.h
*
* Copyright 2018 Sony Semiconductor Solutions Corporation
*
@@ -33,8 +33,8 @@
*
****************************************************************************/
#ifndef __BOARD_COMMON_INCLUDE_CXD56_POWER_H
#define __BOARD_COMMON_INCLUDE_CXD56_POWER_H
#ifndef __BOARDS_ARM_CXD56XX_SPRESENSE_INCLUDE_CXD56_POWER_H
#define __BOARDS_ARM_CXD56XX_SPRESENSE_INCLUDE_CXD56_POWER_H
/****************************************************************************
* Included Files
@@ -199,4 +199,4 @@ int board_lna_power_control(bool en);
#endif
#endif /* __ASSEMBLY__ */
#endif /* __BOARD_COMMON_INCLUDE_CXD56_POWER_H */
#endif /* __BOARDS_ARM_CXD56XX_SPRESENSE_INCLUDE_CXD56_POWER_H */
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/spresense/include/cxd56_pwm.h
* boards/arm/cxd56xx/spresense/include/cxd56_pwm.h
*
* Copyright 2018 Sony Semiconductor Solutions Corporation
*
@@ -33,8 +33,8 @@
*
****************************************************************************/
#ifndef __BOARD_COMMON_INCLUDE_CXD56_PWM_H
#define __BOARD_COMMON_INCLUDE_CXD56_PWM_H
#ifndef __BOARDS_ARM_CXD56XX_SPRESENSE_INCLUDE_CXD56_PWM_H
#define __BOARDS_ARM_CXD56XX_SPRESENSE_INCLUDE_CXD56_PWM_H
/****************************************************************************
* Included Files
@@ -81,4 +81,4 @@ int board_pwm_setup(void);
#endif
#endif /* __ASSEMBLY__ */
#endif /* __BOARD_COMMON_INCLUDE_CXD56_PWM_H */
#endif /* __BOARDS_ARM_CXD56XX_SPRESENSE_INCLUDE_CXD56_PWM_H */
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/spresense/include/cxd56_sdcard.h
* boards/arm/cxd56xx/spresense/include/cxd56_sdcard.h
*
* Copyright 2018 Sony Semiconductor Solutions Corporation
*
@@ -33,8 +33,8 @@
*
****************************************************************************/
#ifndef __BOARD_COMMON_INCLUDE_CXD56_SDCARD_H
#define __BOARD_COMMON_INCLUDE_CXD56_SDCARD_H
#ifndef __BOARDS_ARM_CXD56XX_SPRESENSE_INCLUDE_CXD56_SDCARD_H
#define __BOARDS_ARM_CXD56XX_SPRESENSE_INCLUDE_CXD56_SDCARD_H
/****************************************************************************
* Included Files
@@ -151,4 +151,4 @@ void board_sdcard_set_low_voltage(void);
#endif
#endif /* __ASSEMBLY__ */
#endif /* __BOARD_COMMON_INCLUDE_CXD56_SDCARD_H */
#endif /* __BOARDS_ARM_CXD56XX_SPRESENSE_INCLUDE_CXD56_SDCARD_H */
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/spresense/include/cxd56_wdt.h
* boards/arm/cxd56xx/spresense/include/cxd56_wdt.h
*
* Copyright 2018 Sony Semiconductor Solutions Corporation
*
@@ -33,8 +33,8 @@
*
****************************************************************************/
#ifndef __BOARD_COMMON_INCLUDE_CXD56_WDT_H
#define __BOARD_COMMON_INCLUDE_CXD56_WDT_H
#ifndef __BOARDS_ARM_CXD56XX_SPRESENSE_INCLUDE_CXD56_WDT_H
#define __BOARDS_ARM_CXD56XX_SPRESENSE_INCLUDE_CXD56_WDT_H
/****************************************************************************
* Included Files
@@ -81,4 +81,4 @@ int cxd56_wdt_initialize(void);
#endif
#endif /* __ASSEMBLY__ */
#endif /* __BOARD_COMMON_INCLUDE_CXD56_WDT_H */
#endif /* __BOARDS_ARM_CXD56XX_SPRESENSE_INCLUDE_CXD56_WDT_H */
@@ -1,5 +1,5 @@
############################################################################
# boards/spresense/nsh/Make.defs
# boards/arm/cxd56xx/spresense/nsh/Make.defs
#
# Copyright (C) 2014 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gnutt@nuttx.org>
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/spresense/scripts/ramconfig.ld
* boards/arm/cxd56xx/spresense/scripts/ramconfig.ld
*
* Copyright 2018 Sony Semiconductor Solutions Corporation
*
+1 -1
View File
@@ -1,5 +1,5 @@
############################################################################
# boards/spresense/src/Makefile
# boards/arm/cxd56x/spresense/src/Makefile
#
# Copyright 2018 Sony Semiconductor Solutions Corporation
#
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/spresense/src/cxd56_appinit.c
* boards/arm/cxd56xx/spresense/src/cxd56_appinit.c
*
* Copyright 2018 Sony Semiconductor Solutions Corporation
*
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/spresense/src/cxd56_bmi160_i2c.c
* boards/arm/cxd56xx/spresense/src/cxd56_bmi160_i2c.c
*
* Copyright 2018 Sony Semiconductor Solutions Corporation
*
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/spresense/src/cxd56_boot.c
* boards/arm/cxd56xx/spresense/src/cxd56_boot.c
*
* Copyright 2018 Sony Semiconductor Solutions Corporation
*
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/spresense/src/cxd56_bringup.c
* boards/arm/cxd56xx/spresense/src/cxd56_bringup.c
*
* Copyright 2018 Sony Semiconductor Solutions Corporation
*
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/spresense/src/cxd56_buttons.c
* boards/arm/cxd56xx/spresense/src/cxd56_buttons.c
*
* Copyright 2018 Sony Semiconductor Solutions Corporation
*
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/spresense/src/cxd56_charger.c
* boards/arm/cxd56xx/spresense/src/cxd56_charger.c
*
* Copyright 2018 Sony Semiconductor Solutions Corporation
*
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/spresense/src/cxd56_clock.c
* boards/arm/cxd56xx/spresense/src/cxd56_clock.c
*
* Copyright 2019 Sony Semiconductor Solutions Corporation
*
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/spresense/src/cxd56_composite.c
* boards/arm/cxd56xx/spresense/src/cxd56_composite.c
*
* Copyright (C) 2016, 2017 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
@@ -209,6 +209,7 @@ FAR void *board_composite_connect(int port, int configid)
int strbase = COMPOSITE_NSTRIDS;
/* Configure the mass storage device device */
/* Ask the usbmsc driver to fill in the constants we didn't
* know here.
*/
@@ -216,6 +217,7 @@ FAR void *board_composite_connect(int port, int configid)
usbmsc_get_composite_devdesc(&dev[0]);
/* Overwrite and correct some values... */
/* The callback functions for the USBMSC class */
dev[0].classobject = board_mscclassobject;
@@ -249,6 +251,7 @@ FAR void *board_composite_connect(int port, int configid)
cdcacm_get_composite_devdesc(&dev[1]);
/* Overwrite and correct some values... */
/* The callback functions for the CDC/ACM class */
dev[1].classobject = cdcacm_classobject;
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/spresense/src/cxd56_flash.c
* boards/arm/cxd56xx/spresense/src/cxd56_flash.c
*
* Copyright 2018 Sony Semiconductor Solutions Corporation
*
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/spresense/src/cxd56_gauge.c
* boards/arm/cxd56xx/spresense/src/cxd56_gauge.c
*
* Copyright 2018 Sony Semiconductor Solutions Corporation
*
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/spresense/src/cxd56_gpioif.c
* boards/arm/cxd56xx/spresense/src/cxd56_gpioif.c
*
* Copyright 2018 Sony Semiconductor Solutions Corporation
*

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