on_chip_flash_init.c 419 B

123456789101112131415161718192021
  1. /*
  2. * Copyright (c) 2006-2021, Bluetrum Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2021-11-16 greedyhao first version
  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