mirror of
https://github.com/apache/nuttx.git
synced 2026-06-01 16:59:28 +08:00
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:
committed by
Gregory Nutt
parent
c300f27130
commit
a06033df64
@@ -1,4 +1,4 @@
|
||||
boards/skp16c26/README.txt
|
||||
boards/renesas/m32262f8/skp16c26/README.txt
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
1. The buildroot package can be used to build an M16C toolchain. The toolchain
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/************************************************************************************
|
||||
* boards/renesas/skp16c26/include/board.h
|
||||
/****************************************************************************
|
||||
* boards/renesas/m32262f8/skp16c26/include/board.h
|
||||
* arch/board/board.h
|
||||
*
|
||||
* Copyright (C) 2009 Gregory Nutt. All rights reserved.
|
||||
@@ -32,25 +32,26 @@
|
||||
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
************************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef __BOARDS_RENESAS_SKP16C26_INCLUDE_BOARD_H
|
||||
#define __BOARDS_RENESAS_SKP16C26_INCLUDE_BOARD_H
|
||||
#ifndef __BOARDS_RENESAS_M32262F8_SKP16C26_INCLUDE_BOARD_H
|
||||
#define __BOARDS_RENESAS_M32262F8_SKP16C26_INCLUDE_BOARD_H
|
||||
|
||||
/************************************************************************************
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
************************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
/************************************************************************************
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
************************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
/* User configuration checks ********************************************************/
|
||||
/* User configuration checks ************************************************/
|
||||
|
||||
/* According to SKP16C26 documention, "SIO/UART1 pins are used for communication
|
||||
* between the SKP16C26 board kernel and KD30 Debugger through the ICD. Do not
|
||||
* connect these pins to any other circuit, as UART1 cannot be used in the user
|
||||
* program. For details, please see ICD (RTA-FoUSB-MON) User Manual on Target M16C
|
||||
/* According to SKP16C26 documention, "SIO/UART1 pins are used for
|
||||
* communication between the SKP16C26 board kernel and KD30 Debugger through
|
||||
* the ICD. Do not connect these pins to any other circuit, as UART1 cannot
|
||||
* be used in the user program.
|
||||
* For details, please see ICD (RTA-FoUSB-MON) User Manual on Target M16C
|
||||
* ROM Monitor Resources or related ICD application notes."
|
||||
*
|
||||
* However, the schematic appears to show that SIO/UART2 is actual connection.
|
||||
@@ -61,13 +62,13 @@
|
||||
# error "UART1/2 should not be used on SKP16C26"
|
||||
#endif
|
||||
|
||||
/* Hardware defintitions ************************************************************/
|
||||
/* Hardware defintitions ****************************************************/
|
||||
|
||||
/* Xin Freq */
|
||||
|
||||
#define M16C_XIN_FREQ 20000000 /* 20MHz */
|
||||
|
||||
/* Interrupt Priority Levels ********************************************************/
|
||||
/* Interrupt Priority Levels ************************************************/
|
||||
|
||||
/* IPL settings */
|
||||
|
||||
@@ -117,18 +118,18 @@
|
||||
|
||||
/* *=FLASHING **=if INIRQ, SIGNAL, or ASSERTION will be flashing */
|
||||
|
||||
/* BUTTON definitions **************************************************************/
|
||||
/* BUTTON definitions *******************************************************/
|
||||
|
||||
#define SW1_PRESSED 0x01 /* Bit 0: 1=SW1 pressed */
|
||||
#define SW2_PRESSED 0x02 /* Bit 1: 1=SW2 pressed */
|
||||
#define SW3_PRESSED 0x04 /* Bit 2: 1=SW3 pressed */
|
||||
|
||||
/************************************************************************************
|
||||
/****************************************************************************
|
||||
* Inline Functions
|
||||
************************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
|
||||
#endif
|
||||
|
||||
#endif /* __BOARDS_RENESAS_SKP16C26_INCLUDE_BOARD_H */
|
||||
#endif /* __BOARDS_RENESAS_M32262F8_SKP16C26_INCLUDE_BOARD_H */
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
############################################################################
|
||||
# boards/renesas/skp16c26/scripts/Make.defs
|
||||
# boards/renesas/m32262f8/skp16c26/scripts/Make.defs
|
||||
#
|
||||
# Copyright (C) 2009, 2017 Gregory Nutt. All rights reserved.
|
||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* boards/renesas/skp16c26/scripts/skp16c26.ld
|
||||
* boards/renesas/m32262f8/skp16c26/scripts/skp16c26.ld
|
||||
*
|
||||
* Copyright (C) 2009, 2017 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
############################################################################
|
||||
# boards/renesas/skp16c26/src/Makefile
|
||||
# boards/renesas/m32262f8/skp16c26/src/Makefile
|
||||
#
|
||||
# Copyright (C) 2009, 2012 Gregory Nutt. All rights reserved.
|
||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* boards/renesas/skp16c26/src/m16c_buttons.c
|
||||
* boards/renesas/m32262f8/skp16c26/src/m16c_buttons.c
|
||||
*
|
||||
* Copyright (C) 2009, 2015 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/************************************************************************************
|
||||
* boards/renesas/scp16c26/src/m16c_lcd.c
|
||||
/****************************************************************************
|
||||
* boards/renesas/m32262f8/scp16c26/src/m16c_lcd.c
|
||||
*
|
||||
* Copyright (C) 2009 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>
|
||||
|
||||
@@ -49,16 +49,16 @@
|
||||
|
||||
#ifdef CONFIG_SLCD
|
||||
|
||||
/************************************************************************************
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
************************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
/* LCD dimensions *******************************************************************/
|
||||
/* LCD dimensions ***********************************************************/
|
||||
|
||||
#define LCD_NLINES 2 /* Two lines */
|
||||
#define LCD_NCHARS 8 /* Eight characters per line */
|
||||
|
||||
/* LCD commands *********************************************************************/
|
||||
/* LCD commands *************************************************************/
|
||||
|
||||
#define LCD_CLEAR 0x01 /* Clear LCD display and home cursor */
|
||||
#define CURSOR_MODE_DEC 0x04 /* Cursor auto decrement after R/W */
|
||||
@@ -75,20 +75,20 @@
|
||||
#define LCD_HOME_L1 0x80 /* Move cursor to line 1 */
|
||||
#define LCD_HOME_L2 0xc0 /* Move cursor to line 2 */
|
||||
|
||||
/************************************************************************************
|
||||
/****************************************************************************
|
||||
* Private Data
|
||||
************************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
static uint8_t g_nchars; /* Number of characters in lines 2 */
|
||||
static uint8_t g_line[LCD_NCHARS]; /* The content of lines 2 */
|
||||
|
||||
/************************************************************************************
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
************************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
/************************************************************************************
|
||||
/****************************************************************************
|
||||
* Name: up_lcddelay
|
||||
************************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
static void up_lcddelay(uint16_t count)
|
||||
{
|
||||
@@ -99,9 +99,9 @@ static void up_lcddelay(uint16_t count)
|
||||
}
|
||||
}
|
||||
|
||||
/************************************************************************************
|
||||
/****************************************************************************
|
||||
* Name: up_setrs
|
||||
************************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
static inline void up_setrs(bool data)
|
||||
{
|
||||
@@ -120,9 +120,9 @@ static inline void up_setrs(bool data)
|
||||
putreg8(regval, M16C_P6);
|
||||
}
|
||||
|
||||
/************************************************************************************
|
||||
/****************************************************************************
|
||||
* Name: up_seten
|
||||
************************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
static inline void up_seten(void)
|
||||
{
|
||||
@@ -133,9 +133,9 @@ static inline void up_seten(void)
|
||||
putreg8(regval, M16C_P6);
|
||||
}
|
||||
|
||||
/************************************************************************************
|
||||
/****************************************************************************
|
||||
* Name: up_clren
|
||||
************************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
static inline void up_clren(void)
|
||||
{
|
||||
@@ -146,9 +146,9 @@ static inline void up_clren(void)
|
||||
putreg8(regval, M16C_P6);
|
||||
}
|
||||
|
||||
/************************************************************************************
|
||||
/****************************************************************************
|
||||
* Name: up_enpluse
|
||||
************************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
static inline void up_enpulse(bool data)
|
||||
{
|
||||
@@ -159,16 +159,16 @@ static inline void up_enpulse(bool data)
|
||||
if (!data) up_lcddelay(0); /* Longer delay for control writes */
|
||||
}
|
||||
|
||||
/************************************************************************************
|
||||
/****************************************************************************
|
||||
* Name: up_lcdwrite
|
||||
************************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
void up_lcdwrite(bool data, uint8_t ch)
|
||||
{
|
||||
up_setrs(data); /* Set RS appropriately */
|
||||
|
||||
/* Write upper nibble first. Only the lower 4 bits of P9 are valid. The upper four
|
||||
* bits are reserved and must be zero.
|
||||
/* Write upper nibble first. Only the lower 4 bits of P9 are valid.
|
||||
* The upper four bits are reserved and must be zero.
|
||||
*/
|
||||
|
||||
putreg8(ch >> 4, M16C_P9);
|
||||
@@ -180,9 +180,9 @@ void up_lcdwrite(bool data, uint8_t ch)
|
||||
up_enpulse(data);
|
||||
}
|
||||
|
||||
/************************************************************************************
|
||||
/****************************************************************************
|
||||
* Name: up_scroll
|
||||
************************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
static void up_scroll(void)
|
||||
{
|
||||
@@ -206,13 +206,13 @@ static void up_scroll(void)
|
||||
g_nchars = 0;
|
||||
}
|
||||
|
||||
/************************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
************************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
/************************************************************************************
|
||||
/****************************************************************************
|
||||
* Name: up_lcdinit
|
||||
************************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
void up_lcdinit(void)
|
||||
{
|
||||
@@ -255,9 +255,9 @@ void up_lcdinit(void)
|
||||
up_lcdwrite(false, LCD_HOME_L1);
|
||||
}
|
||||
|
||||
/************************************************************************************
|
||||
/****************************************************************************
|
||||
* Name: up_lcdputc
|
||||
************************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
void up_lcdputc(char ch)
|
||||
{
|
||||
@@ -268,8 +268,8 @@ void up_lcdputc(char ch)
|
||||
up_scroll();
|
||||
}
|
||||
|
||||
/* Should we wrap to truncate at the end of line??? Let's truncate. In either
|
||||
* case, let's ignore all other non-printable characters.
|
||||
/* Should we wrap to truncate at the end of line??? Let's truncate.
|
||||
* In either case, let's ignore all other non-printable characters.
|
||||
*/
|
||||
|
||||
else if (g_nchars < LCD_NCHARS && isprint(ch))
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/************************************************************************************
|
||||
* boards/renesas/scp16c26/src/m16c_lcdconsole.c
|
||||
/****************************************************************************
|
||||
* boards/renesas/m32262f8/scp16c26/src/m16c_lcdconsole.c
|
||||
*
|
||||
* Copyright (C) 2009, 2012 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>
|
||||
|
||||
@@ -59,31 +59,31 @@
|
||||
#if !defined(HAVE_SERIALCONSOLE) && defined(CONFIG_SLCD) && \
|
||||
defined(CONFIG_SLCD_CONSOLE)
|
||||
|
||||
/************************************************************************************
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
************************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
/************************************************************************************
|
||||
/****************************************************************************
|
||||
* Private Data
|
||||
************************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
/************************************************************************************
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
************************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
/************************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
************************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
/************************************************************************************
|
||||
/****************************************************************************
|
||||
* Name: up_earlyconsoleinit
|
||||
*
|
||||
* Description:
|
||||
* Performs the low level UART initialization early in debug so that the serial
|
||||
* console will be available during bootup. This must be called before
|
||||
* up_consoleinit.
|
||||
* Performs the low level UART initialization early in debug so that the
|
||||
* serial console will be available during bootup.
|
||||
* This must be called before up_consoleinit.
|
||||
*
|
||||
************************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef USE_EARLYSERIALINIT
|
||||
# warning "You probably need to define CONFIG_ARCH_LOWCONSOLE"
|
||||
@@ -93,14 +93,14 @@ void up_earlyconsoleinit(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
/************************************************************************************
|
||||
/****************************************************************************
|
||||
* Name: up_consoleinit
|
||||
*
|
||||
* Description:
|
||||
* Register serial console and serial ports. This assumes that
|
||||
* up_earlyconsoleinit was called previously.
|
||||
*
|
||||
************************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
#if USE_SERIALDRIVER
|
||||
# warning "You probably need to define CONFIG_ARCH_LOWCONSOLE"
|
||||
@@ -108,30 +108,30 @@ void up_consoleinit(void)
|
||||
{
|
||||
/* There is probably a problem if we are here */
|
||||
|
||||
lowconsole_init();
|
||||
lowconsole_init();
|
||||
}
|
||||
#endif
|
||||
|
||||
/************************************************************************************
|
||||
/****************************************************************************
|
||||
* Name: up_lowputc
|
||||
*
|
||||
* Description:
|
||||
* Output one character on the console
|
||||
*
|
||||
************************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
void up_lowputc(char ch)
|
||||
{
|
||||
up_lcdputc(ch);
|
||||
}
|
||||
|
||||
/************************************************************************************
|
||||
/****************************************************************************
|
||||
* Name: up_putc
|
||||
*
|
||||
* Description:
|
||||
* Output one character on the console
|
||||
*
|
||||
************************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
int up_putc(int ch)
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/************************************************************************************
|
||||
* boards/renesas/scp16c26/src/m16c_leds.c
|
||||
/****************************************************************************
|
||||
* boards/renesas/m32262f8/scp16c26/src/m16c_leds.c
|
||||
*
|
||||
* Copyright (C) 2009, 2015 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>
|
||||
|
||||
@@ -50,11 +50,13 @@
|
||||
|
||||
#ifdef CONFIG_ARCH_LEDS
|
||||
|
||||
/************************************************************************************
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
************************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
/* The SKP62C26 has 3 LEDs control by bits 0 and 2 in port 7 and bit 0 in port 8. */
|
||||
/* The SKP62C26 has 3 LEDs control by bits
|
||||
* 0 and 2 in port 7 and bit 0 in port 8.
|
||||
*/
|
||||
|
||||
#define GREEN_LED (1 << 2) /* Bit 2, port 7 */
|
||||
#define YELLOW_LED (1 << 4) /* Bit 4, port 7 */
|
||||
@@ -80,13 +82,13 @@
|
||||
#define RED_LED_PORT M16C_P8
|
||||
#define RED_DIR_PORT M16C_PD8
|
||||
|
||||
/************************************************************************************
|
||||
/****************************************************************************
|
||||
* Private Types
|
||||
************************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
/************************************************************************************
|
||||
/****************************************************************************
|
||||
* Private Data
|
||||
************************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
static const uint8_t g_ledstate[7] =
|
||||
{
|
||||
@@ -103,13 +105,13 @@ static const uint8_t g_ledstate[7] =
|
||||
static uint8_t g_prevled[3];
|
||||
static uint8_t g_nestlevel;
|
||||
|
||||
/************************************************************************************
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
************************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
/************************************************************************************
|
||||
/****************************************************************************
|
||||
* Name: m16c_setleds
|
||||
************************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
static void m16c_setleds(uint8_t gybits, uint8_t rbit)
|
||||
{
|
||||
@@ -126,13 +128,13 @@ static void m16c_setleds(uint8_t gybits, uint8_t rbit)
|
||||
putreg8(regval, RED_LED_PORT);
|
||||
}
|
||||
|
||||
/************************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
************************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
/************************************************************************************
|
||||
/****************************************************************************
|
||||
* Name: board_autoled_initialize
|
||||
************************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
void board_autoled_initialize(void)
|
||||
{
|
||||
@@ -141,7 +143,7 @@ void board_autoled_initialize(void)
|
||||
/* Make sure that the LEDs are in the OFF state */
|
||||
|
||||
regval = getreg8(GREENYELLOW_LED_PORT);
|
||||
regval |= (GREEN_LED_OFF |YELLOW_LED_OFF);
|
||||
regval |= (GREEN_LED_OFF | YELLOW_LED_OFF);
|
||||
putreg8(regval, GREENYELLOW_LED_PORT);
|
||||
|
||||
regval = getreg8(RED_LED_PORT);
|
||||
@@ -151,7 +153,7 @@ void board_autoled_initialize(void)
|
||||
/* Set the direction to output */
|
||||
|
||||
regval = getreg8(GREENYELLOW_DIR_PORT);
|
||||
regval |= (GREEN_LED |YELLOW_LED);
|
||||
regval |= (GREEN_LED | YELLOW_LED);
|
||||
putreg8(regval, GREENYELLOW_DIR_PORT);
|
||||
|
||||
regval = getreg8(RED_DIR_PORT);
|
||||
@@ -159,16 +161,16 @@ void board_autoled_initialize(void)
|
||||
putreg8(regval, RED_DIR_PORT);
|
||||
}
|
||||
|
||||
/************************************************************************************
|
||||
/****************************************************************************
|
||||
* Name: board_autoled_on
|
||||
************************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
void board_autoled_on(int led)
|
||||
{
|
||||
uint8_t ledset;
|
||||
|
||||
/* If this is the ASSERTION led, preserve the Y&G bits from the last setting and
|
||||
* set the RED LED on.
|
||||
/* If this is the ASSERTION led, preserve the Y&G bits from the last setting
|
||||
* and set the RED LED on.
|
||||
*/
|
||||
|
||||
if (led == LED_ASSERTION)
|
||||
@@ -195,21 +197,24 @@ void board_autoled_on(int led)
|
||||
}
|
||||
}
|
||||
|
||||
/************************************************************************************
|
||||
/****************************************************************************
|
||||
* Name: board_autoled_off
|
||||
************************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
void board_autoled_off(int led)
|
||||
{
|
||||
uint8_t ledset;
|
||||
|
||||
/* If this is the ASSERTION led then what we do depends on the previous state */
|
||||
/* If this is the ASSERTION led then what we do depends on
|
||||
* the previous state
|
||||
*/
|
||||
|
||||
if (led == LED_ASSERTION)
|
||||
{
|
||||
/* If the previous state was one of the nested states (INIRQ, SIGNAL, or ASSERTION),
|
||||
* then turn the green and yellow LEDs all off. That way we can distinguish
|
||||
* that case from the simple cases.
|
||||
/* If the previous state was one of the nested states
|
||||
* (INIRQ, SIGNAL, or ASSERTION),
|
||||
* then turn the green and yellow LEDs all off.
|
||||
* That way we can distinguish that case from the simple cases.
|
||||
*/
|
||||
|
||||
if (g_nestlevel > 0)
|
||||
@@ -225,7 +230,8 @@ void board_autoled_off(int led)
|
||||
}
|
||||
else if (led > 0 && led < LED_ASSERTION)
|
||||
{
|
||||
/* If this was one of the nested states, then we want to back to the LED setting
|
||||
/* If this was one of the nested states,
|
||||
* then we want to back to the LED setting
|
||||
* before entering that nested statel.
|
||||
*/
|
||||
|
||||
@@ -243,7 +249,7 @@ void board_autoled_off(int led)
|
||||
|
||||
ledset = g_ledstate[led];
|
||||
m16c_setleds(ledset & GREENYELLOW_LED_MASK, ledset & RED_LED_MASK);
|
||||
g_prevled[g_nestlevel]= led;
|
||||
g_prevled[g_nestlevel] = led;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/************************************************************************************
|
||||
* boards/renesas/skp16c26/src/scp16c26.h
|
||||
/****************************************************************************
|
||||
* boards/renesas/m32262f8/skp16c26/src/scp16c26.h
|
||||
*
|
||||
* Copyright (C) 2009 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@@ -31,33 +31,33 @@
|
||||
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
************************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef __BOARDS_RENESAS_SKP16C26_SRC_SKP16C26_H
|
||||
#define __BOARDS_RENESAS_SKP16C26_SRC_SKP16C26_H
|
||||
#ifndef __BOARDS_RENESAS_M32262F8_SKP16C26_SRC_SKP16C26_H
|
||||
#define __BOARDS_RENESAS_M32262F8_SKP16C26_SRC_SKP16C26_H
|
||||
|
||||
/************************************************************************************
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
************************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
/************************************************************************************
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
************************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
/************************************************************************************
|
||||
/****************************************************************************
|
||||
* Inline Functions
|
||||
************************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
|
||||
#endif
|
||||
|
||||
/************************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Function Prototypes
|
||||
************************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
|
||||
#endif
|
||||
|
||||
#endif /* __BOARDS_RENESAS_SKP16C26_SRC_SKP16C26_H */
|
||||
#endif /* __BOARDS_RENESAS_M32262F8_SKP16C26_SRC_SKP16C26_H */
|
||||
|
||||
@@ -114,7 +114,7 @@ Architecture selection
|
||||
implemented in.
|
||||
CONFIG_ARCH_BOARD - identifies the boards/ subdirectory and, hence,
|
||||
the board that supports the particular chip or SoC. This
|
||||
should be us7032evb1 for (boards/us7032evb1).
|
||||
should be us7032evb1 for (boards/renesas/sh7032/us7032evb1).
|
||||
CONFIG_ARCH_BOARD_US7032EVB1 - for use in C code
|
||||
CONFIG_ENDIAN_BIG - the SH-1 usually runs big-endian
|
||||
CONFIG_ARCH_NOINTC - define if the architecture does not
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* boards/renesas/us7032evb1/include/board.h
|
||||
* boards/renesas/sh7032/us7032evb1/include/board.h
|
||||
*
|
||||
* Copyright (C) 2008-2009 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@@ -33,8 +33,8 @@
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef _CONFIGS_US7032EVB1_BOARD_H
|
||||
#define _CONFIGS_US7032EVB1_BOARD_H
|
||||
#ifndef __BOARDS_RENESAS_SH7032_US7032EVB1_BOARD_H
|
||||
#define __BOARDS_RENESAS_SH7032_US7032EVB1_BOARD_H
|
||||
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
@@ -77,7 +77,8 @@
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifdef __cplusplus
|
||||
#define EXTERN extern "C"
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#else
|
||||
#define EXTERN extern
|
||||
#endif
|
||||
@@ -92,4 +93,4 @@ extern "C" {
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif /* _CONFIGS_US7032EVB1_BOARD_H */
|
||||
#endif /* __BOARDS_RENESAS_SH7032_US7032EVB1_BOARD_H */
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
##############################################################################
|
||||
# boards/renesas/us7032evb1/scripts/Make.defs
|
||||
# boards/renesas/sh7032/us7032evb1/scripts/Make.defs
|
||||
#
|
||||
# Copyright (C) 2008, 2017 Gregory Nutt. All rights reserved.
|
||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* boards/renesas/us7032evb1/nsh/ld.script
|
||||
* boards/renesas/sh7032/us7032evb1/nsh/ld.script
|
||||
*
|
||||
* Copyright (C) 2008 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
############################################################################
|
||||
# boards/renesas/us7032evb1/shterm/Makefile
|
||||
# boards/renesas/sh7032/us7032evb1/shterm/Makefile
|
||||
#
|
||||
# Copyright (C) 2008 Gregory Nutt. All rights reserved.
|
||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* boards/renesas/us7032evb1/shterm/shterm.c
|
||||
* boards/renesas/sh7032/us7032evb1/shterm/shterm.c
|
||||
*
|
||||
* Copyright(C) 2008-2009 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
############################################################################
|
||||
# boards/
|
||||
# boards/renesas/sh7032/us7032evb1/src/Makefile
|
||||
#
|
||||
# Copyright (C) 2008, 2012 Gregory Nutt. All rights reserved.
|
||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* boards/
|
||||
* boards/renesas/sh7032/us7032evb1/src/sh1_leds.c
|
||||
*
|
||||
* Copyright (C) 2008-2009, 2015 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
|
||||
Reference in New Issue
Block a user