Winbond W25Q32 SPI library. Tested on Winbond W74M32 embedded on Hani-IoT. Based on https://os.mbed.com/users/perezalvarezhi/code/W25Q80BV/

Revision:
1:d3928deefb53
Parent:
0:cc8118fdcc22
--- a/W25Q32.h	Wed Jan 08 11:13:52 2020 +0100
+++ b/W25Q32.h	Wed Jan 08 11:17:24 2020 +0100
@@ -25,9 +25,9 @@
 #define ADDR_BSHIFT1    8
 #define ADDR_BSHIFT0    0
 
-class W25Q80BV {
+class W25Q32 {
 public:
-	W25Q80BV(PinName mosi, PinName miso, PinName sclk, PinName cs);
+	W25Q32(PinName mosi, PinName miso, PinName sclk, PinName cs);
 	
     int     readByte(int addr);                             // takes a 24-bit (3 bytes) address and returns the data (1 byte) at that location
     int     readByte(int a2, int a1, int a0);               // takes the address in 3 separate bytes A[23,16], A[15,8], A[7,0]
@@ -38,7 +38,7 @@
     void    writeStream(int addr, char* buf, int count);    // write count bytes of data from buf to memory, starting at addr  
     
     void    chipErase();                                    // erase all data on chip
-    int     getMID( ) ;                                     // get the manufacturer ID
+    int     getMID();                                     // get the manufacturer ID
     
 private:
     void    writeEnable();                                  // write enable