spi_flash_sst25vfxx.h 879 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * File : rtdef.h
  3. * This file is part of RT-Thread RTOS
  4. * COPYRIGHT (C) 2006 - 2011, RT-Thread Development Team
  5. *
  6. * The license and distribution terms for this file may be
  7. * found in the file LICENSE in this distribution or at
  8. * http://www.rt-thread.org/license/LICENSE
  9. *
  10. * Change Logs:
  11. * Date Author Notes
  12. * 2011-12-16 aozima the first version
  13. */
  14. #ifndef SPI_FLASH_SST25VFXX_H_INCLUDED
  15. #define SPI_FLASH_SST25VFXX_H_INCLUDED
  16. #include <rtthread.h>
  17. #include <drivers/spi.h>
  18. struct spi_flash_sst25vfxx
  19. {
  20. struct rt_device flash_device;
  21. struct rt_device_blk_geometry geometry;
  22. struct rt_spi_device * rt_spi_device;
  23. struct rt_mutex lock;
  24. };
  25. extern rt_err_t sst25vfxx_init(const char * flash_device_name, const char * spi_device_name);
  26. #endif // SPI_FLASH_SST25VFXX_H_INCLUDED