on_chip_flash_init.c 431 B

12345678910111213141516171819202122
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2018-11-27 SummerGift add spi flash port file
  9. */
  10. #include <rtthread.h>
  11. #include "fal.h"
  12. #if defined(BSP_USING_ON_CHIP_FLASH)
  13. static int rt_hw_on_chip_flash_init(void)
  14. {
  15. fal_init();
  16. return RT_EOK;
  17. }
  18. INIT_COMPONENT_EXPORT(rt_hw_on_chip_flash_init);
  19. #endif