bsal_osal_empty.c 834 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /*
  2. * Copyright (c) 2006-2020, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2020-05-28 Supperthomas the first version
  9. */
  10. #include <stdio.h>
  11. #include <stdbool.h>
  12. #include <string.h>
  13. #include <stdarg.h>
  14. #include "bsal_osif.h"
  15. void *bsal_osif_malloc(uint32_t len)
  16. {
  17. void *p = NULL;
  18. /* TODO */
  19. return p;
  20. }
  21. void bsal_osif_free(void *p)
  22. {
  23. /* TODO */
  24. }
  25. #if 0
  26. int bsal_osif_printf_warn(const char *fmt, ...)
  27. {
  28. /* TODO */
  29. return 0;
  30. }
  31. int bsal_osif_printf_info(const char *fmt, ...)
  32. {
  33. /* TODO */
  34. return 0;
  35. }
  36. int bsal_osif_printf_dbg(const char *fmt, ...)
  37. {
  38. /* TODO */
  39. return 0;
  40. }
  41. int bsal_osif_printf_err(const char *fmt, ...)
  42. {
  43. /* TODO */
  44. return 0;
  45. }
  46. #endif
  47. void bsal_osif_delay(uint32_t ms)
  48. {
  49. /* TODO */
  50. }