mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 01:21:26 +08:00
boards: z80: nxstyle fixes
Fixes to pass CI Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
This commit is contained in:
committed by
Xiang Xiao
parent
9dd7f90e0e
commit
9d708917bb
@@ -46,7 +46,7 @@
|
|||||||
#define LED_PANIC 7
|
#define LED_PANIC 7
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#undef EXTERN
|
#undef EXTERN
|
||||||
|
|||||||
@@ -54,7 +54,7 @@
|
|||||||
#define BUTTON_PB2 0x04 /* PB2: SW3 Bit 2 of GPIO Port B */
|
#define BUTTON_PB2 0x04 /* PB2: SW3 Bit 2 of GPIO Port B */
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#undef EXTERN
|
#undef EXTERN
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -36,6 +36,7 @@
|
|||||||
/* Memory map. Board-specific extensions to the basic ez80f91 memory map
|
/* Memory map. Board-specific extensions to the basic ez80f91 memory map
|
||||||
* (see arch/z80/src/ez80/ez80f91.h
|
* (see arch/z80/src/ez80/ez80f91.h
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* CS0: 0x000000 256Kb of on-chip flash */
|
/* CS0: 0x000000 256Kb of on-chip flash */
|
||||||
#define EZ80_OFFCHIPFLASH 0x400000 /* CS0: Off chip flash (Up to 4Mb-256Kb) */
|
#define EZ80_OFFCHIPFLASH 0x400000 /* CS0: Off chip flash (Up to 4Mb-256Kb) */
|
||||||
#define EZ80_LEDGPIOCNTRL 0x800000 /* CS2: (See below) */
|
#define EZ80_LEDGPIOCNTRL 0x800000 /* CS2: (See below) */
|
||||||
@@ -116,7 +117,7 @@
|
|||||||
#define EZ80_PB2_IRQ EZ80_PORTB2_IRQ /* Vector Oxa8 */
|
#define EZ80_PB2_IRQ EZ80_PORTB2_IRQ /* Vector Oxa8 */
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#undef EXTERN
|
#undef EXTERN
|
||||||
|
|||||||
@@ -71,7 +71,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#undef EXTERN
|
#undef EXTERN
|
||||||
|
|||||||
@@ -78,7 +78,9 @@ int ez80_mmcsd_initialize(void)
|
|||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Register the MMC/SD block driver for slot 0 with device minor number 0. */
|
/* Register the MMC/SD block driver for slot 0 with device minor
|
||||||
|
* number 0.
|
||||||
|
*/
|
||||||
|
|
||||||
ret = mmcsd_spislotinitialize(0, 0, spi);
|
ret = mmcsd_spislotinitialize(0, 0, spi);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
|
|||||||
@@ -75,7 +75,7 @@
|
|||||||
extern bool g_ebpresent; /* True: I/O Expansion board is present */
|
extern bool g_ebpresent; /* True: I/O Expansion board is present */
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#undef EXTERN
|
#undef EXTERN
|
||||||
@@ -103,7 +103,7 @@ extern "C"
|
|||||||
|
|
||||||
int ez80_bringup(void);
|
int ez80_bringup(void);
|
||||||
|
|
||||||
/*****************************************************************************
|
/****************************************************************************
|
||||||
* Name: ez80_mmcsd_initialize
|
* Name: ez80_mmcsd_initialize
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
|
|||||||
@@ -28,6 +28,7 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* The Z180 is driven by a 16MHz crystal. The system clock
|
/* The Z180 is driven by a 16MHz crystal. The system clock
|
||||||
* is equal to the crystal frequency.
|
* is equal to the crystal frequency.
|
||||||
*/
|
*/
|
||||||
@@ -36,7 +37,7 @@
|
|||||||
#define Z180_SYSCLOCK Z180_BOARD_XTAL /* 16 MHz */
|
#define Z180_SYSCLOCK Z180_BOARD_XTAL /* 16 MHz */
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#if defined(__cplusplus)
|
#if defined(__cplusplus)
|
||||||
|
|||||||
@@ -42,7 +42,7 @@
|
|||||||
#define LED_PANIC 7
|
#define LED_PANIC 7
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#undef EXTERN
|
#undef EXTERN
|
||||||
|
|||||||
@@ -196,10 +196,13 @@ void board_autoled_initialize(void)
|
|||||||
putreg8(0x00, PEOC); /* PE Out Ctrl = push-pull */
|
putreg8(0x00, PEOC); /* PE Out Ctrl = push-pull */
|
||||||
putreg8(0x00, PGOC); /* PG Out Ctrl = push-pull */
|
putreg8(0x00, PGOC); /* PG Out Ctrl = push-pull */
|
||||||
|
|
||||||
/*putreg8(0x00, PEDD); * PA Data Dir = output */
|
/* putreg8(0x00, PEDD); * PA Data Dir = output */
|
||||||
|
|
||||||
putreg8(0x01, PEADDR); /* PA Data Dir = output */
|
putreg8(0x01, PEADDR); /* PA Data Dir = output */
|
||||||
putreg8(0x00, PECTL); /* OUTPUT */
|
putreg8(0x00, PECTL); /* OUTPUT */
|
||||||
/*putreg8(0x00, PGDD); * PA Data Dir = output */
|
|
||||||
|
/* putreg8(0x00, PGDD); * PA Data Dir = output */
|
||||||
|
|
||||||
putreg8(0x01, PGADDR); /* PA Data Dir = output */
|
putreg8(0x01, PGADDR); /* PA Data Dir = output */
|
||||||
putreg8(0x00, PGCTL); /* OUTPUT */
|
putreg8(0x00, PGCTL); /* OUTPUT */
|
||||||
|
|
||||||
@@ -214,7 +217,7 @@ void board_autoled_on(int led)
|
|||||||
{
|
{
|
||||||
if ((unsigned)led <= 8)
|
if ((unsigned)led <= 8)
|
||||||
{
|
{
|
||||||
z8_putarray(&g_ledarray[led+1][0]);
|
z8_putarray(&g_ledarray[led + 1][0]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -226,7 +229,7 @@ void board_autoled_off(int led)
|
|||||||
{
|
{
|
||||||
if (led >= 1)
|
if (led >= 1)
|
||||||
{
|
{
|
||||||
board_autoled_on(led-1);
|
board_autoled_on(led - 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_ARCH_LEDS */
|
#endif /* CONFIG_ARCH_LEDS */
|
||||||
|
|||||||
@@ -42,7 +42,7 @@
|
|||||||
#define LED_PANIC 7
|
#define LED_PANIC 7
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#undef EXTERN
|
#undef EXTERN
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
#undef EXTERN
|
#undef EXTERN
|
||||||
#if defined(__cplusplus)
|
#if defined(__cplusplus)
|
||||||
|
|||||||
Reference in New Issue
Block a user