A bundled STM32F10x Std Periph and CMSIS library
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

stm32f10x_sflash.h 1.4 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * \file stm32f10x_sflash.h
  3. * \brief
  4. * Flash read/write functionality for STM32F10x
  5. *
  6. * This file is part of the driver project
  7. *
  8. * Copyright (C) 2014 Christos Choutouridis <houtouridis.ch@gmail.com>
  9. * All Rights Reserved.
  10. *
  11. * NOTICE: All information contained herein is, and remains
  12. * the property of Christos Choutouridis. The intellectual
  13. * and technical concepts contained herein are proprietary to
  14. * Christos Choutouridis and are protected by copyright law.
  15. * Dissemination of this information or reproduction of this material
  16. * is strictly forbidden unless prior written permission is obtained
  17. * from Christos Choutouridis.
  18. *
  19. * Author: Christos Choutouridis <houtouridis.ch@gmail.com>
  20. * Date: 5/2014
  21. *
  22. */
  23. #ifndef __stm32f10x_sflash_h__
  24. #define __stm32f10x_sflash_h__
  25. #include "stm32f10x_flash.h"
  26. #include <stdint.h>
  27. #include <tbx_ioctl.h>
  28. #include <tbx_types.h>
  29. /*
  30. * ========== Data types =============
  31. */
  32. typedef FLASH_Status FLASH_status_t;
  33. typedef uint32_t FLASH_add_t;
  34. typedef uint16_t FLASH_data_t;
  35. /*
  36. * ========== Public API ================
  37. */
  38. drv_status_en FLASH_read (FLASH_add_t address, void *pdata, int size);
  39. drv_status_en FLASH_write (FLASH_add_t address, void *pdata, int size);
  40. drv_status_en FLASH_ioctl (ioctl_cmd_t cmd, ioctl_buf_t buf);
  41. #endif // #ifndef __stm32f10x_flash_h__