You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ag...@apache.org on 2020/03/07 16:30:09 UTC

[incubator-nuttx] branch master updated: z20x: Timer/Spi Fixes

This is an automated email from the ASF dual-hosted git repository.

aguettouche pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new faca2f2  z20x:  Timer/Spi Fixes
faca2f2 is described below

commit faca2f220eb189551a9a35c6772e9e9eef24f85a
Author: Gregory Nutt <gn...@nuttx.org>
AuthorDate: Sat Mar 7 10:00:55 2020 -0600

    z20x:  Timer/Spi Fixes
    
    arch/z80/src/ez80/ez80_timerisr.c:  Fix an error that looks the file got damaged by a bad keystroke in the editor while a string was highlighted.
    boards/z80/ez80/z20x/src/ez80_spi.c:  Fix some bad conditional compilationi. Prevented W25 chip select from being initialized.
---
 arch/z80/src/ez80/ez80_timerisr.c   | 2 +-
 boards/z80/ez80/z20x/src/ez80_spi.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/z80/src/ez80/ez80_timerisr.c b/arch/z80/src/ez80/ez80_timerisr.c
index 5af6cc9..12be388 100644
--- a/arch/z80/src/ez80/ez80_timerisr.c
+++ b/arch/z80/src/ez80/ez80_timerisr.c
@@ -176,7 +176,7 @@ void up_timer_initialize(void)
    * EZ80_TMRCTL_EN:      Bit 6: Enable timer interrupt requests
    */
 
-  outp(EZ80_TMR0_CTL, (EZ80_TMRCTL_TIMEN | : |
+  outp(EZ80_TMR0_CTL, (EZ80_TMRCTL_TIMEN | EZ80_TMRCTL_RSTEN |
                        EZ80_TMRCLKDIV_4 | EZ80_TMRCTL_TIMCONT |
                        EZ80_TMRCTL_EN));
 
diff --git a/boards/z80/ez80/z20x/src/ez80_spi.c b/boards/z80/ez80/z20x/src/ez80_spi.c
index c3222b2..2541c63 100644
--- a/boards/z80/ez80/z20x/src/ez80_spi.c
+++ b/boards/z80/ez80/z20x/src/ez80_spi.c
@@ -55,7 +55,7 @@
 
 void ez80_spidev_initialize(void)
 {
-#if defined(HAVE_MMCSD) || defined(HAVE_XPT2046)
+#if defined(HAVE_SPIFLASH) || defined(HAVE_MMCSD) || defined(HAVE_XPT2046)
   uint8_t regval;
   uint8_t pins;