FlashDev.c 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /**************************************************************************//**
  2. * @file FlashDev.c
  3. * @brief Flash Device Description for New Device Flash
  4. * @version V1.0.0
  5. * @date 10. January 2018
  6. ******************************************************************************/
  7. /*
  8. * Copyright (c) 2010-2018 Arm Limited. All rights reserved.
  9. *
  10. * SPDX-License-Identifier: Apache-2.0
  11. *
  12. * Licensed under the Apache License, Version 2.0 (the License); you may
  13. * not use this file except in compliance with the License.
  14. * You may obtain a copy of the License at
  15. *
  16. * www.apache.org/licenses/LICENSE-2.0
  17. *
  18. * Unless required by applicable law or agreed to in writing, software
  19. * distributed under the License is distributed on an AS IS BASIS, WITHOUT
  20. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  21. * See the License for the specific language governing permissions and
  22. * limitations under the License.
  23. */
  24. #include "FlashOS.h" // FlashOS Structures
  25. struct FlashDevice const FlashDevice = {
  26. FLASH_DRV_VERS, // Driver Version, do not modify!
  27. "New Device 256kB Flash", // Device Name
  28. ONCHIP, // Device Type
  29. 0x00000000, // Device Start Address
  30. 0x00040000, // Device Size in Bytes (256kB)
  31. 1024, // Programming Page Size
  32. 0, // Reserved, must be 0
  33. 0xFF, // Initial Content of Erased Memory
  34. 100, // Program Page Timeout 100 mSec
  35. 3000, // Erase Sector Timeout 3000 mSec
  36. // Specify Size and Address of Sectors
  37. 0x002000, 0x000000, // Sector Size 8kB (8 Sectors)
  38. 0x010000, 0x010000, // Sector Size 64kB (2 Sectors)
  39. 0x002000, 0x030000, // Sector Size 8kB (8 Sectors)
  40. SECTOR_END
  41. };