drv_nor_flash.h 477 B

1234567891011121314151617181920212223
  1. /*
  2. * Copyright (c) 2006-2018, Synwit Technology Co.,Ltd.
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2018-12-10 Zohar_Lee first version
  9. * 2020-07-10 lik rewrite
  10. */
  11. #ifndef DRV_NOR_FLASH_H__
  12. #define DRV_NOR_FLASH_H__
  13. #include "board.h"
  14. #define BLOCK_SIZE (64 * 1024)
  15. #define FLASH_SIZE (BSP_NOR_FLASH_SIZE)
  16. #define BLOCK_COUNTER (FLASH_SIZE / BLOCK_SIZE)
  17. int rt_hw_norflash_init(void);
  18. #endif