Including SPI 3-wires class

Fork of X_NUCLEO_COMMON_SPI3W by Licio Mapelli

Revision:
24:95fd537e9725
Parent:
23:a42a4217ff73
Child:
25:e4f6488865d1
--- a/DevSPI3W/SPI3W.cpp	Wed May 24 13:54:26 2017 +0200
+++ b/DevSPI3W/SPI3W.cpp	Wed May 24 13:21:01 2017 +0000
@@ -116,19 +116,6 @@
  */
 void SPI3W::SPI_Read(SPI_HandleTypeDef* xSpiHandle, uint8_t *val)
 {
-  /* In master RX mode the clock is automaticaly generated on the SPI enable.
-  So to guarantee the clock generation for only one data, the clock must be
-  disabled after the first bit and before the latest bit */
-  /* Interrupts should be disabled during this operation */
-  __disable_irq();
-  
-  __HAL_SPI_ENABLE(xSpiHandle);
-  __asm("dsb\n");
-  __asm("dsb\n");
-  __HAL_SPI_DISABLE(xSpiHandle);
-  
-  __enable_irq();
-
   *val = spi_slave_read(&_spi);
 }