drv_fmc.h 661 B

123456789101112131415161718192021222324
  1. /**************************************************************************//**
  2. *
  3. * @copyright (C) 2020 Nuvoton Technology Corp. All rights reserved.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0
  6. *
  7. * Change Logs:
  8. * Date Author Notes
  9. * 2020-3-03 FYChou First version
  10. *
  11. ******************************************************************************/
  12. #ifndef __DRV_FMC_H__
  13. #define __DRV_FMC_H__
  14. #include <rtthread.h>
  15. #include "NuMicro.h"
  16. int nu_fmc_read(long offset, uint8_t *buf, size_t size);
  17. int nu_fmc_write(long offset, const uint8_t *buf, size_t size);
  18. int nu_fmc_erase(long offset, size_t size);
  19. #endif // __DRV_FMC_H___