platform_memory.c 529 B

123456789101112131415161718192021222324252627
  1. /*
  2. * @Author: jiejie
  3. * @Github: https://github.com/jiejieTop
  4. * @Date: 2019-12-14 22:02:07
  5. * @LastEditTime: 2020-02-19 23:53:50
  6. * @Description: the code belongs to jiejie, please keep the author information and source code according to the license.
  7. */
  8. #include "tos_k.h"
  9. void *platform_memory_alloc(size_t size)
  10. {
  11. return tos_mmheap_alloc(size);
  12. }
  13. void *platform_memory_calloc(size_t num, size_t size)
  14. {
  15. return tos_mmheap_calloc(num, size);
  16. }
  17. void platform_memory_free(void *ptr)
  18. {
  19. tos_mmheap_free(ptr);
  20. }