title: Stm32 function in "Standard Library"
body: <p>I have this function and this is "HAL" library:</p>
  
  <pre><code>void ENC28_writeBuf(uint16_t len, uint8_t* data)
  {
      uint8_t spiData[2];
      HAL_GPIO_WritePin(GPIOD, GPIO_PIN_7, GPIO_PIN_RESET);
      spiData[0] = ENC28_WRITE_BUF_MEM;
      HAL_SPI_Transmit(&amp;hspi1, spiData, 1, 100);
      HAL_SPI_Transmit(&amp;hspi1, data, len, 100);
      HAL_GPIO_WritePin(GPIOD, GPIO_PIN_7, GPIO_PIN_SET);
  }
  </code></pre>
  
  <p>But i want to write with Standart Perhibral Library for stm32. How can i write this function in STD ?</p>