1
0

console.c 1010 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * File : console.c
  3. * This file is part of RT-Thread RTOS
  4. * COPYRIGHT (C) 2006-2011, RT-Thread Development Team
  5. *
  6. * The license and distribution terms for this file may be
  7. * found in the file LICENSE in this distribution or at
  8. * http://www.rt-thread.org/license/LICENSE
  9. *
  10. * Change Logs:
  11. * Date Author Notes
  12. * 2011-05-23 aozima first implementation for PIC32.
  13. */
  14. #include <rtthread.h>
  15. // Warning:
  16. // if you want to use DBPRINTF in PIC32 Ethernet Starter Kit,
  17. // you project must globl define PIC32_STARTER_KIT and debug in MPLAB.
  18. // but,if you want run app without debug mode,you must remove this features.
  19. // Adds support for PIC32 Peripheral library functions and macros
  20. #include <plib.h>
  21. void rt_hw_console_init(void)
  22. {
  23. //Initialize the DB_UTILS IO channel
  24. // DBINIT();
  25. }
  26. /**
  27. * This function is used by rt_kprintf to display a string on console.
  28. *
  29. * @param str the displayed string
  30. */
  31. void rt_hw_console_output(const char* str)
  32. {
  33. // DBPRINTF(str);
  34. }