Merged in alinjerpelea/nuttx (pull request #971)

codestyle fixes

* misoc: codestyle fixes

     After the board restructuration is time for codestyle cleanup

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

* or1k: codestyle fixes

     After the board restructuration is time for codestyle cleanup

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

* renesas: codestyle fixes

     After the board restructuration is time for codestyle cleanup

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

* risc-v: codestyle fixes

     After the board restructuration is time for codestyle cleanup

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

* sim: codestyle fixes

     After the board restructuration is time for codestyle cleanup

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

* x86: codestyle fixes

     After the board restructuration is time for codestyle cleanup

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

* xtensa: codestyle fixes

     After the board restructuration is time for codestyle cleanup

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

* z16: codestyle fixes

     After the board restructuration is time for codestyle cleanup

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

* z80: 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-09 13:22:39 +00:00
committed by Gregory Nutt
parent c300f27130
commit a06033df64
135 changed files with 620 additions and 555 deletions
@@ -107,7 +107,8 @@ Other Versions
If you use any version of ZDS-II or if you install ZDS-II at any location
other than the default location, you will have to modify
arch/z16/src/z16f/Kconfig and boards/z16f2800100zcog/scripts/Make.defs.
arch/z16/src/z16f/Kconfig and
boards/z16/z16f2811/z16f2800100zcog/scripts/Make.defs.
Simply edit that file, changing 5.0.1 to whatever.
Patches
@@ -130,8 +131,8 @@ attempt to recover the parameters from the stack and a failure then follows.
This bug prevents the use of NSH with the ZNEO. However, a patch has been
developed that works around the problem. That patch can be found at
boards/z16f2800100zcog/tools/zneo-zdsii-5_0_1-variadic-func-fix.patch. In
that directory is also a bash script that will apply that patch for you.
boards/z16/z16f2811/z16f2800100zcog/tools/zneo-zdsii-5_0_1-variadic-func-fix.patch.
In that directory is also a bash script that will apply that patch for you.
The patch would be applied when NuttX is configured as follows:
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/z16/z16f2800100zcog/board.h
* boards/z16/z16f2811/z16f2800100zcog/board.h
*
* Copyright (C) 2008, 2014 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
@@ -33,8 +33,8 @@
*
****************************************************************************/
#ifndef __BOARDS_Z16_Z16F2800100ZCOG_INCLUDE_BOARD_H
#define __BOARDS_Z16_Z16F2800100ZCOG_INCLUDE_BOARD_H
#ifndef __BOARDS_Z16_Z16F2811_Z16F2800100ZCOG_INCLUDE_BOARD_H
#define __BOARDS_Z16_Z16F2811_Z16F2800100ZCOG_INCLUDE_BOARD_H
/****************************************************************************
* Included Files
@@ -112,7 +112,8 @@
#undef EXTERN
#if defined(__cplusplus)
#define EXTERN extern "C"
extern "C" {
extern "C"
{
#else
#define EXTERN extern
#endif
@@ -122,4 +123,4 @@ extern "C" {
}
#endif
#endif /* __BOARDS_Z16_Z16F2800100ZCOG_INCLUDE_BOARD_H */
#endif /* __BOARDS_Z16_Z16F2811_Z16F2800100ZCOG_INCLUDE_BOARD_H */
@@ -1,5 +1,5 @@
############################################################################
# boards/z16f2800100zcog/scripts/Make.defs
# boards/z16/z16f2811/z16f2800100zcog/scripts/Make.defs
#
# Copyright (C) 2014, 2017 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gnutt@nuttx.org>
@@ -1,5 +1,5 @@
/****************************************************************************/
/* boards/z16/z16f2800100zcog/scripts/z16f2800100zcog.linkcmd */
/* boards/z16/z16f2811/z16f2800100zcog/scripts/z16f2800100zcog.linkcmd */
/* */
/* Copyright (C) 2008, 2014, 2017 Gregory Nutt. All rights reserved. */
/* Author: Gregory Nutt <gnutt@nuttx.org> */
@@ -1,5 +1,5 @@
############################################################################
# boards/z16f2800100zcog/Makefile
# boards/z16/z16f2811/z16f2800100zcog/Makefile
#
# Copyright (C) 2008, 2012 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gnutt@nuttx.org>
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/z16/z16f2800100zcog/src/z16f_boot.c
* boards/z16/z16f2811/z16f2800100zcog/src/z16f_boot.c
*
* Copyright (C) 2008, 2014 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
@@ -67,7 +67,7 @@ static void z16f_gpioinit(void)
putreg8(getreg8(Z16F_GPIOA_DD) | 0x87, Z16F_GPIOA_DD);
putreg8(getreg8(Z16F_GPIOA_OUT) | 0x07, Z16F_GPIOA_OUT);
putreg8(getreg8(Z16F_GPIOA_DD) & 0xF8, Z16F_GPIOA_DD);
putreg8(getreg8(Z16F_GPIOA_DD) & 0xf8, Z16F_GPIOA_DD);
/* Configure rate switch port */
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/z16/z16f2800100zcog/z16f_leds.c
* boards/z16/z16f2811/z16f2800100zcog/z16f_leds.c
*
* Copyright (C) 2008, 2015 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
@@ -78,7 +78,7 @@ void board_autoled_initialize(void)
/* The following is performed up_board_initialize() as well */
putreg8(getreg8(Z16F_GPIOA_OUT) | 0x07, Z16F_GPIOA_OUT);
putreg8(getreg8(Z16F_GPIOA_DD) & 0xF8, Z16F_GPIOA_DD);
putreg8(getreg8(Z16F_GPIOA_DD) & 0xf8, Z16F_GPIOA_DD);
}
/****************************************************************************
@@ -1,6 +1,6 @@
#!/bin/sh
############################################################################
# boards/z16f2800100zcog/tools/dopatch.sh
# boards/z16/z16f2811/z16f2800100zcog/tools/dopatch.sh
#
# Copyright (C) 2014 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gnutt@nuttx.org>