dev_spi_conf.h 494 B

1234567891011121314151617181920212223242526272829
  1. /**
  2. * @file softspi_conf.h
  3. * @author Myth
  4. * @version 0.2
  5. * @date 2021.10.12
  6. * @brief STM32 SoftSPI Library Config File
  7. */
  8. #ifndef DEV_SPI_CONF_H
  9. #define DEV_SPI_CONF_H
  10. // Set your HAL Library here.
  11. #include "stm32f7xx_hal.h"
  12. //#define USE_OBJ_SOFT_W25QXX
  13. #ifdef USE_OBJ_SOFT_W25QXX
  14. #undef USE_OBJ_HAL_W25QXX
  15. #else
  16. #define USE_OBJ_HAL_W25QXX
  17. #endif
  18. #include "sys_delay.h"
  19. // Set your owm Delay_us function here.
  20. #define SoftSPI_Delay_us(__time__) delay_us(__time__)
  21. #endif