common_functions.c 600 B

123456789101112131415161718192021222324252627
  1. /*******************************************************
  2. * File name: common_functions.c
  3. * Author: LIJIAN
  4. * Versions: 0.1
  5. * Description: Common APIs for all platforms.
  6. * History:
  7. * 1.Date:
  8. * Author:
  9. * Modification:
  10. *********************************************************/
  11. #include "common_functions.h"
  12. #include "pando_sys.h"
  13. void FUNCTION_ATTRIBUTE show_package(uint8_t *buffer, uint16_t length)
  14. {
  15. int i = 0;
  16. pd_printf("Package length: %d\ncontent is: \n", length);
  17. for (i = 0; i < length; i++)
  18. {
  19. pd_printf("%02x ",(uint8_t)buffer[i]);
  20. }
  21. pd_printf("\n");
  22. }