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
+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
*
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/spresense/src/cxd56_gs2200m.c
* boards/arm/cxd56xx/spresense/src/cxd56_gs2200m.c
*
* Copyright 2019 Sony Home Entertainment & Sound Products Inc.
* Author: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
@@ -109,6 +109,7 @@ static void gs2200m_irq_enable(void)
if (1 == _enable_count)
{
/* NOTE: This would happen if we received an event */
return;
}
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/spresense/src/cxd56_i2cdev.c
* boards/arm/cxd56xx/spresense/src/cxd56_i2cdev.c
*
* Copyright 2018 Sony Semiconductor Solutions Corporation
*
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/spresense/src/cxd56_ili9340.c
* boards/arm/cxd56xx/spresense/src/cxd56_ili9340.c
*
* Copyright 2018 Sony Semiconductor Solutions Corporation
*
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/spresense/src/cxd56_ioctl.c
* boards/arm/cxd56xx/spresense/src/cxd56_ioctl.c
*
* Copyright 2018 Sony Semiconductor Solutions Corporation
*
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/spresense/src/cxd56_leds.c
* boards/arm/cxd56xx/spresense/src/cxd56_leds.c
*
* Copyright (C) 2011-2013, 2015 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
@@ -116,10 +116,10 @@ static inline void led_setbits(unsigned int setbits)
void board_autoled_initialize(void)
{
cxd56_gpio_config(GPIO_LED1,false);
cxd56_gpio_config(GPIO_LED2,false);
cxd56_gpio_config(GPIO_LED3,false);
cxd56_gpio_config(GPIO_LED4,false);
cxd56_gpio_config(GPIO_LED1, false);
cxd56_gpio_config(GPIO_LED2, false);
cxd56_gpio_config(GPIO_LED3, false);
cxd56_gpio_config(GPIO_LED4, false);
}
/****************************************************************************
@@ -128,7 +128,8 @@ void board_autoled_initialize(void)
void board_autoled_on(int led)
{
led_clrbits(BOARD_LED1_BIT | BOARD_LED2_BIT | BOARD_LED3_BIT | BOARD_LED4_BIT);
led_clrbits(BOARD_LED1_BIT | BOARD_LED2_BIT |
BOARD_LED3_BIT | BOARD_LED4_BIT);
led_setbits(led);
}
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/spresense/src/cxd56_lpm013m091a.c
* boards/arm/cxd56xx/spresense/src/cxd56_lpm013m091a.c
*
* Copyright 2018 Sony Semiconductor Solutions Corporation
*
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/spresense/src/spresense_main.c
* boards/arm/cxd56xx/spresense/src/spresense_main.c
*
* Copyright 2018 Sony Semiconductor Solutions Corporation
*
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/spresense/src/cxd56_netinit.c
* boards/arm/cxd56xx/spresense/src/cxd56_netinit.c
*
* Copyright 2019 Sony Home Entertainment & Sound Products Inc.
* Author: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/spresense/src/cxd56_ostest.c
* boards/arm/cxd56xx/spresense/src/cxd56_ostest.c
*
* Copyright (C) 2019 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/spresense/src/cxd56_power.c
* boards/arm/cxd56xx/spresense/src/cxd56_power.c
*
* Copyright 2018 Sony Semiconductor Solutions Corporation
*
+1 -1
View File
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/spresense/src/cxd56_pwm.c
* boards/arm/cxd56xx/spresense/src/cxd56_pwm.c
*
* Copyright 2018 Sony Semiconductor Solutions Corporation
*
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/spresense/src/cxd56_sdcard.c
* boards/arm/cxd56xx/spresense/src/cxd56_sdcard.c
*
* Copyright 2018 Sony Semiconductor Solutions Corporation
*
+29 -20
View File
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/spresense/src/cxd56_spi.c
* boards/arm/cxd56xx/spresense/src/cxd56_spi.c
*
* Copyright 2018 Sony Semiconductor Solutions Corporation
*
@@ -67,31 +67,34 @@
* Name: cxd56_spi0/3/4/5select and cxd56_spi0/3/4/5status
*
* Description:
* The external functions, cxd56_spi1/2/3select and cxd56_spi1/2/3status must be
* provided by board-specific logic. They are implementations of the select
* and status methods of the SPI interface defined by struct spi_ops_s (see
* include/nuttx/spi/spi.h). All other methods (including cxd56_spibus_initialize())
* are provided by common CXD56 logic. To use this common SPI logic on your
* board:
* The external functions, cxd56_spi1/2/3select and cxd56_spi1/2/3 status
* must be provided by board-specific logic.
* They are implementations of the select and status methods of the SPI
* interface defined by struct spi_ops_s (see include/nuttx/spi/spi.h).
* All other methods (including cxd56_spibus_initialize()) are provided by
* common CXD56 logic. To use this common SPI logic on your board:
*
* 1. Provide logic in cxd56_boardinitialize() to configure SPI chip select
* pins.
* 2. Provide cxd56_spi0/3/4/5select() and cxd56_spi0/3/4/5status() functions in your
* board-specific logic. These functions will perform chip selection and
* status operations using GPIOs in the way your board is configured.
* 2. Provide cxd56_spi0/3/4/5select() and cxd56_spi0/3/4/5status()
* functions in your board-specific logic.
* These functions will perform chip selection and status operations
* using GPIOs in the way your board is configured.
* 3. Add a calls to cxd56_spibus_initialize() in your low level application
* initialization logic
* 4. The handle returned by cxd56_spibus_initialize() may then be used to bind the
* SPI driver to higher level logic (e.g., calling
* 4. The handle returned by cxd56_spibus_initialize() may then be used to
* bind the SPI driver to higher level logic (e.g., calling
* mmcsd_spislotinitialize(), for example, will bind the SPI driver to
* the SPI MMC/SD driver).
*
****************************************************************************/
#ifdef CONFIG_CXD56_SPI0
void cxd56_spi0select(FAR struct spi_dev_s *dev, uint32_t devid, bool selected)
void cxd56_spi0select(FAR struct spi_dev_s *dev, uint32_t devid,
bool selected)
{
spiinfo("devid: %d CS: %s\n", (int)devid, selected ? "assert" : "de-assert");
spiinfo("devid: %d CS: %s\n", (int)devid,
selected ? "assert" : "de-assert");
}
uint8_t cxd56_spi0status(FAR struct spi_dev_s *dev, uint32_t devid)
@@ -101,9 +104,11 @@ uint8_t cxd56_spi0status(FAR struct spi_dev_s *dev, uint32_t devid)
#endif
#ifdef CONFIG_CXD56_SPI3
void cxd56_spi3select(FAR struct spi_dev_s *dev, uint32_t devid, bool selected)
void cxd56_spi3select(FAR struct spi_dev_s *dev, uint32_t devid,
bool selected)
{
spiinfo("devid: %d CS: %s\n", (int)devid, selected ? "assert" : "de-assert");
spiinfo("devid: %d CS: %s\n", (int)devid,
selected ? "assert" : "de-assert");
/* Disable clock gating (clock enable) */
@@ -130,9 +135,11 @@ uint8_t cxd56_spi3status(FAR struct spi_dev_s *dev, uint32_t devid)
#endif
#ifdef CONFIG_CXD56_SPI4
void cxd56_spi4select(FAR struct spi_dev_s *dev, uint32_t devid, bool selected)
void cxd56_spi4select(FAR struct spi_dev_s *dev, uint32_t devid,
bool selected)
{
spiinfo("devid: %d CS: %s\n", (int)devid, selected ? "assert" : "de-assert");
spiinfo("devid: %d CS: %s\n", (int)devid,
selected ? "assert" : "de-assert");
}
uint8_t cxd56_spi4status(FAR struct spi_dev_s *dev, uint32_t devid)
@@ -142,9 +149,11 @@ uint8_t cxd56_spi4status(FAR struct spi_dev_s *dev, uint32_t devid)
#endif
#ifdef CONFIG_CXD56_SPI5
void cxd56_spi5select(FAR struct spi_dev_s *dev, uint32_t devid, bool selected)
void cxd56_spi5select(FAR struct spi_dev_s *dev, uint32_t devid,
bool selected)
{
spiinfo("devid: %d CS: %s\n", (int)devid, selected ? "assert" : "de-assert");
spiinfo("devid: %d CS: %s\n", (int)devid,
selected ? "assert" : "de-assert");
}
uint8_t cxd56_spi5status(FAR struct spi_dev_s *dev, uint32_t devid)
+1 -1
View File
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/spresense/src/cxd56_uid.c
* boards/arm/cxd56xx/spresense/src/cxd56_uid.c
*
* Copyright 2018 Sony Semiconductor Solutions Corporation
*
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/spresense/src/cxd56_usbmsc.c
* boards/arm/cxd56xx/spresense/src/cxd56_usbmsc.c
*
* Copyright (C) 2009, 2011, 2013, 2016 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
@@ -68,9 +68,10 @@
int board_usbmsc_initialize(int port)
{
/* If system/usbmsc is built as an NSH command, then SD slot should
* already have been initialized in board_app_initialize() (see stm32_appinit.c).
* already have been initialized in board_app_initialize()
* (see stm32_appinit.c).
* In this case, there is nothing further to be done here.
*/
return OK;
return OK;
}
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/spresense/src/cxd56_userleds.c
* boards/arm/cxd56xx/spresense/src/cxd56_userleds.c
*
* Copyright 2018 Sony Semiconductor Solutions Corporation
*
+4 -4
View File
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/spresense/src/spresense.h
* boards/arm/cxd56xx/spresense/src/spresense.h
*
* Copyright (C) 2019 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
@@ -33,8 +33,8 @@
*
****************************************************************************/
#ifndef __BOARDS_ARM_SPRESENSE_SRC_SPRESENSE_H
#define __BOARDS_ARM_SPRESENSE_SRC_SPRESENSE_H
#ifndef __BOARDS_ARM_CXD56XX_SPRESENSE_SRC_SPRESENSE_H
#define __BOARDS_ARM_CXD56XX_SPRESENSE_SRC_SPRESENSE_H
/****************************************************************************
* Included Files
@@ -77,4 +77,4 @@
int cxd56_bringup(void);
#endif /* __ASSEMBLY__ */
#endif /* __BOARDS_ARM_SPRESENSE_SRC_SPRESENSE_H */
#endif /* __BOARDS_ARM_CXD56XX_SPRESENSE_SRC_SPRESENSE_H */