board.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. * File : board.h
  3. * This file is part of RT-Thread RTOS
  4. * COPYRIGHT (C) 2009, 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. *
  13. */
  14. // <<< Use Configuration Wizard in Context Menu >>>
  15. #ifndef __BOARD_H__
  16. #define __BOARD_H__
  17. #include <MK64F12.h>
  18. /* board configuration */
  19. // <o> Internal SRAM memory size[Kbytes] <8-64>
  20. // <i>Default: 64
  21. #define K64_SRAM_SIZE 192
  22. #define K64_SRAM_END (0x20000000 + (K64_SRAM_SIZE * 1024))
  23. //#define RT_USING_UART1
  24. #define RT_USING_UART0
  25. //#define RT_USING_UART3
  26. // <o> Console on USART: <0=> no console <1=>USART 1 <2=>USART 2 <3=> USART 3
  27. // <i>Default: 1
  28. #define K64_CONSOLE_USART 0
  29. void rt_hw_board_init(void);
  30. #if K64_CONSOLE_USART == 0
  31. #define CONSOLE_DEVICE "uart0"
  32. #elif K64_CONSOLE_USART == 1
  33. #define CONSOLE_DEVICE "uart1"
  34. #elif K64_CONSOLE_USART == 2
  35. #define CONSOLE_DEVICE "uart2"
  36. #elif K64_CONSOLE_USART == 3
  37. #define CONSOLE_DEVICE "uart3"
  38. #elif K64_CONSOLE_USART == 4
  39. #define CONSOLE_DEVICE "uart4"
  40. #elif K64_CONSOLE_USART == 5
  41. #define CONSOLE_DEVICE "uart5"
  42. #endif
  43. #define FINSH_DEVICE_NAME CONSOLE_DEVICE
  44. #endif
  45. // <<< Use Configuration Wizard in Context Menu >>>