[Wsim-commits] r825 - platforms/ez430chronos

bernharddick at users.gforge.inria.fr bernharddick at users.gforge.inria.fr
Dim 11 Mar 23:50:34 CET 2012


Author: bernharddick
Date: 2012-03-11 23:50:34 +0100 (Sun, 11 Mar 2012)
New Revision: 825

Modified:
   platforms/ez430chronos/ez430chronos.c
Log:
- connect uscib0 with cma3000 in the ez430chronos platform


Modified: platforms/ez430chronos/ez430chronos.c
===================================================================
--- platforms/ez430chronos/ez430chronos.c	2012-03-11 22:46:27 UTC (rev 824)
+++ platforms/ez430chronos/ez430chronos.c	2012-03-11 22:50:34 UTC (rev 825)
@@ -296,9 +296,9 @@
         machine.device[SCP1000].write(SCP1000, SCP1000_I2C_SCL_MASK, BIT(val8, 3) << SCP1000_I2C_SCL_SHIFT);
     }
 
-    /*if (msp430_uscib0_dev_read_spi(&val8)) {
+    if (msp430_uscib0_dev_read_spi(&val8)) {
         machine.device[SCA3000].write(SCA3000, CMA3000_SPI_D, val8);
-    } */
+    }
 
     /* LCD :                             */
     /* =====                             */
@@ -320,9 +320,9 @@
         uint32_t mask = 0;
         uint32_t value = 0;
         machine.device[ SCA3000 ].read(SCA3000, &mask, &value);
-        /*if (mask & CMA3000_SPI_D) {
+        if (mask & CMA3000_SPI_D) {
             msp430_uscib0_dev_write_spi(value & CMA3000_SPI_D);
-        }*/
+        }
         /* INT -> P2.5*/
         if (mask & CMA3000_SPI_INT_MASK) {
             msp430_digiIO_dev_write(PORT2, (CMA3000_SPI_INT_MASK & value) ? 0x00 : 0x20, 0x20);




More information about the Wsim-commits mailing list