From 9d708917bb95a8a5490c3ab4623134ed2fc9d8d3 Mon Sep 17 00:00:00 2001 From: Alin Jerpelea Date: Tue, 16 Mar 2021 22:06:01 +0100 Subject: [PATCH] boards: z80: nxstyle fixes Fixes to pass CI Signed-off-by: Alin Jerpelea --- .../z80/ez80/ez80f910200kitg/include/board.h | 2 +- .../z80/ez80/ez80f910200zco/include/board.h | 2 +- .../z80/ez80/ez80f910200zco/src/ez80_leds.c | 559 +++++++++++++++--- .../ez80/ez80f910200zco/src/ez80f910200zco.h | 3 +- boards/z80/ez80/makerlisp/include/board.h | 2 +- boards/z80/ez80/makerlisp/src/ez80_boot.c | 2 +- boards/z80/ez80/makerlisp/src/ez80_spimmcsd.c | 4 +- boards/z80/ez80/makerlisp/src/makerlisp.h | 4 +- boards/z80/z180/p112/include/board.h | 3 +- boards/z80/z8/z8encore000zco/include/board.h | 2 +- boards/z80/z8/z8encore000zco/src/z8_leds.c | 11 +- boards/z80/z8/z8f64200100kit/include/board.h | 2 +- boards/z80/z80/z80sim/include/board.h | 2 +- 13 files changed, 486 insertions(+), 112 deletions(-) diff --git a/boards/z80/ez80/ez80f910200kitg/include/board.h b/boards/z80/ez80/ez80f910200kitg/include/board.h index 475342d372..c38e96bdcc 100644 --- a/boards/z80/ez80/ez80f910200kitg/include/board.h +++ b/boards/z80/ez80/ez80f910200kitg/include/board.h @@ -46,7 +46,7 @@ #define LED_PANIC 7 /**************************************************************************** - * Public Functions + * Public Functions Definitions ****************************************************************************/ #undef EXTERN diff --git a/boards/z80/ez80/ez80f910200zco/include/board.h b/boards/z80/ez80/ez80f910200zco/include/board.h index c350f38c35..84e46fdf82 100644 --- a/boards/z80/ez80/ez80f910200zco/include/board.h +++ b/boards/z80/ez80/ez80f910200zco/include/board.h @@ -54,7 +54,7 @@ #define BUTTON_PB2 0x04 /* PB2: SW3 Bit 2 of GPIO Port B */ /**************************************************************************** - * Public Functions + * Public Functions Definitions ****************************************************************************/ #undef EXTERN diff --git a/boards/z80/ez80/ez80f910200zco/src/ez80_leds.c b/boards/z80/ez80/ez80f910200zco/src/ez80_leds.c index 8afef1e6c6..95b42ea803 100644 --- a/boards/z80/ez80/ez80f910200zco/src/ez80_leds.c +++ b/boards/z80/ez80/ez80f910200zco/src/ez80_leds.c @@ -49,134 +49,501 @@ */ #if 0 /* Not used */ -static const uint8_t g_chblock[7] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; /* block */ +static const uint8_t g_chblock[7] = +{ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 +}; /* block */ #endif -static const uint8_t g_chspace[7] = {0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f}; /* space */ +static const uint8_t g_chspace[7] = +{ + 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f +}; /* space */ #if 0 /* Not used */ -static const uint8_t g_chexclam[7] = {0x1b, 0x1b, 0x1b, 0x1b, 0x1b, 0x1f, 0x1b}; /* ! */ -static const uint8_t g_chquote[7] = {0x15, 0x15, 0x15, 0x1f, 0x1f, 0x1f, 0x1f}; /* " */ -static const uint8_t g_chnum[7] = {0x1f, 0x15, 0x00, 0x15, 0x00, 0x15, 0x1f}; /* # */ -static const uint8_t g_chdollar[7] = {0x1b, 0x11, 0x0a, 0x11, 0x0a, 0x11, 0x1b}; /* $ */ -static const uint8_t g_chpct[7] = {0x1f, 0x1e, 0x15, 0x1b, 0x15, 0x0f, 0x1f}; /* % */ -static const uint8_t g_champ[7] = {0x11, 0x0e, 0x0e, 0x11, 0x15, 0x0e, 0x10}; /* & */ -static const uint8_t g_chsquote[7] = {0x1b, 0x1b, 0x1b, 0x1f, 0x1f, 0x1f, 0x1f}; /* ' */ -static const uint8_t g_chlparen[7] = {0x1d, 0x1b, 0x17, 0x17, 0x17, 0x1b, 0x1d}; /* ( */ -static const uint8_t g_chrparen[7] = {0x17, 0x1b, 0x1d, 0x1d, 0x1d, 0x1b, 0x17}; /* ) */ +static const uint8_t g_chexclam[7] = +{ + 0x1b, 0x1b, 0x1b, 0x1b, 0x1b, 0x1f, 0x1b +}; /* ! */ + +static const uint8_t g_chquote[7] = +{ + 0x15, 0x15, 0x15, 0x1f, 0x1f, 0x1f, 0x1f +}; /* " */ + +static const uint8_t g_chnum[7] = +{ + 0x1f, 0x15, 0x00, 0x15, 0x00, 0x15, 0x1f +}; /* # */ + +static const uint8_t g_chdollar[7] = +{ + 0x1b, 0x11, 0x0a, 0x11, 0x0a, 0x11, 0x1b +}; /* $ */ + +static const uint8_t g_chpct[7] = +{ + 0x1f, 0x1e, 0x15, 0x1b, 0x15, 0x0f, 0x1f +}; /* % */ + +static const uint8_t g_champ[7] = +{ + 0x11, 0x0e, 0x0e, 0x11, 0x15, 0x0e, 0x10 +}; /* & */ + +static const uint8_t g_chsquote[7] = +{ + 0x1b, 0x1b, 0x1b, 0x1f, 0x1f, 0x1f, 0x1f +}; /* ' */ + +static const uint8_t g_chlparen[7] = +{ + 0x1d, 0x1b, 0x17, 0x17, 0x17, 0x1b, 0x1d +}; /* ( */ + +static const uint8_t g_chrparen[7] = +{ + 0x17, 0x1b, 0x1d, 0x1d, 0x1d, 0x1b, 0x17 +}; /* ) */ #endif -static const uint8_t g_chast[7] = {0x1f, 0x0a, 0x11, 0x00, 0x11, 0x0a, 0x1f}; /* * */ +static const uint8_t g_chast[7] = +{ + 0x1f, 0x0a, 0x11, 0x00, 0x11, 0x0a, 0x1f +}; /* * */ #if 0 /* Not used */ -static const uint8_t g_chplus[7] = {0x1f, 0x1b, 0x1b, 0x00, 0x1b, 0x1b, 0x1f}; /* + */ -static const uint8_t g_chcomma[7] = {0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1b, 0x17}; /* , */ -static const uint8_t g_chhyphen[7] = {0x1f, 0x1f, 0x1f, 0x00, 0x1f, 0x1f, 0x1f}; /* - */ -static const uint8_t g_chperiod[7] = {0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1b}; /* . */ -static const uint8_t g_chslash[7] = {0x1f, 0x1e, 0x1d, 0x1b, 0x17, 0x0f, 0x1f}; /* / */ +static const uint8_t g_chplus[7] = +{ + 0x1f, 0x1b, 0x1b, 0x00, 0x1b, 0x1b, 0x1f +}; /* + */ + +static const uint8_t g_chcomma[7] = +{ + 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1b, 0x17 +}; /* , */ + +static const uint8_t g_chhyphen[7] = +{ + 0x1f, 0x1f, 0x1f, 0x00, 0x1f, 0x1f, 0x1f +}; /* - */ + +static const uint8_t g_chperiod[7] = +{ + 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1b +}; /* . */ + +static const uint8_t g_chslash[7] = +{ + 0x1f, 0x1e, 0x1d, 0x1b, 0x17, 0x0f, 0x1f +}; /* / */ #endif -static const uint8_t g_ch0[7] = {0x11, 0x0e, 0x0c, 0x0a, 0x06, 0x0e, 0x11}; /* 0 */ +static const uint8_t g_ch0[7] = +{ + 0x11, 0x0e, 0x0c, 0x0a, 0x06, 0x0e, 0x11 +}; /* 0 */ #if 0 /* Not used */ -static const uint8_t g_ch1[7] = {0x1b, 0x13, 0x1b, 0x1b, 0x1b, 0x1b, 0x11}; /* 1 */ -static const uint8_t g_ch2[7] = {0x11, 0x0e, 0x1d, 0x1b, 0x17, 0x0f, 0x00}; /* 2 */ -static const uint8_t g_ch3[7] = {0x11, 0x0e, 0x1e, 0x19, 0x1e, 0x0e, 0x11}; /* 3 */ -static const uint8_t g_ch4[7] = {0x0e, 0x0e, 0x0e, 0x10, 0x1e, 0x1e, 0x1e}; /* 4 */ -static const uint8_t g_ch5[7] = {0x00, 0x0f, 0x0f, 0x01, 0x1e, 0x0e, 0x11}; /* 5 */ -static const uint8_t g_ch6[7] = {0x11, 0x0f, 0x0f, 0x01, 0x0e, 0x0e, 0x11}; /* 6 */ -static const uint8_t g_ch7[7] = {0x00, 0x1e, 0x1e, 0x1d, 0x1b, 0x1b, 0x1b}; /* 7 */ -static const uint8_t g_ch8[7] = {0x11, 0x0e, 0x0e, 0x11, 0x0e, 0x0e, 0x11}; /* 8 */ -static const uint8_t g_ch9[7] = {0x11, 0x0e, 0x0e, 0x10, 0x1e, 0x1d, 0x1b}; /* 9 */ -static const uint8_t g_chcolon[7] = {0x1f, 0x1f, 0x1b, 0x1f, 0x1b, 0x1f, 0x1f}; /* : */ -static const uint8_t g_shsemi[7] = {0x1f, 0x1f, 0x1b, 0x1f, 0x1b, 0x17, 0x1f}; /* ; */ -static const uint8_t g_chlt[7] = {0x1d, 0x1b, 0x17, 0x0f, 0x17, 0x1b, 0x1d}; /* < */ -static const uint8_t g_cheq[7] = {0x1f, 0x1f, 0x00, 0x1f, 0x00, 0x1f, 0x1f}; /* = */ -static const uint8_t g_chgt[7] = {0x17, 0x1b, 0x1d, 0x1e, 0x1d, 0x1b, 0x17}; /* > */ -static const uint8_t g_chquest[7] = {0x11, 0x0e, 0x0d, 0x1b, 0x1b, 0x1f, 0x1b}; /* ? */ -static const uint8_t g_chat[7] = {0x11, 0x0a, 0x04, 0x04, 0x05, 0x0a, 0x11}; /* @ */ +static const uint8_t g_ch1[7] = +{ + 0x1b, 0x13, 0x1b, 0x1b, 0x1b, 0x1b, 0x11 +}; /* 1 */ + +static const uint8_t g_ch2[7] = +{ + 0x11, 0x0e, 0x1d, 0x1b, 0x17, 0x0f, 0x00 +}; /* 2 */ + +static const uint8_t g_ch3[7] = +{ + 0x11, 0x0e, 0x1e, 0x19, 0x1e, 0x0e, 0x11 +}; /* 3 */ + +static const uint8_t g_ch4[7] = +{ + 0x0e, 0x0e, 0x0e, 0x10, 0x1e, 0x1e, 0x1e +}; /* 4 */ + +static const uint8_t g_ch5[7] = +{ + 0x00, 0x0f, 0x0f, 0x01, 0x1e, 0x0e, 0x11 +}; /* 5 */ + +static const uint8_t g_ch6[7] = +{ + 0x11, 0x0f, 0x0f, 0x01, 0x0e, 0x0e, 0x11 +}; /* 6 */ + +static const uint8_t g_ch7[7] = +{ + 0x00, 0x1e, 0x1e, 0x1d, 0x1b, 0x1b, 0x1b +}; /* 7 */ + +static const uint8_t g_ch8[7] = +{ + 0x11, 0x0e, 0x0e, 0x11, 0x0e, 0x0e, 0x11 +}; /* 8 */ + +static const uint8_t g_ch9[7] = +{ + 0x11, 0x0e, 0x0e, 0x10, 0x1e, 0x1d, 0x1b +}; /* 9 */ + +static const uint8_t g_chcolon[7] = +{ + 0x1f, 0x1f, 0x1b, 0x1f, 0x1b, 0x1f, 0x1f +}; /* : */ + +static const uint8_t g_shsemi[7] = +{ + 0x1f, 0x1f, 0x1b, 0x1f, 0x1b, 0x17, 0x1f +}; /* ; */ + +static const uint8_t g_chlt[7] = +{ + 0x1d, 0x1b, 0x17, 0x0f, 0x17, 0x1b, 0x1d +}; /* < */ + +static const uint8_t g_cheq[7] = +{ + 0x1f, 0x1f, 0x00, 0x1f, 0x00, 0x1f, 0x1f +}; /* = */ + +static const uint8_t g_chgt[7] = +{ + 0x17, 0x1b, 0x1d, 0x1e, 0x1d, 0x1b, 0x17 +}; /* > */ + +static const uint8_t g_chquest[7] = +{ + 0x11, 0x0e, 0x0d, 0x1b, 0x1b, 0x1f, 0x1b +}; /* ? */ + +static const uint8_t g_chat[7] = +{ + 0x11, 0x0a, 0x04, 0x04, 0x05, 0x0a, 0x11 +}; /* @ */ #endif -static const uint8_t g_chA[7] = {0x11, 0x0e, 0x0e, 0x0e, 0x00, 0x0e, 0x0e}; /* A */ +static const uint8_t g_chA[7] = +{ + 0x11, 0x0e, 0x0e, 0x0e, 0x00, 0x0e, 0x0e +}; /* A */ #if 0 /* Not used */ -static const uint8_t g_chB[7] = {0x01, 0x0e, 0x0e, 0x01, 0x0e, 0x0e, 0x01}; /* B */ +static const uint8_t g_chB[7] = +{ + 0x01, 0x0e, 0x0e, 0x01, 0x0e, 0x0e, 0x01 +}; /* B */ #endif -static const uint8_t g_chC[7] = {0x11, 0x0e, 0x0f, 0x0f, 0x0f, 0x0e, 0x11}; /* C */ +static const uint8_t g_chC[7] = +{ + 0x11, 0x0e, 0x0f, 0x0f, 0x0f, 0x0e, 0x11 +}; /* C */ #if 0 /* Not used */ -static const uint8_t g_chD[7] = {0x01, 0x0e, 0x0e, 0x0e, 0x0e, 0x0e, 0x01}; /* D */ +static const uint8_t g_chD[7] = +{ + 0x01, 0x0e, 0x0e, 0x0e, 0x0e, 0x0e, 0x01 +}; /* D */ #endif -static const uint8_t g_chE[7] = {0x00, 0x0f, 0x0f, 0x01, 0x0f, 0x0f, 0x00}; /* E */ +static const uint8_t g_chE[7] = +{ + 0x00, 0x0f, 0x0f, 0x01, 0x0f, 0x0f, 0x00 +}; /* E */ #if 0 /* Not used */ -static const uint8_t g_chF[7] = {0x00, 0x0f, 0x0f, 0x01, 0x0f, 0x0f, 0x0f}; /* F */ -static const uint8_t g_chG[7] = {0x11, 0x0e, 0x0f, 0x08, 0x0e, 0x0e, 0x11}; /* G */ +static const uint8_t g_chF[7] = +{ + 0x00, 0x0f, 0x0f, 0x01, 0x0f, 0x0f, 0x0f +}; /* F */ + +static const uint8_t g_chG[7] = +{ + 0x11, 0x0e, 0x0f, 0x08, 0x0e, 0x0e, 0x11 +}; /* G */ #endif -static const uint8_t g_chH[7] = {0x0e, 0x0e, 0x0e, 0x00, 0x0e, 0x0e, 0x0e}; /* H */ -static const uint8_t g_chI[7] = {0x00, 0x1b, 0x1b, 0x1b, 0x1b, 0x1b, 0x00}; /* I */ +static const uint8_t g_chH[7] = +{ + 0x0e, 0x0e, 0x0e, 0x00, 0x0e, 0x0e, 0x0e +}; /* H */ + +static const uint8_t g_chI[7] = +{ + 0x00, 0x1b, 0x1b, 0x1b, 0x1b, 0x1b, 0x00 +}; /* I */ #if 0 /* Not used */ -static const uint8_t g_chJ[7] = {0x00, 0x1d, 0x1d, 0x1d, 0x0d, 0x0d, 0x13}; /* J */ -static const uint8_t g_chK[7] = {0x0e, 0x0d, 0x0b, 0x07, 0x0b, 0x0d, 0x0e}; /* K */ -static const uint8_t g_chL[7] = {0x0f, 0x0f, 0x0f, 0x0f, 0x0f, 0x0f, 0x00}; /* L */ -static const uint8_t g_chM[7] = {0x0e, 0x04, 0x0a, 0x0a, 0x0e, 0x0e, 0x0e}; /* M */ -static const uint8_t g_chN[7] = {0x0e, 0x0e, 0x06, 0x0a, 0x0c, 0x0e, 0x0e}; /* N */ -static const uint8_t g_chO[7] = {0x11, 0x0e, 0x0e, 0x0e, 0x0e, 0x0e, 0x11}; /* O */ -static const uint8_t g_chP[7] = {0x01, 0x0e, 0x0e, 0x01, 0x0f, 0x0f, 0x0f}; /* P */ -static const uint8_t g_chQ[7] = {0x11, 0x0e, 0x0e, 0x0e, 0x0a, 0x0c, 0x10}; /* Q */ +static const uint8_t g_chJ[7] = +{ + 0x00, 0x1d, 0x1d, 0x1d, 0x0d, 0x0d, 0x13 +}; /* J */ + +static const uint8_t g_chK[7] = +{ + 0x0e, 0x0d, 0x0b, 0x07, 0x0b, 0x0d, 0x0e +}; /* K */ + +static const uint8_t g_chL[7] = +{ + 0x0f, 0x0f, 0x0f, 0x0f, 0x0f, 0x0f, 0x00 +}; /* L */ + +static const uint8_t g_chM[7] = +{ + 0x0e, 0x04, 0x0a, 0x0a, 0x0e, 0x0e, 0x0e +}; /* M */ + +static const uint8_t g_chN[7] = +{ + 0x0e, 0x0e, 0x06, 0x0a, 0x0c, 0x0e, 0x0e +}; /* N */ + +static const uint8_t g_chO[7] = +{ + 0x11, 0x0e, 0x0e, 0x0e, 0x0e, 0x0e, 0x11 +}; /* O */ + +static const uint8_t g_chP[7] = +{ + 0x01, 0x0e, 0x0e, 0x01, 0x0f, 0x0f, 0x0f +}; /* P */ + +static const uint8_t g_chQ[7] = +{ + 0x11, 0x0e, 0x0e, 0x0e, 0x0a, 0x0c, 0x10 +}; /* Q */ #endif -static const uint8_t g_chR[7] = {0x01, 0x0e, 0x0e, 0x01, 0x0b, 0x0d, 0x0e}; /* R */ -static const uint8_t g_chS[7] = {0x11, 0x0e, 0x0f, 0x11, 0x1e, 0x0e, 0x11}; /* S */ +static const uint8_t g_chR[7] = +{ + 0x01, 0x0e, 0x0e, 0x01, 0x0b, 0x0d, 0x0e +}; /* R */ + +static const uint8_t g_chS[7] = +{ + 0x11, 0x0e, 0x0f, 0x11, 0x1e, 0x0e, 0x11 +}; /* S */ #if 0 /* Not used */ -static const uint8_t g_chT[7] = {0x00, 0x1b, 0x1b, 0x1b, 0x1b, 0x1b, 0x1b}; /* T */ -static const uint8_t g_chU[7] = {0x0e, 0x0e, 0x0e, 0x0e, 0x0e, 0x0e, 0x11}; /* U */ -static const uint8_t g_chV[7] = {0x0e, 0x0e, 0x0e, 0x0e, 0x0e, 0x15, 0x1b}; /* V */ -static const uint8_t g_chW[7] = {0x0e, 0x0e, 0x0a, 0x0a, 0x0a, 0x0a, 0x15}; /* W */ -static const uint8_t g_chX[7] = {0x0e, 0x0e, 0x15, 0x1b, 0x15, 0x0e, 0x0e}; /* X */ -static const uint8_t g_chY[7] = {0x0e, 0x0e, 0x15, 0x1b, 0x1b, 0x1b, 0x1b}; /* Y */ -static const uint8_t g_chZ[7] = {0x00, 0x1e, 0x1d, 0x1b, 0x17, 0x0f, 0x00}; /* Z */ -static const uint8_t g_chlbrack[7] = {0x03, 0x0f, 0x0f, 0x0f, 0x0f, 0x0f, 0x03}; /* [ */ -static const uint8_t g_chbslash[7] = {0x1f, 0x0f, 0x17, 0x1b, 0x1d, 0x1e, 0x1f}; /* backslash */ -static const uint8_t g_chrbrack[7] = {0x1c, 0x1e, 0x1e, 0x1e, 0x1e, 0x1e, 0x1c}; /* ] */ -static const uint8_t g_chcaret[7] = {0x1b, 0x15, 0x0e, 0x1f, 0x1f, 0x1f, 0x1f}; /* ^ */ -static const uint8_t g_chunder[7] = {0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x00}; /* _ */ -static const uint8_t g_chgrave[7] = {0x1b, 0x1b, 0x1b, 0x1f, 0x1f, 0x1f, 0x1f}; /* ' */ -static const uint8_t g_cha[7] = {0x1f, 0x1f, 0x19, 0x16, 0x16, 0x16, 0x18}; /* a */ -static const uint8_t g_chb[7] = {0x17, 0x17, 0x11, 0x16, 0x16, 0x16, 0x11}; /* b */ -static const uint8_t g_chc[7] = {0x1f, 0x1f, 0x19, 0x16, 0x17, 0x16, 0x19}; /* c */ -static const uint8_t g_chd[7] = {0x1e, 0x1e, 0x18, 0x16, 0x16, 0x16, 0x18}; /* d */ -static const uint8_t g_che[7] = {0x1f, 0x1f, 0x19, 0x10, 0x17, 0x16, 0x19}; /* e */ -static const uint8_t g_chf[7] = {0x1d, 0x1a, 0x1b, 0x11, 0x1b, 0x1b, 0x1b}; /* f */ -static const uint8_t g_chg[7] = {0x1f, 0x19, 0x16, 0x16, 0x18, 0x16, 0x19}; /* g */ -static const uint8_t g_chh[7] = {0x17, 0x17, 0x11, 0x16, 0x16, 0x16, 0x16}; /* h */ -static const uint8_t g_chi[7] = {0x1f, 0x1f, 0x1b, 0x1f, 0x1b, 0x1b, 0x1b}; /* i */ -static const uint8_t g_chj[7] = {0x1f, 0x1d, 0x1f, 0x1d, 0x1d, 0x1d, 0x13}; /* j */ -static const uint8_t g_chk[7] = {0x17, 0x17, 0x15, 0x13, 0x13, 0x15, 0x16}; /* k */ -static const uint8_t g_chl[7] = {0x1b, 0x1b, 0x1b, 0x1b, 0x1b, 0x1b, 0x1b}; /* l */ -static const uint8_t g_chm[7] = {0x1f, 0x1f, 0x05, 0x0a, 0x0a, 0x0a, 0x0a}; /* m */ -static const uint8_t g_chn[7] = {0x1f, 0x1f, 0x11, 0x16, 0x16, 0x16, 0x16}; /* n */ -static const uint8_t g_cho[7] = {0x1f, 0x1f, 0x19, 0x16, 0x16, 0x16, 0x19}; /* o */ -static const uint8_t g_chp[7] = {0x1f, 0x11, 0x16, 0x16, 0x11, 0x17, 0x17}; /* p */ -static const uint8_t g_chq[7] = {0x1f, 0x18, 0x16, 0x16, 0x18, 0x1e, 0x1e}; /* q */ -static const uint8_t g_chr[7] = {0x1f, 0x1f, 0x11, 0x16, 0x17, 0x17, 0x17}; /* r */ -static const uint8_t g_chs[7] = {0x1f, 0x1f, 0x18, 0x17, 0x19, 0x1e, 0x11}; /* s */ -static const uint8_t g_cht[7] = {0x1f, 0x1f, 0x1b, 0x11, 0x1b, 0x1b, 0x1b}; /* t */ -static const uint8_t g_chu[7] = {0x1f, 0x1f, 0x16, 0x16, 0x16, 0x16, 0x18}; /* u */ -static const uint8_t g_chv[7] = {0x1f, 0x1f, 0x16, 0x16, 0x16, 0x16, 0x19}; /* v */ -static const uint8_t g_chw[7] = {0x1f, 0x1f, 0x0a, 0x0a, 0x0a, 0x0a, 0x15}; /* w */ -static const uint8_t g_chx[7] = {0x1f, 0x1f, 0x0e, 0x15, 0x1b, 0x15, 0x0e}; /* x */ -static const uint8_t g_chy[7] = {0x1f, 0x1a, 0x1a, 0x1a, 0x1d, 0x1b, 0x17}; /* y */ -static const uint8_t g_cha[7] = {0x1f, 0x1f, 0x10, 0x1d, 0x1b, 0x17, 0x10}; /* z */ -static const uint8_t g_chlbrace[7] = {0x1d, 0x1b, 0x1b, 0x17, 0x1b, 0x1b, 0x1d}; /* { */ -static const uint8_t g_chvbar[7] = {0x1b, 0x1b, 0x1b, 0x1f, 0x1b, 0x1b, 0x1b}; /* | */ -static const uint8_t g_chrbrace[7] = {0x17, 0x1b, 0x1b, 0x1d, 0x1b, 0x1b, 0x17}; /* } */ -static const uint8_t g_chtilde[7] = {0x1f, 0x1a, 0x15, 0x1f, 0x1f, 0x1f, 0x1f}; /* ~ */ +static const uint8_t g_chT[7] = +{ + 0x00, 0x1b, 0x1b, 0x1b, 0x1b, 0x1b, 0x1b +}; /* T */ + +static const uint8_t g_chU[7] = +{ + 0x0e, 0x0e, 0x0e, 0x0e, 0x0e, 0x0e, 0x11 +}; /* U */ + +static const uint8_t g_chV[7] = +{ + 0x0e, 0x0e, 0x0e, 0x0e, 0x0e, 0x15, 0x1b +}; /* V */ + +static const uint8_t g_chW[7] = +{ + 0x0e, 0x0e, 0x0a, 0x0a, 0x0a, 0x0a, 0x15 +}; /* W */ + +static const uint8_t g_chX[7] = +{ + 0x0e, 0x0e, 0x15, 0x1b, 0x15, 0x0e, 0x0e +}; /* X */ + +static const uint8_t g_chY[7] = +{ + 0x0e, 0x0e, 0x15, 0x1b, 0x1b, 0x1b, 0x1b +}; /* Y */ + +static const uint8_t g_chZ[7] = +{ + 0x00, 0x1e, 0x1d, 0x1b, 0x17, 0x0f, 0x00 +}; /* Z */ + +static const uint8_t g_chlbrack[7] = +{ + 0x03, 0x0f, 0x0f, 0x0f, 0x0f, 0x0f, 0x03 +}; /* [ */ + +static const uint8_t g_chbslash[7] = +{ + 0x1f, 0x0f, 0x17, 0x1b, 0x1d, 0x1e, 0x1f +}; /* backslash */ + +static const uint8_t g_chrbrack[7] = +{ + 0x1c, 0x1e, 0x1e, 0x1e, 0x1e, 0x1e, 0x1c +}; /* ] */ + +static const uint8_t g_chcaret[7] = +{ + 0x1b, 0x15, 0x0e, 0x1f, 0x1f, 0x1f, 0x1f +}; /* ^ */ + +static const uint8_t g_chunder[7] = +{ + 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x00 +}; /* _ */ + +static const uint8_t g_chgrave[7] = +{ + 0x1b, 0x1b, 0x1b, 0x1f, 0x1f, 0x1f, 0x1f +}; /* ' */ + +static const uint8_t g_cha[7] = +{ + 0x1f, 0x1f, 0x19, 0x16, 0x16, 0x16, 0x18 +}; /* a */ + +static const uint8_t g_chb[7] = +{ + 0x17, 0x17, 0x11, 0x16, 0x16, 0x16, 0x11 +}; /* b */ + +static const uint8_t g_chc[7] = +{ + 0x1f, 0x1f, 0x19, 0x16, 0x17, 0x16, 0x19 +}; /* c */ + +static const uint8_t g_chd[7] = +{ + 0x1e, 0x1e, 0x18, 0x16, 0x16, 0x16, 0x18 +}; /* d */ + +static const uint8_t g_che[7] = +{ + 0x1f, 0x1f, 0x19, 0x10, 0x17, 0x16, 0x19 +}; /* e */ + +static const uint8_t g_chf[7] = +{ + 0x1d, 0x1a, 0x1b, 0x11, 0x1b, 0x1b, 0x1b +}; /* f */ + +static const uint8_t g_chg[7] = +{ + 0x1f, 0x19, 0x16, 0x16, 0x18, 0x16, 0x19 +}; /* g */ + +static const uint8_t g_chh[7] = +{ + 0x17, 0x17, 0x11, 0x16, 0x16, 0x16, 0x16 +}; /* h */ + +static const uint8_t g_chi[7] = +{ + 0x1f, 0x1f, 0x1b, 0x1f, 0x1b, 0x1b, 0x1b +}; /* i */ + +static const uint8_t g_chj[7] = +{ + 0x1f, 0x1d, 0x1f, 0x1d, 0x1d, 0x1d, 0x13 +}; /* j */ + +static const uint8_t g_chk[7] = +{ + 0x17, 0x17, 0x15, 0x13, 0x13, 0x15, 0x16 +}; /* k */ + +static const uint8_t g_chl[7] = +{ + 0x1b, 0x1b, 0x1b, 0x1b, 0x1b, 0x1b, 0x1b +}; /* l */ + +static const uint8_t g_chm[7] = +{ + 0x1f, 0x1f, 0x05, 0x0a, 0x0a, 0x0a, 0x0a +}; /* m */ + +static const uint8_t g_chn[7] = +{ + 0x1f, 0x1f, 0x11, 0x16, 0x16, 0x16, 0x16 +}; /* n */ + +static const uint8_t g_cho[7] = +{ + 0x1f, 0x1f, 0x19, 0x16, 0x16, 0x16, 0x19 +}; /* o */ + +static const uint8_t g_chp[7] = +{ + 0x1f, 0x11, 0x16, 0x16, 0x11, 0x17, 0x17 +}; /* p */ + +static const uint8_t g_chq[7] = +{ + 0x1f, 0x18, 0x16, 0x16, 0x18, 0x1e, 0x1e +}; /* q */ + +static const uint8_t g_chr[7] = +{ + 0x1f, 0x1f, 0x11, 0x16, 0x17, 0x17, 0x17 +}; /* r */ + +static const uint8_t g_chs[7] = +{ + 0x1f, 0x1f, 0x18, 0x17, 0x19, 0x1e, 0x11 +}; /* s */ + +static const uint8_t g_cht[7] = +{ + 0x1f, 0x1f, 0x1b, 0x11, 0x1b, 0x1b, 0x1b +}; /* t */ + +static const uint8_t g_chu[7] = +{ + 0x1f, 0x1f, 0x16, 0x16, 0x16, 0x16, 0x18 +}; /* u */ + +static const uint8_t g_chv[7] = +{ + 0x1f, 0x1f, 0x16, 0x16, 0x16, 0x16, 0x19 +}; /* v */ + +static const uint8_t g_chw[7] = +{ + 0x1f, 0x1f, 0x0a, 0x0a, 0x0a, 0x0a, 0x15 +}; /* w */ + +static const uint8_t g_chx[7] = +{ + 0x1f, 0x1f, 0x0e, 0x15, 0x1b, 0x15, 0x0e +}; /* x */ + +static const uint8_t g_chy[7] = +{ + 0x1f, 0x1a, 0x1a, 0x1a, 0x1d, 0x1b, 0x17 +}; /* y */ + +static const uint8_t g_cha[7] = +{ + 0x1f, 0x1f, 0x10, 0x1d, 0x1b, 0x17, 0x10 +}; /* z */ + +static const uint8_t g_chlbrace[7] = +{ + 0x1d, 0x1b, 0x1b, 0x17, 0x1b, 0x1b, 0x1d +}; /* { */ + +static const uint8_t g_chvbar[7] = +{ + 0x1b, 0x1b, 0x1b, 0x1f, 0x1b, 0x1b, 0x1b +}; /* | */ + +static const uint8_t g_chrbrace[7] = +{ + 0x17, 0x1b, 0x1b, 0x1d, 0x1b, 0x1b, 0x17 +}; /* } */ + +static const uint8_t g_chtilde[7] = +{ + 0x1f, 0x1a, 0x15, 0x1f, 0x1f, 0x1f, 0x1f +}; /* ~ */ #endif /* The current and previously selected glyph */ diff --git a/boards/z80/ez80/ez80f910200zco/src/ez80f910200zco.h b/boards/z80/ez80/ez80f910200zco/src/ez80f910200zco.h index 6f981792cd..6c365ce842 100644 --- a/boards/z80/ez80/ez80f910200zco/src/ez80f910200zco.h +++ b/boards/z80/ez80/ez80f910200zco/src/ez80f910200zco.h @@ -36,6 +36,7 @@ /* Memory map. Board-specific extensions to the basic ez80f91 memory map * (see arch/z80/src/ez80/ez80f91.h */ + /* CS0: 0x000000 256Kb of on-chip flash */ #define EZ80_OFFCHIPFLASH 0x400000 /* CS0: Off chip flash (Up to 4Mb-256Kb) */ #define EZ80_LEDGPIOCNTRL 0x800000 /* CS2: (See below) */ @@ -116,7 +117,7 @@ #define EZ80_PB2_IRQ EZ80_PORTB2_IRQ /* Vector Oxa8 */ /**************************************************************************** - * Public Functions + * Public Functions Definitions ****************************************************************************/ #undef EXTERN diff --git a/boards/z80/ez80/makerlisp/include/board.h b/boards/z80/ez80/makerlisp/include/board.h index 742d76eee5..6714dea342 100644 --- a/boards/z80/ez80/makerlisp/include/board.h +++ b/boards/z80/ez80/makerlisp/include/board.h @@ -71,7 +71,7 @@ */ /**************************************************************************** - * Public Functions + * Public Functions Definitions ****************************************************************************/ #undef EXTERN diff --git a/boards/z80/ez80/makerlisp/src/ez80_boot.c b/boards/z80/ez80/makerlisp/src/ez80_boot.c index 110412431e..08ebab35c1 100644 --- a/boards/z80/ez80/makerlisp/src/ez80_boot.c +++ b/boards/z80/ez80/makerlisp/src/ez80_boot.c @@ -182,7 +182,7 @@ void ez80_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. diff --git a/boards/z80/ez80/makerlisp/src/ez80_spimmcsd.c b/boards/z80/ez80/makerlisp/src/ez80_spimmcsd.c index cec3d8ad6f..e68798b46b 100644 --- a/boards/z80/ez80/makerlisp/src/ez80_spimmcsd.c +++ b/boards/z80/ez80/makerlisp/src/ez80_spimmcsd.c @@ -78,7 +78,9 @@ int ez80_mmcsd_initialize(void) 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); if (ret < 0) diff --git a/boards/z80/ez80/makerlisp/src/makerlisp.h b/boards/z80/ez80/makerlisp/src/makerlisp.h index 13172e2e1d..0a6a80d938 100644 --- a/boards/z80/ez80/makerlisp/src/makerlisp.h +++ b/boards/z80/ez80/makerlisp/src/makerlisp.h @@ -75,7 +75,7 @@ extern bool g_ebpresent; /* True: I/O Expansion board is present */ /**************************************************************************** - * Public Functions + * Public Functions Definitions ****************************************************************************/ #undef EXTERN @@ -103,7 +103,7 @@ extern "C" int ez80_bringup(void); -/***************************************************************************** +/**************************************************************************** * Name: ez80_mmcsd_initialize * * Description: diff --git a/boards/z80/z180/p112/include/board.h b/boards/z80/z180/p112/include/board.h index 482930c640..f156eadab5 100644 --- a/boards/z80/z180/p112/include/board.h +++ b/boards/z80/z180/p112/include/board.h @@ -28,6 +28,7 @@ /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ + /* The Z180 is driven by a 16MHz crystal. The system clock * is equal to the crystal frequency. */ @@ -36,7 +37,7 @@ #define Z180_SYSCLOCK Z180_BOARD_XTAL /* 16 MHz */ /**************************************************************************** - * Public Functions + * Public Functions Definitions ****************************************************************************/ #if defined(__cplusplus) diff --git a/boards/z80/z8/z8encore000zco/include/board.h b/boards/z80/z8/z8encore000zco/include/board.h index f9a86c470e..d1ce273ddf 100644 --- a/boards/z80/z8/z8encore000zco/include/board.h +++ b/boards/z80/z8/z8encore000zco/include/board.h @@ -42,7 +42,7 @@ #define LED_PANIC 7 /**************************************************************************** - * Public Functions + * Public Functions Definitions ****************************************************************************/ #undef EXTERN diff --git a/boards/z80/z8/z8encore000zco/src/z8_leds.c b/boards/z80/z8/z8encore000zco/src/z8_leds.c index b5ff8f8dd4..c8e286c274 100644 --- a/boards/z80/z8/z8encore000zco/src/z8_leds.c +++ b/boards/z80/z8/z8encore000zco/src/z8_leds.c @@ -196,10 +196,13 @@ void board_autoled_initialize(void) putreg8(0x00, PEOC); /* PE 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(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(0x00, PGCTL); /* OUTPUT */ @@ -214,7 +217,7 @@ void board_autoled_on(int led) { 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) { - board_autoled_on(led-1); + board_autoled_on(led - 1); } } #endif /* CONFIG_ARCH_LEDS */ diff --git a/boards/z80/z8/z8f64200100kit/include/board.h b/boards/z80/z8/z8f64200100kit/include/board.h index 582f402696..3689114e23 100644 --- a/boards/z80/z8/z8f64200100kit/include/board.h +++ b/boards/z80/z8/z8f64200100kit/include/board.h @@ -42,7 +42,7 @@ #define LED_PANIC 7 /**************************************************************************** - * Public Functions + * Public Functions Definitions ****************************************************************************/ #undef EXTERN diff --git a/boards/z80/z80/z80sim/include/board.h b/boards/z80/z80/z80sim/include/board.h index 56fbfb40ea..f0aa01976c 100644 --- a/boards/z80/z80/z80sim/include/board.h +++ b/boards/z80/z80/z80sim/include/board.h @@ -30,7 +30,7 @@ ****************************************************************************/ /**************************************************************************** - * Public Functions + * Public Functions Definitions ****************************************************************************/ #undef EXTERN #if defined(__cplusplus)