eeprom_test

Dependencies:   mbed FastPWM

Revision:
68:135a2d087198
Parent:
67:cfc88fd0591e
--- a/main.cpp	Wed Jun 03 08:46:45 2020 +0000
+++ b/main.cpp	Mon Jul 20 06:58:38 2020 +0000
@@ -32,8 +32,8 @@
 unsigned int value; // 10bit output of reading sensor AS5510
 
 // SPI ///////////////////////////////////////////
-//SPI eeprom(PB_15, PB_14, PB_13); // EEPROM //(SPI_MOSI, SPI_MISO, SPI_SCK);
-//DigitalOut eeprom_cs(PB_12);
+SPI eeprom(PB_15, PB_14, PB_13); // EEPROM //(SPI_MOSI, SPI_MISO, SPI_SCK);
+DigitalOut eeprom_cs(PB_12);
 //FlashWriter writer(6);//2부터 7까지 되는듯 아마 sector
 SPI enc(PC_12,PC_11,PC_10);
 DigitalOut enc_cs(PD_2);
@@ -163,7 +163,8 @@
     make_delay();
 
     //rom
-    ROM_CALL_DATA();
+    //ROM_CALL_DATA();
+    spi_eeprom_call_data();
     make_delay();
 
     // ADC init