Revision: 1535
Author: [email protected]
Date: Fri Dec 11 20:36:09 2009
Log: Moved constant "SD_ALWAYS_SET_SPI_MODE = TRUE" from sd_card lib to  
samples files
http://code.google.com/p/jallib/source/detail?r=1535

Modified:
  /trunk/include/external/storage/sd_card/sd_card.jal
  /trunk/sample/16f877_sd_card.jal
  /trunk/sample/18f452_fat32_sd_card.jal
  /trunk/sample/18f452_sd_card.jal

=======================================
--- /trunk/include/external/storage/sd_card/sd_card.jal Sun Dec  6 21:01:58  
2009
+++ /trunk/include/external/storage/sd_card/sd_card.jal Fri Dec 11 20:36:09  
2009
@@ -35,10 +35,6 @@
  -- sd_write_pulse         -- write 2 bytes of 0's, go 2 bytes forward in
  --                           current sector

--- select weather or not to switch SPI modes before every read/write
--- needed if using more then one component on the SPI bus.
-const byte SD_ALWAYS_SET_SPI_MODE = TRUE
-
  -- counters
  var byte sd_word_count = 0
  var word sd_sector_count = 0
=======================================
--- /trunk/sample/16f877_sd_card.jal    Sun Dec  6 21:01:58 2009
+++ /trunk/sample/16f877_sd_card.jal    Fri Dec 11 20:36:09 2009
@@ -47,6 +47,11 @@
  spi_init(SPI_MODE_11,SPI_RATE_FOSC_16) -- choose spi mode and speed

  -- setup sd card library
+--
+-- select weather or not to switch SPI modes before every read/write
+-- needed if using more then one component on the SPI bus.
+const byte SD_ALWAYS_SET_SPI_MODE = TRUE
+--
  const bit SD_DELAY_AFTER_WRITE = TRUE -- some
  include sd_card -- include sd card library
  sd_init()       -- initalize the sd card
=======================================
--- /trunk/sample/18f452_fat32_sd_card.jal      Sun Dec  6 21:25:05 2009
+++ /trunk/sample/18f452_fat32_sd_card.jal      Fri Dec 11 20:36:09 2009
@@ -49,6 +49,11 @@
  spi_init(SPI_MODE_11,SPI_RATE_FOSC_4) -- init spi, choose mode and speed

  -- setup the sd card
+--
+-- select weather or not to switch SPI modes before every read/write
+-- needed if using more then one component on the SPI bus.
+const byte SD_ALWAYS_SET_SPI_MODE = TRUE
+--
  const bit SD_DELAY_AFTER_WRITE = TRUE
  include sd_card              -- include the sd card ide hard disk library
  sd_init()                    -- initialize startup settings
=======================================
--- /trunk/sample/18f452_sd_card.jal    Sun Dec  6 21:01:58 2009
+++ /trunk/sample/18f452_sd_card.jal    Fri Dec 11 20:36:09 2009
@@ -47,6 +47,11 @@
  spi_init(SPI_MODE_11,SPI_RATE_FOSC_16) -- choose spi mode and speed

  -- setup sd card library
+--
+-- select weather or not to switch SPI modes before every read/write
+-- needed if using more then one component on the SPI bus.
+const byte SD_ALWAYS_SET_SPI_MODE = TRUE
+--
  const bit SD_DELAY_AFTER_WRITE = TRUE -- some
  include sd_card -- include sd card library
  sd_init()       -- initalize the sd card

--

You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en.


Reply via email to