AirioBase + 2 chip PicoSSD board.

Dependencies:   mbed EEPROM USBDevice

Revision:
4:2e8b78a74493
Parent:
2:5895d66ce410
--- a/USBMSD_STEP1.h	Wed Feb 10 03:45:12 2021 +0000
+++ b/USBMSD_STEP1.h	Wed Sep 15 16:32:12 2021 +0000
@@ -3,7 +3,7 @@
 
 
 #include "mbed.h"
-#define USBMSD_STEP1_SECTORS 1004*2
+#define USBMSD_STEP1_SECTORS  4016
 #define USBMSD_STEP1_SECTOR_SIZE 512
 #define USBMSD_STEP1_DISK_SIZE    USBMSD_STEP1_SECTOR_SIZE*USBMSD_STEP1_SECTORS
 #include <stdlib.h>
@@ -13,7 +13,7 @@
 
 class USBMSD_STEP1: public USBMSD
 {   public:
-        USBMSD_STEP1(PinName ceb, PinName cle,
+        USBMSD_STEP1(PinName ceb0, PinName ceb1, PinName cle,
                      PinName ale, PinName web,
                      PinName reb, PinName wpb,
                      PinName rbb, 
@@ -30,11 +30,17 @@
         virtual uint64_t disk_size();
         virtual int disk_status();
 
+
+        uint8_t get_cs_from_block(uint16_t block);
+        uint16_t get_chip_block_from_block(uint16_t block);
+        
+
         DigitalOut * m_ledRead;
         DigitalOut * m_ledWrite;
         DigitalIn  * m_swInit;
 //        DigitalIn  * m_isp;
 
+
     private:
         RawNAND    * m_rawNand;
         bbt_eeprom * m_bbt;