readme.txt 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. /*
  2. * File : readme.txt
  3. * This file is part of RT-Thread RTOS
  4. * COPYRIGHT (C) 2006 - 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. * 2011-02-17 lgnq the first version
  13. */
  14. Summary:
  15. ========
  16. This directory contains the source code for M16C porting to rt-thread
  17. two tasks is running:
  18. led_task - blink the LED
  19. finsh - a user shell, comes with rt-thread
  20. Where to get help:
  21. ==================
  22. In case you have questions about, problems with or contributions for
  23. Renesas M16C prot to rt-thread, you can send a mail to dzzxzz@gmail.com.
  24. or you can post a message to the rt-thread forum
  25. there are two forums:
  26. http://www.rt-thread.org/phpbbforum
  27. http://www.ourdev.cn/bbs
  28. Where to get source code:
  29. =========================
  30. The rt-thread source code is maintained in google code
  31. http://code.google.com/p/rt-thread/
  32. use the following command to anonymously check out the latest source code:
  33. svn checkout http://rt-thread.googlecode.com/svn/trunk/ rt-thread-read-only
  34. Directory Hierarchy:
  35. ====================
  36. /rt-thread
  37. /bsp
  38. /m16c62p
  39. /application.c - init led task
  40. /board.c - hardware init, init uart0
  41. /board.h
  42. /bsp.c - include led_init(), mcu_init(), timer0_init()
  43. /bsp.h
  44. /cstartup.asm - assembly start
  45. /interrupts.asm - include time0 interrupt handler, uart0 interrupt handler
  46. /lnkm30627fhp.xcl - IAR link file for m16c62p(m30627fhp)
  47. /rtconfig.h - rt-thread config file
  48. /rtconfig.py - SCONS config file
  49. /rtt2m16c.dep - IAR project file
  50. /rtt2m16c.ewd - IAR project file
  51. /rtt2m16c.ewp - IAR project file
  52. /rtt2m16c.eww - IAR project file
  53. /SConsscript - SCONS script file
  54. /SConstruct - SCONS struct file
  55. /startup.c - rt-thread start, include main()
  56. /uart.c - implement uart0 device
  57. /uart.h
  58. /vectors.asm - relocatable exception vector table
  59. /libcpu
  60. /m16c
  61. /m16c62p
  62. /context_iar.asm - rt-thread context switch, used by IAR project
  63. /context_iar.S - rt-thread context switch, used by SCONS
  64. /interrupt.c
  65. /stack.c - rt-thread stack initlization
  66. Build Project:
  67. ==============
  68. there are two ways to build the renesase M16C project:
  69. 1, install IAR Embedded Workbench for renesas m16c(recommend EWM16C-EV-3501.exe)
  70. Open Workspace rtt2m16c.eww by IAR directly
  71. rebuild all
  72. the target file(rtt2m16c.mot) will be produced in /rt-thread/bsp/m16c62p/Debug/Exe
  73. you can download the rtt2m16c.mot to m16c board with E8A
  74. 2, install python, scons and IAR for m16c(recommend python2.7, scons1.3.1 and EWM16C-EV-3501.exe)
  75. open a windows cmd, and change directory to m16c project, like /rt-thread/bsp/m16c62p/
  76. #set PATH=C:\Python27\Scripts;%PATH%
  77. #scons -c
  78. #scons -j 2